> Hello, I'm studying the security with your book. Your book is good to
learn
about java security. But I faced some problem while I was executing your
code on chapter 11. Https works well. But I have Servlet Error. I tried to
test servlet example at https://localthost:8443 and there is no problem.
Could you tell me the hint to solve this problem? Please let me know it.
I'm looking forward your reply.
https://localhost:8443/registerServlet
Error: 500
Location: /registerServlet
Internal Servlet Error:
java.lang.NullPointerException
at
ecommerce_example.servlet.RegisterServlet.doPost(RegisterServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service
(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service
(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Hello,
Specific book support issues should be sent to support@w... I would
like to explain the Wrox support process. If you wish to directly query a
problem in the book with an expert who knows the book in detail then e-
mail support@w... , with the title of the book and the last four
numbers of the ISBN in the subject field of the e-mail. Please also
confirm the software that you are using (include versions / editions /
service packs etc.). Please specify whether you are receiving any error
messages (or a description of what is happening on your screen as opposed
to what is being described in the book)
Your message is delivered to one of our support staff who are the first
people to read it. We have files on the most frequently asked questions
and will answer anything generally immediately. We answer general
questions about the book and the web site.
Deeper queries are forwarded to the technical editor responsible for that
book. They have experience with the programming language or particular
product and are able to answer detailed technical questions on the
subject. Once an issue has been resolved, the editor can post the errata
to the web site.
Finally, in the unlikely event that the editor can't answer your problem,
he/she will forward the request to the author. We try to protect the
author from any distractions from writing. However, we are quite happy to
forward specific book related requests to them. All Wrox authors help with
the support on their books. They will either directly mail the customer
with the answer, or will send their response to the editor who will pass
it on to the reader.
Phil Perks
Technical Support Manager
Wrox Press