This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes An unexpected error has been detected by HotSpot Virtual Machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "An unexpected error has been detected by HotSpot Virtual Machine" Watch "An unexpected error has been detected by HotSpot Virtual Machine" New topic
Author

An unexpected error has been detected by HotSpot Virtual Machine

Gnanam Meenakshi Sundaram
Greenhorn

Joined: May 17, 2007
Posts: 14
Hi All,

I am using Struts Framework and tomcat5.5 for my web application.
My application hanged when I navigate through a number jsp pages(When I click next in some pages.But Next action worked well in few pages).No action took place for a long time.After some time I got the following error in my console.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0xc66a85f9, pid=3276, tid=3124
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C 0xc66a85f9
#
# An error report file with more information is saved as hs_err_pid3276.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
-----------------------------------------------------
Contents of hs_err_pid3276.log
-----------------------------------------------------

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0xc66a85f9, pid=3276, tid=3124
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C 0xc66a85f9
#

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

Current thread (0x0af329e0): JavaThread "http-8080-Processor25" daemon [_thread_in_Java, id=3124]

siginfo: ExceptionCode=0xc0000005, reading address 0xc66a85f9

Registers:
EAX=0x00000001, EBX=0x06ae20d8, ECX=0x03ab73e0, EDX=0x009e8f90
ESP=0x0c18f21c, EBP=0x0c18f278, ESI=0x00000001, EDI=0x03ab73e0
EIP=0xc66a85f9, EFLAGS=0x00010246

Top of Stack: (sp=0x0c18f21c)
0x0c18f21c: 00d04711 03f14718 00000008 009a45c0
0x0c18f22c: 6d7600c6 0af329e0 0812319e 0000009a
0x0c18f23c: 00000001 0c18f288 0094d6cf 0c18f2a4
0x0c18f24c: 0c18f288 0094d6cf 0c18f2a4 0c18f288
0x0c18f25c: 0094d6cf 0c18f2a4 04512ba0 075eaa18
0x0c18f26c: 03f14718 00000005 79a2aa5b 0c18f2a4
0x0c18f27c: 009a45c0 03f146f0 03d64588 0c18f288
0x0c18f28c: 0812319e 0c18f2c4 081236e8 00000000

Instructions: (pc=0xc66a85f9)
0xc66a85e9:
[error occurred during error reporting, step 100, id 0xc0000005]

Stack: [0x0c150000,0x0c190000), sp=0x0c18f21c, free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0xc66a85f9
v ~OSRAdapter
j com.att.sdp.soap.Order.saveFile(Ljava/io/PrintWriter;)V+19
j com.att.sdp.soap.SoapBody.saveFile(Ljava/io/PrintWriter;)V+11
j com.att.sdp.soap.SoapEnv.saveFile(Ljava/io/PrintWriter;)V+11
j com.att.sdp.helper.MessageUpdates.saveToFile(Lcom/att/sdp/soap/SoapEnv;Ljavax/servlet/http/HttpServletRequest;Lorg/apache/struts/util/MessageResources;)Ljava/lang/String;+591
j com.att.sdp.helper.NavigationHelper.findHSIANextPage(Lcom/att/sdp/soap/SoapEnv;Ljavax/servlet/http/HttpServletRequest;Lorg/apache/struts/util/MessageResources;)Ljava/lang/String;+264
j com.att.sdp.action.HSIAWiFiAction.execute(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;+193
j org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;+7
j org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+257
j org.apache.struts.action.ActionServlet.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+40
j org.apache.struts.action.ActionServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354
j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670
j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285
j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141
j org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+566
j org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113
j org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45
j org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102
j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [jvm.dll+0x845a9]
V [jvm.dll+0xd9317]
V [jvm.dll+0x8447a]
V [jvm.dll+0x841d7]
V [jvm.dll+0x9ed69]
V [jvm.dll+0x109fe3]
V [jvm.dll+0x109fb1]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb683]


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

