2 messages in com.mysql.lists.javaRe: NPE in Connector/J 3.1.12
FromSent OnAttachments
Ronald Klop17 Jan 2006 07:43 
Mark Matthews17 Jan 2006 08:08 
Subject:Re: NPE in Connector/J 3.1.12
From:Mark Matthews (ma@mysql.com)
Date:01/17/2006 08:08:53 AM
List:com.mysql.lists.java

Ronald Klop wrote:

Hello, today I found this. I don't really get why. Any thoughts?

java.lang.NullPointerException at com.mysql.jdbc.ResultSet.buildIndexMapping(ResultSet.java:575) at com.mysql.jdbc.ResultSet.findColumn(ResultSet.java:926) at com.mysql.jdbc.ResultSet.getBytes(ResultSet.java:1626) at com.mysql.jdbc.DatabaseMetaData$6.forEach(DatabaseMetaData.java:3080) at com.mysql.jdbc.DatabaseMetaData$IterateBlock.doForAll(DatabaseMetaData.java:79)

at com.mysql.jdbc.DatabaseMetaData.getIndexInfo(DatabaseMetaData.java:3042) at nl.base.sql.layout.IndexFinder.find(IndexFinder.java:3

Ronald,

Any idea what table(s) getIndexInfo() was being called on and what their structure looks like? What version of the server is this?

Is there any chance that the connection that created this DatabaseMetaData object has been closed or returned to the pool (if any are in use) sometime before calling .getIndexInfo() or during the execution of .getIndexInfo()? If so, that will cause the underlying result set used by our DatabaseMetaData implementation to be closed implicitly by the driver.

-Mark

-Mark