MM.Mysql JDBC Type 4 Driver on Linux
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Imran_Ghani
Posted On:   Tuesday, January 29, 2002 05:15 AM

Dear, I am using mm.mysql.jdbc-1.2c typeIV driver for connectivity through Java on Linux RH. My JSP page calls a Connection bean which loads the driver and get records from a table in mysql database. But when I access the page got error Error: 500 Location: /examples/jsp/ISO/login.jsp Internal Servlet Error: javax.servlet.ServletException: at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source) at jsp.ISO.login_3._jspService(login_3.java:144) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)    More>>

Dear,
I am using mm.mysql.jdbc-1.2c typeIV driver for connectivity through Java on Linux RH. My JSP page calls a Connection bean which loads the driver and get records from
a table in mysql database.
But when I access the page got error


Error: 500
Location: /examples/jsp/ISO/login.jsp
Internal Servlet Error:
javax.servlet.ServletException:
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at jsp.ISO.login_3._jspService(login_3.java:144)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:479)
Root cause:
java.lang.NullPointerException:
at ISO.ConnectionBean.getSelectResult(ConnectionBean.java:59)
at jsp.ISO.login_3._jspService(login_3.java:103)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:479)


Please tell whether I will have to set some classpath if yes then tell how and where.
Please contact me at my email address : ghani_imran50@yahoo.com

   <<Less

Re: MM.Mysql JDBC Type 4 Driver on Linux

Posted By:   Christopher_Schultz  
Posted On:   Tuesday, January 29, 2002 06:07 AM

This is not a DB driver error. You are getting a NullPointerException on line 59 of your ConnectionBean. Look at line 59 and see what might be null.



-chris
About | Sitemap | Contact