Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle OCI Connection Problem

843830Feb 13 2008 — edited Feb 18 2008
Could you please help me?

When I try to access Oracle using TopLink and OCI this error occurred

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x10007774, pid=3504, tid=3716
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# C [OCI.dll+0x7774]
#
# An error report file with more information is saved as hs_err_pid3504.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

[error occurred during error reporting, step 270, id 0xc0000006]

I have used these libraries
- ojdbc14.jar
- toplink-essentials.jar
- toplink-essentials-agent.jar

Also I used netbeans v6
and Apache Tomcat 6.0.14

The following code shows my persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
  <persistence-unit name="RtsModelPU" transaction-type="RESOURCE_LOCAL">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <class>com.xxx.rts.model.Responsibility</class>
    <class>com.xxx.rts.model.Person</class>
    <class>com.xxx.rts.model.WeeklyTask</class>
    <properties>
      <property name="toplink.jdbc.user" value="XXX"/>
      <property name="toplink.jdbc.password" value="XXX"/>
      <property name="toplink.jdbc.url" value="jdbc:oracle:oci:@XXX"/>
      <property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
    </properties>
  </persistence-unit>
</persistence>
This is the server log file
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x10007774, pid=3504, tid=3716
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# C [OCI.dll+0x7774]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x0aaaa000): JavaThread "Finalizer" daemon [_thread_in_native, id=3716]

siginfo: ExceptionCode=0xc0000006, ExceptionInformation=0x00000000 0x10007774 0xc000020c

Registers:
EAX=0x00000003, EBX=0x00000000, ECX=0x0b837070, EDX=0x00000001
ESP=0x0ac1f54c, EBP=0x0ac1f564, ESI=0x0b3cbc00, EDI=0x0b3cbc00
EIP=0x10007774, EFLAGS=0x00010202

Top of Stack: (sp=0x0ac1f54c)
0x0ac1f54c: 0c6504d7 0b88ea34 0b88eae8 00000000
0x0ac1f55c: 0b837070 00000000 0ac1f580 0c65d331
0x0ac1f56c: 0b3cbc00 00000001 0b3cbc00 00000000
0x0ac1f57c: 00000000 0ac1f5a0 0c644647 0b3cbc00
0x0ac1f58c: 00000000 0b3cbc00 00000000 0b3cbc00
0x0ac1f59c: 07c1b6b8 0ac1f5c4 0c6444d1 0b3cbc00
0x0ac1f5ac: 00000000 0b3cbc00 00000000 00000000
0x0ac1f5bc: 0c4f1348 0c4f1f38 0ac1f5e8 74327ed4

Instructions: (pc=0x10007774)
0x10007764:
[error occurred during error reporting, step 100, id 0xc0000006]

Stack: [0x0abd0000,0x0ac20000), sp=0x0ac1f54c, free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [OCI.dll+0x7774]
C [SQORA32.DLL+0x1d331]
C [SQORA32.DLL+0x4647]
C [SQORA32.DLL+0x44d1]
C [ODBC32.dll+0x7ed4]
C [JdbcOdbc.dll+0x4d8b]
j sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
j oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+35
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+7
j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.disconnect()V+14
j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.logout()V+25
j oracle.toplink.essentials.threetier.ServerSession.logout()V+1
j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager()V+21
j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.undeploy()V+159
j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.close()V+13
j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.finalize()V+8
v ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.jdbc.odbc.JdbcOdbc.disconnect(J[B)V+0
j sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
j oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+35
j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+7
j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.disconnect()V+14
j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.logout()V+25
j oracle.toplink.essentials.threetier.ServerSession.logout()V+1
j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager()V+21
j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.undeploy()V+159
j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.close()V+13
j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.finalize()V+8
v ~StubRoutines::call_stub
j java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0
j java.lang.ref.Finalizer.runFinalizer()V+45
j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
j java.lang.ref.Finalizer$FinalizerThread.run()V+11
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x0b0b0c00 JavaThread "JDWP Transport Listener: dt_shmem" daemon [_thread_in_native, id=5896]
0x0b3d3400 JavaThread "http-8084-4" daemon [_thread_blocked, id=464]
0x0af5a000 JavaThread "http-8084-3" daemon [_thread_blocked, id=5312]
0x0b22d000 JavaThread "TP-Monitor" daemon [_thread_blocked, id=6060]
0x0b36b000 JavaThread "TP-Processor4" daemon [_thread_in_native, id=5300]
0x0b33ec00 JavaThread "TP-Processor3" daemon [_thread_blocked, id=636]
0x0b33e400 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2364]
0x0b127000 JavaThread "TP-Processor1" daemon [_thread_blocked, id=4616]
0x0b264000 JavaThread "http-8084-2" daemon [_thread_blocked, id=2092]
0x0b32b000 JavaThread "http-8084-1" daemon [_thread_in_native, id=784]
0x0b097800 JavaThread "http-8084-Acceptor-0" daemon [_thread_in_native, id=4424]
0x0b200800 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=3832]
0x0aada000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4072]
0x0aad8800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5492]
0x0aacd800 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=5060]
0x0aabcc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=5980]
0x0aabc000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6100]
=>0x0aaaa000 JavaThread "Finalizer" daemon [_thread_in_native, id=3716]
0x0aaa5800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3636]
0x00299400 JavaThread "main" [_thread_in_native, id=876]