Java Threads: ( => current thread )
0x0af1c258 JavaThread "TP-Monitor" daemon [_thread_blocked, id=3220]
0x0b3a3b88 JavaThread "TP-Processor4" daemon [_thread_in_native, id=3156]
0x0b3a3a00 JavaThread "TP-Processor3" daemon [_thread_blocked, id=3152]
0x0b2b6338 JavaThread "TP-Processor2" daemon [_thread_blocked, id=3944]
0x0aefc808 JavaThread "TP-Processor1" daemon [_thread_blocked, id=3148]
0x0af33ef0 JavaThread "http-8080-Monitor" [_thread_blocked, id=3132]
=>0x0af329e0 JavaThread "http-8080-Processor25" daemon [_thread_in_Java, id=3124]
0x0af31eb8 JavaThread "http-8080-Processor24" daemon [_thread_in_Java, id=3120]
0x0af31390 JavaThread "http-8080-Processor23" daemon [_thread_in_Java, id=3116]
0x0af30868 JavaThread "http-8080-Processor22" daemon [_thread_in_native, id=3112]
0x0af2fe28 JavaThread "http-8080-Processor21" daemon [_thread_in_native, id=3108]
0x0af553d8 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=1224]
0x0af548d8 JavaThread "http-8080-Processor19" daemon [_thread_blocked, id=3092]
0x0af53dd8 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=3004]
0x0af532d8 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=3556]
0x0af53008 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=3916]
0x0aeb9aa8 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=3032]
0x0b3d2fd8 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=4052]
0x0b3d24d8 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=2276]
0x0b3d1a08 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=2068]
0x0afebd80 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=2868]
0x0afeb280 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=644]
0x0afea810 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=2008]
0x0aea2878 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=1900]
0x0b4829e8 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=3036]
0x0afbbe10 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=3048]
0x0afbbc88 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=3044]
0x0b031008 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=2236]
0x0b030e80 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=3872]
0x0ad19e98 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=1720]
0x0ad1a020 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=2976]
0x0ad19b88 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=1736]
0x0091a390 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2968]
0x00918998 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2964]
0x00917cf8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2960]
0x00915050 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=2940]
0x00914468 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=3952]
0x003599f0 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=2936]
0x009047b8 JavaThread "Finalizer" daemon [_thread_blocked, id=2904]
0x00903320 JavaThread "Reference Handler" daemon [_thread_blocked, id=2824]
0x00359d70 JavaThread "main" [_thread_in_native, id=2892]

