Subject NullPointerException comming from org.firebirdsql.jdbc.AbstractPreparedStatement
Author grantcurrey
We have recently migrated to the latest stable release of Firebird. We were previously on 1.5, so we have also updated our jaybird driver to the latest stable also.

Since upgrading, we are randomly getting the following error reported from the driver. We are using hibernat to manage our datalayer. Thus far, we have been unable to pin point the scenario that causes this issue.

Can anyone shed any light or direction on this issue.

Kindest Regards

Grant

java.lang.NullPointerException
at org.firebirdsql.jdbc.AbstractPreparedStatement.getXsqlvar(AbstractPreparedStatement.java:480)
at org.firebirdsql.jdbc.AbstractPreparedStatement$1.setFieldData(AbstractPreparedStatement.java:1203)
at org.firebirdsql.jdbc.field.FBField.setFieldData(FBField.java:174)
at org.firebirdsql.jdbc.field.FBWorkaroundStringField.setStringForced(FBWorkaroundStringField.java:115)
at org.firebirdsql.jdbc.field.FBWorkaroundStringField.setString(FBWorkaroundStringField.java:89)
at org.firebirdsql.jdbc.AbstractPreparedStatement.setString(AbstractPreparedStatement.java:402)
at org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:131)
at org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:131)
at net.sf.hibernate.type.StringType.set(StringType.java:26)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:48)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:35)
at net.sf.hibernate.loader.Loader.bindPositionalParameters(Loader.java:753)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:793)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:269)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1527)