Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown NullPointerException in JdbcOdbcDriver.finalize() line: 96

I'm loading data sources via JNDI using:

JDK 1.6.0_31 Tomcat 6.0.30

When I launch the Eclipse (Indigo SR 2) debugger, it breaks on:

Daemon System Thread [Finalizer] (Suspended (exception NullPointerException))   
    JdbcOdbcDriver.finalize() line: 96  
    Finalizer.invokeFinalizeMethod(Object) line: not available [native method]  
    Finalizer.runFinalizer() line: 83   
    Finalizer.access$100(Finalizer) line: 14    
    Finalizer$FinalizerThread.run() line: 160   

I'm really at a loss as to what is causing this. Further, it doesn't appear to affect my execution at all. My data sources are initialized and used as normal, and I'm getting all the results that I expect. From what I've read, this might be related to an Oracle driver issue?

myApp\META-INF\context.xml

<Resource name="jdbc/conn" auth="Container"
    type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
    url="@url@" username="user" password="@password@"
    initialSize="4" maxActive="8" 
    defaultAutoCommit="false"
    accessToUnderlyingConnectionAllowed="true"
    testOnReturn="true"
    validationQuery="select 1 from dual"
    poolPreparedStatements="false"
    connectionProperties="SetBigStringTryClob=true"
    factory="org.apache.commons.dbcp.BasicDataSourceFactory"
/>

myApp\WEB-INF\web.xml

<resource-ref>
    <description>My DataSource</description>
    <res-ref-name>jdbc/conn</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
</resource-ref>
like image 265
Justin Skiles Avatar asked Apr 20 '12 13:04

Justin Skiles


1 Answers

I eventually ended up ignoring this exception as it does not end execution. While I don't know the exact cause, it does not seem to be fatal.

like image 51
Justin Skiles Avatar answered Oct 24 '22 19:10

Justin Skiles