Share

Glassbox

Subscribe

Null pointer at ArrayDataResultSet.next()

  1. 2009-10-13 13:40:25 UTC

    Request urgent help!

    Getting NullPointerException at rs.next() while trying to do the following -

    Array array = cstmt.getArray(5); rs = array.getResultSet(); while(rs.next()) {};

    ============= Details of the exception follows -

    java.lang.NullPointerException at glassbox.monitor.resource.JdbcMonitor.ajc$interFieldGetDispatch$glassboxmonitorresourceJdbcMonitor$glassboxmonitorresourceJdbcMonitor$TrackedStatement$key(JdbcMonitor.aj) at glassbox.monitor.resource.JdbcMonitor.getStatementKey(JdbcMonitor.aj: 418) at glassbox.monitor.resource.JdbcMonitor.ajc$if_5(JdbcMonitor.aj:133) at oracle.jdbc.driver.ArrayDataResultSet.next(ArrayDataResultSet.java:13 7)

  2. 2009-10-14 17:11:39 UTC

    This error typically happens because of problems in AspectJ load-time weaving, and how it handles JDBC drivers loaded in a parent classloader. The easiest work around is to build-time weave your JDBC driver. See http://jeoftp.blogspot.com/2009/03/timing-oracle-sql-queries-with-glassbox.html., and also https://sourceforge.net/projects/glassbox/forums/forum/575670/topic/3377958?message=7599927 for more information on how to do this...

    Ron

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.