PDA

View Full Version : JDeveloper fails to run a servlet, debugging works fine


Hannu Rahikainen
06-08-2004, 04:17 AM
I am using Oracle JDeveloper 9.0.5.1 (Build 1605).

When I try to run the application, data base access fails with the
following:

04/06/08 12:48:11 java.sql.SQLException: Unable to connect to any
hosts due to exception: java.lang.NullPointerException
04/06/08 12:48:11 at
com.mysql.jdbc.Connection.createNewIO(Connection.java:1535)
04/06/08 12:48:11 at
com.mysql.jdbc.Connection.<init>(Connection.java:474)
04/06/08 12:48:11 at com.mysql.jdbc.Driver.connect(Driver.java:413)
04/06/08 12:48:11 at
java.sql.DriverManager.getConnection(DriverManager.java:512)
04/06/08 12:48:11 at
java.sql.DriverManager.getConnection(DriverManager.java:171)
04/06/08 12:48:11 at
fi.activesoft.db.DBconn.DBConnect(DBconn.java:48)
04/06/08 12:48:11 at
fi.activesoft.asbsutils.Targetdayinfo.getClosedXMLStr(Targetdayinfo.java:227)
04/06/08 12:48:11 at
fi.activesoft.beans.TargetdayinfoBean.doClosedQuery(TargetdayinfoBean.java:266)
04/06/08 12:48:11 at
fi.activesoft.beans.TargetdayinfoBean.setdb(TargetdayinfoBean.java:418)
04/06/08 12:48:11 at _bsD1hBooking._jspService(bsD1hBooking.jsp:664)
04/06/08 12:48:11 at
oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
04/06/08 12:48:11 at
oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
04/06/08 12:48:11 at
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
04/06/08 12:48:11 at
oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
04/06/08 12:48:11 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
04/06/08 12:48:11 at
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
04/06/08 12:48:11 at
oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
04/06/08 12:48:11 at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
04/06/08 12:48:11 at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
04/06/08 12:48:11 at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
04/06/08 12:48:11 at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
04/06/08 12:48:11 at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
04/06/08 12:48:11 at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
04/06/08 12:48:11 at java.lang.Thread.run(Thread.java:534)

However, debugging the servlet (without any breakpoints) works fine.

I cannot find any explanation for this. All parameters passed to
getConnection are correct.


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service