问题
I am using tomcat 7 and net beans IDE 7.3.1 for my project. My servlet program is working fine on Mozilla Firefox and Internet Explorer.but when i m running it on Google chrome it shows following error.
HTTP Status 500 -
type Exception report
message description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
Controller.CreateQuestion.doPost(CreateQuestion.java:200)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
Filters.logoutfilter.doFilter(logoutfilter.java:27)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.34 logs.
Apache Tomcat/7.0.34
Please help anybody, thanks.
来源:https://stackoverflow.com/questions/21822352/http-status-500-null-pointer-exception-only-on-google-chrome