Unknown NullPointerException in JdbcOdbcDriver.finalize() line: 96
2022-09-04 04:47:01
我正在使用以下内容通过JNDI加载数据源:
JDK 1.6.0_31 雄猫 6.0.30
当我启动 Eclipse (Indigo SR 2) 调试器时,它会中断:
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
我真的不知道是什么导致了这种情况。此外,它似乎根本不会影响我的执行。我的数据源已初始化并正常使用,并且我将获得预期的所有结果。根据我所读到的内容,这可能与Oracle驱动程序问题有关?
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>