English 中文(简体)
JdbcOdbc司机,定型:96
原标题:Unknown NullPointerException in JdbcOdbcDriver.finalize() line: 96

I m 通过JNDI通过下列方式装载数据源:

JDK 1.6.0_31 Tomcat 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   

我真的会错失造成这种情况的原因。 此外,这似乎并未影响我的执行。 我的数据来源是初步的,是正常的,我获得我预期的所有结果。 从我看,这可能与甲骨质司机问题有关?

IAppMETA-INFcontext.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"
/>

IAppWEB-INFweb.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>
最佳回答

我最终无视这一例外,因为它没有停止执行。 虽然我不知道确切的原因,但似乎不是致命的。

问题回答

我假设你再次没有发出启动()的呼吁。 这应当把国家扫盲计划固定到OabcApi。

我以前曾认为,这是答案。 我错了。

最后,我说了。 我有一些由数据库支持的有色人种。 这些有管理的豆类是附加说明的@eager

当服务器从碎片中开始使用时,即时使用,该工具进入数据库获取数据。 我在数据库信标(无分点例外)中投下了一种例外情况,因此,与数据库的联系正在开放。

Somehow, the .metadata folder was buggered up and corrupted. I exited Eclipse. Then I went to the Eclipse workspace and copied the .metadata folder to my desktop to have a safe copy, then I deleted it in the workspace.

我重新启动了Eclipse。 没有项目。 我在使用“进口”和“档案系统”后进口。

我不得不在项目性质下并在“窗口”下确定“建设道路”,我不得不重新启用“汤姆斯之家”。 Voila, got rid of this summary.

这是问题的根源。 希望有助于人们。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签