can we include a test for this as well, it is the kind of thing we don't want to repeat
marcf |-----Original Message----- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of David |Maplesden |Sent: Monday, November 26, 2001 4:55 PM |To: JBossDev (E-mail) |Subject: [JBoss-dev] NPE when using DefaultDS | | |I have been experiencing a NPE when calling createStatement on a connection |obtained from DefaultDS. | |java.lang.NullPointerException | at |org.jboss.resource.adapter.jdbc.local.StatementInPool.<init>(Statem |entInPool |.java:35) | at |org.jboss.resource.adapter.jdbc.local.ConnectionInPool.createStatem |ent(Conne |ctionInPool.java:606) | |This doesn't always occur and I have only noticed it in the last |week or so, |previously it worked fine. | |It occurs after a previous statement throws an SQLException. In |other words |if you are using the connections from DefaultDS everything is fine |until one |of your SQL queries causes an SQL exception. After this point you |get a NPE |every time you try to create another statement from a connection for |DefaultDS. | |I think (though I don't know for sure) that it has been caused by a change |to the Object pool code made last week sometime. | |I hope someone out there can help. | |Thanks |David. | | |--- |Outgoing mail is certified Virus Free. |Checked by AVG anti-virus system (http://www.grisoft.com). |Version: 6.0.298 / Virus Database: 161 - Release Date: 11/13/2001 | | |_______________________________________________ |Jboss-development mailing list |[EMAIL PROTECTED] |https://lists.sourceforge.net/lists/listinfo/jboss-development _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
