Re: windows - tomcat - jdbc - "unable to connect" linux instead of windows is fine
Posted by:
Niels
Date: December 30, 2004 04:09PM
I removed alll versions and tried 2 connectors, I have tried to place them in 2 positions (WEB-INF/lib & lib/ext) with the same errors:
mysql-connector-java-3.1.5-gamma-bin.jar:
SQL Error
Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.lang.NullPointerException STACKTRACE: java.lang.NullPointerException at java.lang.String.getBytes(Unknown Source) at com.mysql.jdbc.Connection.checkServerEncoding(Connection.java:2699) at com.mysql.jdbc.Connection.initializePropsFromServer(Connection.java:3161) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1706) at com.mysql.jdbc.Connection.(Connection.java:405) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.jsp.db_002dtest_jsp._jspService(org.apache.jsp.db_002dtest_jsp:64) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) at
and for mysql-connector-java-3.0.16-ga-bin.jar:
SQL Error
Unable to connect to any hosts due to exception: java.lang.NullPointerException ** BEGIN NESTED EXCEPTION ** java.lang.NullPointerException STACKTRACE: java.lang.NullPointerException at java.lang.String.getBytes(Unknown Source) at com.mysql.jdbc.Connection.checkServerEncoding(Connection.java:2535) at com.mysql.jdbc.Connection.initializePropsFromServer(Connection.java:3288) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1803) at com.mysql.jdbc.Connection.(Connection.java:450) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.jsp.db_002dtest_jsp._jspService(org.apache.jsp.db_002dtest_jsp:64) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) at
Still have no clue what is going on..
Subject
Written By
Posted
December 29, 2004 05:26PM
December 29, 2004 07:05PM
Re: windows - tomcat - jdbc - "unable to connect" linux instead of windows is fine
December 30, 2004 04:09PM
December 30, 2004 05:57PM
December 31, 2004 04:16AM
December 31, 2004 10:21AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.