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>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With