I am running a java servlet on Tomcat and have noticed that it has been unexpectedly terminating quite a bit over the last month or so. Yesterday it happened twice, citing an exception in native code outside the VM. I really have no idea where to start debugging this. Below is what is in the log file that is generated when it terminates. Does anybody know why something like this would be happening? Looking at the stack trace, it looks like a strange place to be terminating? Have you come accross anything like this?
Thanks!!!
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77F4200B
Function=RtlEnterCriticalSection+0xB
Library=C:\WINDOWS\system32\ntdll.dll
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.allocConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(JdbcOdbc.java:114)
at sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(JdbcOdbcDriver.java:929)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:126)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
- locked <02F7D2F0> (a sun.jdbc.odbc.JdbcOdbcDriver)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
- locked <06A87EB0> (a java.lang.Class)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
- locked <06A87EB0> (a java.lang.Class)
at com.lmp.iomada.servlets.LMPPersistence.buildObjects(LMPPersistence.java:56)
at com.lmp.iomada.servlets.LMPServlet.transformHTML(LMPServlet.java:635)
at com.lmp.iomada.servlets.LMPServlet.doGet(LMPServlet.java:71)
at com.lmp.iomada.servlets.LMPServlet.doPost(LMPServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Dynamic libraries:
0x00400000 - 0x00406000 c:\j2sdk1.4.1_03\bin\java.exe
0x77F40000 - 0x77FFA000 C:\WINDOWS\system32\ntdll.dll
0x77E40000 - 0x77F34000 C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E30000 C:\WINDOWS\system32\ADVAPI32.dll
0x77C50000 - 0x77CF5000 C:\WINDOWS\system32\RPCRT4.dll
0x77BA0000 - 0x77BF4000 C:\WINDOWS\system32\MSVCRT.dll
0x6D340000 - 0x6D46B000 c:\j2sdk1.4.1_03\jre\bin\client\jvm.dll
0x77D00000 - 0x77D8F000 C:\WINDOWS\system32\USER32.dll
0x77C00000 - 0x77C44000 C:\WINDOWS\system32\GDI32.dll
0x76AA0000 - 0x76ACC000 C:\WINDOWS\system32\WINMM.dll
0x6D1E0000 - 0x6D1E7000 c:\j2sdk1.4.1_03\jre\bin\hpi.dll
0x6D310000 - 0x6D31E000 c:\j2sdk1.4.1_03\jre\bin\verify.dll
0x6D220000 - 0x6D239000 c:\j2sdk1.4.1_03\jre\bin\java.dll
0x6D330000 - 0x6D33D000 c:\j2sdk1.4.1_03\jre\bin\zip.dll
0x76F50000 - 0x76F63000 C:\WINDOWS\system32\Secur32.dll
0x6D2E0000 - 0x6D2EE000 C:\j2sdk1.4.1_03\jre\bin\net.dll
0x71BB0000 - 0x71BB9000 C:\WINDOWS\system32\WSOCK32.dll
0x71C00000 - 0x71C18000 C:\WINDOWS\system32\WS2_32.dll
0x71BF0000 - 0x71BF8000 C:\WINDOWS\system32\WS2HELP.dll
0x71B20000 - 0x71B63000 C:\WINDOWS\system32\mswsock.dll
0x71AE0000 - 0x71AE8000 C:\WINDOWS\System32\wshtcpip.dll
0x6D260000 - 0x6D26B000 C:\j2sdk1.4.1_03\jre\bin\JdbcOdbc.dll
0x0B3E0000 - 0x0B41A000 C:\WINDOWS\system32\ODBC32.dll
0x70BC0000 - 0x70C50000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.0.0_x-ww_8A69BA05\COMCTL32.dll
0x77380000 - 0x77B5D000 C:\WINDOWS\system32\SHELL32.dll
0x77290000 - 0x772D9000 C:\WINDOWS\system32\SHLWAPI.dll
0x762B0000 - 0x762F7000 C:\WINDOWS\system32\comdlg32.dll
0x70AD0000 - 0x70BB6000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.100.0_x-ww_8417450B\comctl32.dll
0x0B580000 - 0x0B597000 C:\WINDOWS\system32\odbcint.dll
0x0B720000 - 0x0B73A000 C:\WINDOWS\system32\odbccp32.dll
0x77160000 - 0x77285000 C:\WINDOWS\system32\ole32.dll
0x77B90000 - 0x77B98000 C:\WINDOWS\system32\VERSION.dll
0x76ED0000 - 0x76EF7000 C:\WINDOWS\system32\DNSAPI.dll
0x76F70000 - 0x76F77000 C:\WINDOWS\System32\winrnr.dll
0x76F10000 - 0x76F3F000 C:\WINDOWS\system32\WLDAP32.dll
0x76F80000 - 0x76F85000 C:\WINDOWS\system32\rasadhlp.dll
0x0FFD0000 - 0x0FFFD000 C:\WINDOWS\system32\rsaenh.dll
0x76B70000 - 0x76B7B000 C:\WINDOWS\system32\PSAPI.DLL
0x76C10000 - 0x76C38000 C:\WINDOWS\system32\imagehlp.dll
0x6D580000 - 0x6D621000 C:\WINDOWS\system32\dbghelp.dll
Local Time = Tue Jun 01 21:23:49 2004
Elapsed Time = 5644
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_03-b02 mixed mode)
#
Thanks!!!
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77F4200B
Function=RtlEnterCriticalSection+0xB
Library=C:\WINDOWS\system32\ntdll.dll
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.allocConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(JdbcOdbc.java:114)
at sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(JdbcOdbcDriver.java:929)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:126)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
- locked <02F7D2F0> (a sun.jdbc.odbc.JdbcOdbcDriver)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
- locked <06A87EB0> (a java.lang.Class)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
- locked <06A87EB0> (a java.lang.Class)
at com.lmp.iomada.servlets.LMPPersistence.buildObjects(LMPPersistence.java:56)
at com.lmp.iomada.servlets.LMPServlet.transformHTML(LMPServlet.java:635)
at com.lmp.iomada.servlets.LMPServlet.doGet(LMPServlet.java:71)
at com.lmp.iomada.servlets.LMPServlet.doPost(LMPServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Dynamic libraries:
0x00400000 - 0x00406000 c:\j2sdk1.4.1_03\bin\java.exe
0x77F40000 - 0x77FFA000 C:\WINDOWS\system32\ntdll.dll
0x77E40000 - 0x77F34000 C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E30000 C:\WINDOWS\system32\ADVAPI32.dll
0x77C50000 - 0x77CF5000 C:\WINDOWS\system32\RPCRT4.dll
0x77BA0000 - 0x77BF4000 C:\WINDOWS\system32\MSVCRT.dll
0x6D340000 - 0x6D46B000 c:\j2sdk1.4.1_03\jre\bin\client\jvm.dll
0x77D00000 - 0x77D8F000 C:\WINDOWS\system32\USER32.dll
0x77C00000 - 0x77C44000 C:\WINDOWS\system32\GDI32.dll
0x76AA0000 - 0x76ACC000 C:\WINDOWS\system32\WINMM.dll
0x6D1E0000 - 0x6D1E7000 c:\j2sdk1.4.1_03\jre\bin\hpi.dll
0x6D310000 - 0x6D31E000 c:\j2sdk1.4.1_03\jre\bin\verify.dll
0x6D220000 - 0x6D239000 c:\j2sdk1.4.1_03\jre\bin\java.dll
0x6D330000 - 0x6D33D000 c:\j2sdk1.4.1_03\jre\bin\zip.dll
0x76F50000 - 0x76F63000 C:\WINDOWS\system32\Secur32.dll
0x6D2E0000 - 0x6D2EE000 C:\j2sdk1.4.1_03\jre\bin\net.dll
0x71BB0000 - 0x71BB9000 C:\WINDOWS\system32\WSOCK32.dll
0x71C00000 - 0x71C18000 C:\WINDOWS\system32\WS2_32.dll
0x71BF0000 - 0x71BF8000 C:\WINDOWS\system32\WS2HELP.dll
0x71B20000 - 0x71B63000 C:\WINDOWS\system32\mswsock.dll
0x71AE0000 - 0x71AE8000 C:\WINDOWS\System32\wshtcpip.dll
0x6D260000 - 0x6D26B000 C:\j2sdk1.4.1_03\jre\bin\JdbcOdbc.dll
0x0B3E0000 - 0x0B41A000 C:\WINDOWS\system32\ODBC32.dll
0x70BC0000 - 0x70C50000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.0.0_x-ww_8A69BA05\COMCTL32.dll
0x77380000 - 0x77B5D000 C:\WINDOWS\system32\SHELL32.dll
0x77290000 - 0x772D9000 C:\WINDOWS\system32\SHLWAPI.dll
0x762B0000 - 0x762F7000 C:\WINDOWS\system32\comdlg32.dll
0x70AD0000 - 0x70BB6000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.100.0_x-ww_8417450B\comctl32.dll
0x0B580000 - 0x0B597000 C:\WINDOWS\system32\odbcint.dll
0x0B720000 - 0x0B73A000 C:\WINDOWS\system32\odbccp32.dll
0x77160000 - 0x77285000 C:\WINDOWS\system32\ole32.dll
0x77B90000 - 0x77B98000 C:\WINDOWS\system32\VERSION.dll
0x76ED0000 - 0x76EF7000 C:\WINDOWS\system32\DNSAPI.dll
0x76F70000 - 0x76F77000 C:\WINDOWS\System32\winrnr.dll
0x76F10000 - 0x76F3F000 C:\WINDOWS\system32\WLDAP32.dll
0x76F80000 - 0x76F85000 C:\WINDOWS\system32\rasadhlp.dll
0x0FFD0000 - 0x0FFFD000 C:\WINDOWS\system32\rsaenh.dll
0x76B70000 - 0x76B7B000 C:\WINDOWS\system32\PSAPI.DLL
0x76C10000 - 0x76C38000 C:\WINDOWS\system32\imagehlp.dll
0x6D580000 - 0x6D621000 C:\WINDOWS\system32\dbghelp.dll
Local Time = Tue Jun 01 21:23:49 2004
Elapsed Time = 5644
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_03-b02 mixed mode)
#