Other Threads:
0x0aaa2800 VMThread [id=5072]
0x0aadb800 WatcherThread [id=4248]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 1280K, used 25K [0x02990000, 0x02af0000, 0x02e70000)
eden space 1152K, 2% used [0x02990000, 0x02996470, 0x02ab0000)
from space 128K, 0% used [0x02ab0000, 0x02ab0000, 0x02ad0000)
to space 128K, 0% used [0x02ad0000, 0x02ad0000, 0x02af0000)
tenured generation total 16728K, used 11763K [0x02e70000, 0x03ec6000, 0x06990000)
the space 16728K, 70% used [0x02e70000, 0x039ecd70, 0x039ece00, 0x03ec6000)
compacting perm gen total 36352K, used 36190K [0x06990000, 0x08d10000, 0x0a990000)
the space 36352K, 99% used [0x06990000, 0x08ce7be8, 0x08ce7c00, 0x08d10000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00423000 C:\Program Files\Java\jdk1.6.0_03\bin\java.exe
0x7c900000 - 0x7c9b0000 C:\WINNT\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINNT\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINNT\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINNT\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINNT\system32\Secur32.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\msvcr71.dll
0x6d870000 - 0x6daba000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll
0x7e410000 - 0x7e4a0000 C:\WINNT\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINNT\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINNT\system32\WINMM.dll
0x629c0000 - 0x629c9000 C:\WINNT\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINNT\system32\USP10.dll
0x77c10000 - 0x77c68000 C:\WINNT\system32\msvcrt.dll
0x6d3c0000 - 0x6d3c8000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINNT\system32\PSAPI.DLL
0x6d4b0000 - 0x6d4d9000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\jdwp.dll
0x6d770000 - 0x6d776000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\npt.dll
0x6d820000 - 0x6d82c000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\verify.dll
0x6d460000 - 0x6d47f000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.dll
0x6d860000 - 0x6d86f000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\zip.dll
0x6d320000 - 0x6d328000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\dt_shmem.dll
0x6d620000 - 0x6d633000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINNT\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINNT\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINNT\system32\mswsock.dll
0x662b0000 - 0x66308000 C:\WINNT\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINNT\System32\wshtcpip.dll
0x62f00000 - 0x62f13000 ...\Ora10gClient\BIN\ocijdbc10.dll
0x10000000 - 0x10057000 ...\ora10gClient\bin\OCI.dll
0x61c20000 - 0x61e72000 ...\ora10gClient\bin\OraClient10.Dll
0x60870000 - 0x60953000 ...\ora10gClient\bin\oracore10.dll
0x60a80000 - 0x60b44000 ...\ora10gClient\bin\oranls10.dll
0x63690000 - 0x636a8000 ...\ora10gClient\bin\oraunls10.dll
0x60eb0000 - 0x60eb7000 ...\ora10gClient\bin\orauts.dll
0x774e0000 - 0x7761d000 C:\WINNT\system32\ole32.dll
0x636b0000 - 0x636b6000 ...\ora10gClient\bin\oravsn10.dll
0x60fa0000 - 0x61092000 ...\ora10gClient\bin\oracommon10.dll
0x60300000 - 0x60857000 ...\ora10gClient\bin\orageneric10.dll
0x63430000 - 0x63457000 ...\ora10gClient\bin\orasnls10.dll
0x0c000000 - 0x0c160000 ...\ora10gClient\bin\oraxml10.dll
0x0c160000 - 0x0c171000 C:\WINNT\system32\MSVCIRT.dll
0x60960000 - 0x60a6d000 ...\ora10gClient\bin\oran10.dll
0x62740000 - 0x6277d000 ...\ora10gClient\bin\oranl10.dll
0x62790000 - 0x627a7000 ...\ora10gClient\bin\oranldap10.dll
0x627f0000 - 0x628f9000 ...\ora10gClient\bin\orannzsbb10.dll
0x62530000 - 0x62583000 ...\ora10gClient\bin\oraldapclnt10.dll
0x62670000 - 0x6268b000 ...\ora10gClient\bin\orancrypt10.dll
0x71ad0000 - 0x71ad9000 C:\WINNT\system32\WSOCK32.dll
0x77120000 - 0x771ab000 C:\WINNT\system32\OLEAUT32.dll
0x62920000 - 0x6296c000 ...\ora10gClient\bin\oranro10.dll
0x626b0000 - 0x626b7000 ...\ora10gClient\bin\oranhost10.dll
0x62660000 - 0x62666000 ...\ora10gClient\bin\orancds10.dll
0x0acc0000 - 0x0acc8000 ...\ora10gClient\bin\orantns10.dll
0x60b50000 - 0x60ea8000 ...\ora10gClient\bin\orapls10.dll
0x0c180000 - 0x0c189000 ...\ora10gClient\bin\oraslax10.dll
0x63080000 - 0x63284000 ...\ora10gClient\bin\oraplp10.dll
0x61ed0000 - 0x61f5b000 ...\ora10gClient\bin\orahasgen10.dll
0x62ab0000 - 0x62b1a000 ...\ora10gClient\bin\oraocr10.dll
0x62b20000 - 0x62b60000 ...\ora10gClient\bin\oraocrb10.dll
0x5b860000 - 0x5b8b4000 C:\WINNT\system32\NETAPI32.dll
0x62980000 - 0x62990000 ...\ora10gClient\bin\orantcp10.dll
0x0c190000 - 0x0c22a000 ...\ora10gClient\bin\orasql10.dll
0x76f20000 - 0x76f47000 C:\WINNT\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINNT\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINNT\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 C:\WINNT\system32\rasadhlp.dll
0x5ad70000 - 0x5ada8000 C:\WINNT\system32\uxtheme.dll
0x0c400000 - 0x0c407000 C:\Program Files\Logitech\MouseWare\System\LgWndHk.dll
0x74720000 - 0x7476b000 C:\WINNT\system32\MSCTF.dll
0x6d4a0000 - 0x6d4ad000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\JdbcOdbc.dll
0x74320000 - 0x7435d000 C:\WINNT\system32\ODBC32.dll
0x5d090000 - 0x5d12a000 C:\WINNT\system32\COMCTL32.dll
0x7c9c0000 - 0x7d1d6000 C:\WINNT\system32\SHELL32.dll
0x77f60000 - 0x77fd6000 C:\WINNT\system32\SHLWAPI.dll
0x763b0000 - 0x763f9000 C:\WINNT\system32\comdlg32.dll
0x773d0000 - 0x774d3000 C:\WINNT\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x20000000 - 0x20017000 C:\WINNT\system32\odbcint.dll
0x5fe80000 - 0x5fe9b000 C:\WINNT\system32\odbccp32.dll
0x77c00000 - 0x77c08000 C:\WINNT\system32\VERSION.dll
0x0c640000 - 0x0c6bd000 ...\Ora10gClient\BIN\SQORA32.DLL
0x0c6c0000 - 0x0c6c9000 ...\ORA10GCLIENT\BIN\sqresUS.dll
0x7c140000 - 0x7c245000 C:\WINNT\system32\MFC71.DLL
0x5d360000 - 0x5d36e000 C:\WINNT\system32\MFC71ENU.DLL

VM Arguments:
jvm_args: -Dhttp.proxyHost= -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts= -Dhttps.proxyHost= -Dhttps.proxyPort=80 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Documents and Settings\...\.netbeans\6.0\apache-tomcat-6.0.14_base\conf\logging.properties -Xdebug -Xrunjdwp:transport=dt_shmem,address=tomcat_shared_memory_id,server=y,suspend=n -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\endorsed -Dcatalina.base=C:\Documents and Settings\XXX\.netbeans\6.0\apache-tomcat-6.0.14_base -Dcatalina.home=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14 -Djava.io.tmpdir=C:\Documents and Settings\...\.netbeans\6.0\apache-tomcat-6.0.14_base\temp
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
JRE_HOME=C:\Program Files\Java\jdk1.6.0_03
CLASSPATH=C:\Program Files\Java\jdk1.6.0_03\lib\tools.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\bin\bootstrap.jar
PATH=...\ora10gClient\bin;...\ora9i\bin;...\orant\ora8i\bin;...\orant\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Documentum\Shared;p:\pvcs813\vm\win32\bin;p:\pvcs813\vm\common\bin\win32;P:\PVCS81\vm\win32\bin;P:\PVCS81\vm\common\bin\win32;C:\Program Files\Common Files\Business Objects\3.0\bin\NOTES\;C:\Program Files\Common Files\Business Objects\3.0\bin\NOTES\DATA\;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\wbem;C:\Program Files\QuickTime\QTSystem";;C:\Program Files\QuickTime\QTSystem;C:\Borland\JBuilder2005\jdk1.4\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Documentum\Shared;C:\WINNT;C:\WINNT\system32
USERNAME=XXX
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel



--------------- S Y S T E M ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3

Memory: 4k page, physical 1047536k(145972k free), swap 2996004k(1885868k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310

Please if have a solution to this problem let me know,
Please don't say use thin driver because OCI is required on my envirnoment
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2008
Added on Feb 13 2008
6 comments
590 views