I've posted a strange NullPointerException in class Connection with a few days ago (see below).
Now I changed the driver to MySQL Connector/J 2.0.14. But I'm still getting a NullPointerException: java.lang.NullPointerException at com.mysql.jdbc.Connection.execSQL(Unknown Source) at com.mysql.jdbc.Connection.execSQL(Unknown Source) at com.mysql.jdbc.Connection.setAutoCommit(Unknown Source) at org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnect ion.java:237) at org.apache.commons.dbcp.PoolableConnectionFactory.activateObject(PoolableCon nectionFactory.java:273) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown Source) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool .java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:110) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at org.apache.struts.util.GenericDataSource.getConnection(GenericDataSource.jav a:276) at de.mytest.fe.BaseAction.getConnection(BaseAction.java:36) It still works for a long time and the exception occurs just once in a while. Help greatly appreciated! Thanks in advance, Holger -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Holger Wiechert wrote: > Hi, > > I'm having a quite serious problem. I wrote a web application that uses > MySQL via ConnectorJ V2.0.6 in combination with Apache's DBCP 1.0 > (Jakarta Commons Database Connection Pool). > The web application is installed on a server, I don't have access to. > The same for the MySQL server. > Once in a while, I get a NullPointerException and have no clue about > the reason: DBCP, the JDBC driver, or MySQL. > Once the exception occurred, it comes up with every new connection > retrieval. > I really wonder about the NullPointerexception, which seems to me like > a ConnectorJ-Bug, but I'm not sure at all. > > java.lang.NullPointerException > at org.gjt.mm.mysql.Connection.execSQL(Connection.java:863) > at org.gjt.mm.mysql.Connection.execSQL(Connection.java:857) > at org.gjt.mm.mysql.Connection.setAutoCommit(Connection.java:474) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Connector/J Package Names start with com.mysql.jdbc This is not MySQL Connector/J, it is MM.MySQL, which is what MySQL Connector/J used to be called (and a rather old version at that). Please try upgrading to MySQL Connector/J 2.0.14 or 3.0.5 from http://www.mysql.com/products/connector-j/ and see if your problem goes away. -Mark - -- MySQL 2003 Users Conference -> http://www.mysql.com/events/uc2003/ For technical support contracts, visit https://order.mysql.com/?ref=mmma __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mark Matthews <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer - JDBC/Java /_/ /_/\_, /___/\___\_\___/ Flossmoor (Chicago), IL USA <___/ www.mysql.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.1.90 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+TmqutvXNTca6JD8RAowMAKDIgKYPMtNZhsJUleTlqodGvMAoLACgjY8I 6I2n+jc+Y3D1cWc0C50XQaQ= =UdFn -----END PGP SIGNATURE----- --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php ____________ Virus checked by G DATA AntiVirusKit Virus news: www.antiviruslab.com ____________ Virus checked by G DATA AntiVirusKit Virus news: www.antiviruslab.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php