Other Threads:
0x00900a30 VMThread [id=1864]
0x0093cdc8 WatcherThread [id=2972]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 2304K, used 433K [0x029c0000, 0x02c30000, 0x02ea0000)
eden space 2112K, 18% used [0x029c0000, 0x02a22070, 0x02bd0000)
from space 192K, 21% used [0x02bd0000, 0x02bda688, 0x02c00000)
to space 192K, 0% used [0x02c00000, 0x02c00000, 0x02c30000)
tenured generation total 29528K, used 20918K [0x02ea0000, 0x04b76000, 0x069c0000)
the space 29528K, 70% used [0x02ea0000, 0x0430d9a8, 0x0430da00, 0x04b76000)
compacting perm gen total 24576K, used 24461K [0x069c0000, 0x081c0000, 0x0a9c0000)
the space 24576K, 99% used [0x069c0000, 0x081a3458, 0x081a3600, 0x081c0000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040d000 C:\Program Files\SDE3.0\jdk1.5.0_06\bin\javaw.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x7e410000 - 0x7e4a0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x6d6e0000 - 0x6d874000 C:\Program Files\SDE3.0\jdk1.5.0_06\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d2f0000 - 0x6d2f8000 C:\Program Files\SDE3.0\jdk1.5.0_06\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d3f0000 - 0x6d425000 C:\Program Files\SDE3.0\jdk1.5.0_06\jre\bin\jdwp.dll
0x6d6b0000 - 0x6d6bc000 C:\Program Files\SDE3.0\jdk1.5.0_06\jre\bin\verify.dll
0x6d370000 - 0x6d38d000 C:\Program Files\SDE3.0\jdk1.5.0_06\jre\bin\java.dll
0x6d6d0000 - 0x6d6df000 C:\Program Files\SDE3.0\jdk1.5.0_06\jre\bin\zip.dll
0x6d290000 - 0x6d297000 C:\Program Files\SDE3.0\jdk1.5.0_06\jre\bin\dt_socket.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x6d530000 - 0x6d543000 C:\Program Files\SDE3.0\jdk1.5.0_06\jre\bin\net.dll

VM Arguments:
jvm_args: -Dcatalina.home=C:\Program Files\SDE3.0\tomcat-5.5.16 -Djava.endorsed.dirs=C:\Program Files\SDE3.0\tomcat-5.5.16\common\endorsed -Dcatalina.base=C:\Program Files\SDE3.0\tomcat-5.5.16 -Djava.io.tmpdir=C:\Program Files\SDE3.0\tomcat-5.5.16\temp -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:1168
java_command: org.apache.catalina.startup.Bootstrap -config C:\Program Files\SDE3.0\tomcat-5.5.16\conf\server.xml start
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME="C:/Program Files/SDE3.0\j2sdk1.4.2_10"
CLASSPATH=D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\providerutil.jar;D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\ldap.jar;D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\jta.jar;D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\jndi.jar;D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\jms.jar;D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\connector.jar;D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\fscontext.jar;D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib\com.ibm.mq.jar;.;C:\axis-1_1\webapps\axis\WEB-INF\lib\axis.jar;C:\axis-1_1\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\axis-1_1\webapps\axis\WEB-INF\lib\commons-discovery.jar;C:\axis-1_1\webapps\axis\WEB-INF\lib\commons-logging.jar;C:\axis-1_1\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\axis-1_1\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\axis-1_1\webapps\axis\WEB-INF\lib\saaj.jar;C:\axis-1_1\webapps\axis\WEB-INF\lib\wsdl4j.jar;C:\SDE\jakarta-tomcat-5.0.28\webapps\axis\WEB-INF\lib\xercesImpl -2.6.2.jar;C:\SDE\jakarta-tomcat-5.0.28\webapps\axis\WEB-INF\lib\xml-apis-2.6.2.jar;D:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;D:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;D:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;D:\PROGRA~1\IBM\SQLLIB\bin;D:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\SDE3.0\jdk1.5.0_06;C:\download\javamail-1.4\mail.jar;C:\download\activation\activation.jar;
PATH="C:/Program Files/SDE3.0\j2sdk1.4.2_10\bin";D:\IBM\WebSphere\AppServer\WebSphere MQ\Java\lib;D:\Borland\CBuilderX1.5\bin;D:\Borland\CBuilderX1.5\BorlandCPP\bin;C:\Program Files\CSL Arm Toolchain\bin;C:\Symbian\Series60_1_2_B\epoc32\tools;C:\windows\system32;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\VC98\Bin;C:\Program Files\doxygen\bin;C:\PROGRA~1\ATT\Graphviz\bin;D:\IBM\WebSphere\AppServer\WebSphere MQ\bin;D:\IBM\WebSphere\AppServer\WebSphere MQ\WEMPS\bin;C:\Program Files\SDE3.0\jdk1.5.0_06;C:\Program Files\Subversion\bin
USERNAME=149618
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel



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

OS: Windows XP Build 2600 Service Pack 2

CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 1039344k(403768k free), swap 3503880k(2968488k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0

I dont know what is the root cause of this problem.Is it related to some errors in code?
Kindly help me in solving this issue...

Thanks in advance,
M.Gnanam


Thanks,<br />Gnanam<br /> <br />SCJP1.4 90,SCWCD 88
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: An unexpected error has been detected by HotSpot Virtual Machine