问题描述
JSP网站,用tomcat做服务器,sqlserver2000数据库(tomcat6.0+jdk1.5)。tomcat总是自动关闭。曾经用tomcat5.0,当时错误提示“StandardWrapperValve[debugjsp]:Servlet.service()forservletdebugjspthrewexceptionjava.sql.SQLException:Generalerror”,但是每次查询数据库操作后,结果集都关闭了,很困惑。下面是用tomcat6.0得到的错误信息。请高人指点。
解决方案
解决方案二:
##AnunexpectederrorhasbeendetectedbyHotSpotVirtualMachine:##EXCEPTION_ACCESS_VIOLATION(0xc0000005)atpc=0x77f3200b,pid=9248,tid=5984##JavaVM:JavaHotSpot(TM)ClientVM(1.5.0_05-b05mixedmode)#Problematicframe:#C[ntdll.dll+0x200b]#---------------THREAD---------------Currentthread(0x3ab68a30):JavaThread"http-80-12"daemon[_thread_in_native,id=5984]siginfo:ExceptionCode=0xc0000005,readingaddress0x00000018Registers:EAX=0x00000004,EBX=0x35160a08,ECX=0x7ff8d000,EDX=0x00000004ESP=0x3bc5f3e0,EBP=0x3bc5f414,ESI=0x00000000,EDI=0x3b572f70EIP=0x77f3200b,EFLAGS=0x00010246TopofStack:(sp=0x3bc5f3e0)0x3bc5f3e0:3b4d1351000000043b572f943b4d137b0x3bc5f3f0:3b572f943b572f703b4d1f823b572f940x3bc5f400:3ab68aec3b4d4e9f3b572f703b5000000x3bc5f410:006700003bc5f4443b4d51603b572f700x3bc5f420:3bc5f44c000000033ac454303ab68aec0x3bc5f430:6d3711da3b572f703bc5f44c3ab68a300x3bc5f440:35160a083bc5f47c008c826f000000000x3bc5f450:3bc5f4983b572f70000000003bc5f48cInstructions:(pc=0x77f3200b)0x77f31ffb:9090909090648b0d180000008b5424040x77f3200b:837a140075409090909090f0ff420475Stack:[0x3bc10000,0x3bc60000),sp=0x3bc5f3e0,freespace=316kNativeframes:(J=compiledJavacode,j=interpreted,Vv=VMcode,C=nativecode)C[ntdll.dll+0x200b]C[ODBC32.dll+0x5160]jsun.jdbc.odbc.JdbcOdbc.allocStmt(J[B)J+0jsun.jdbc.odbc.JdbcOdbc.SQLAllocStmt(J)J+47jsun.jdbc.odbc.JdbcOdbcConnection.createStatement(II)Ljava/sql/Statement;+27Jorg.apache.jsp.lib_jsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Vjorg.apache.jasper.runtime.HttpJspBase.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3Jjavax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)Vjorg.apache.jasper.servlet.JspServletWrapper.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V+320jorg.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljava/lang/Throwable;Z)V+126jorg.apache.jasper.servlet.JspServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+347Jjavax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)VJorg.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)Vv~RuntimeStub::alignment_frame_returnRuntime1stubjorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82jorg.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41jjava.lang.Thread.run()V+11v~StubRoutines::call_stubV[jvm.dll+0x8295c]V[jvm.dll+0xd752e]V[jvm.dll+0x8282d]V[jvm.dll+0x8258a]V[jvm.dll+0x9d476]V[jvm.dll+0x1042ae]V[jvm.dll+0x10427c]C[MSVCRT.dll+0x291ed]C[kernel32.dll+0xa990]Javaframes:(J=compiledJavacode,j=interpreted,Vv=VMcode)jsun.jdbc.odbc.JdbcOdbc.allocStmt(J[B)J+0jsun.jdbc.odbc.JdbcOdbc.SQLAllocStmt(J)J+47jsun.jdbc.odbc.JdbcOdbcConnection.createStatement(II)Ljava/sql/Statement;+27Jorg.apache.jsp.lib_jsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Vjorg.apache.jasper.runtime.HttpJspBase.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3Jjavax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)Vjorg.apache.jasper.servlet.JspServletWrapper.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V+320jorg.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljava/lang/Throwable;Z)V+126jorg.apache.jasper.servlet.JspServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+347Jjavax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)VJorg.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)VJorg.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)VJorg.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)Vv~RuntimeStub::alignment_frame_returnRuntime1stubjorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82jorg.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41jjava.lang.Thread.run()V+11v~StubRoutines::call_stub
解决方案三:
---------------PROCESS---------------JavaThreads:(=>currentthread)0x3ac6be00JavaThread"http-80-18"daemon[_thread_blocked,id=3052]0x3ac459a0JavaThread"http-80-17"daemon[_thread_blocked,id=6228]0x3abaf038JavaThread"http-80-16"daemon[_thread_blocked,id=6064]0x3abafe60JavaThread"http-80-15"daemon[_thread_blocked,id=10144]0x3ab8fec8JavaThread"http-80-14"daemon[_thread_blocked,id=4600]0x3ad7a268JavaThread"http-80-13"daemon[_thread_blocked,id=10000]=>0x3ab68a30JavaThread"http-80-12"daemon[_thread_in_native,id=5984]0x3acc3998JavaThread"http-80-11"daemon[_thread_blocked,id=7224]0x3ab946a0JavaThread"http-80-10"daemon[_thread_blocked,id=4740]0x3ab3add0JavaThread"http-80-9"daemon[_thread_blocked,id=4568]0x3ab40238JavaThread"http-80-8"daemon[_thread_blocked,id=8376]0x3ab8a240JavaThread"http-80-7"daemon[_thread_blocked,id=9896]0x3ab7bd30JavaThread"http-80-6"daemon[_thread_blocked,id=10196]0x00850778JavaThread"http-80-5"daemon[_thread_blocked,id=9524]0x3adc99b8JavaThread"http-80-4"daemon[_thread_blocked,id=8624]0x008a9b50JavaThread"http-80-3"daemon[_thread_blocked,id=3020]0x008b5a50JavaThread"http-80-2"daemon[_thread_blocked,id=7444]0x008a3e50JavaThread"http-80-1"daemon[_thread_blocked,id=4880]0x3ae61170JavaThread"TP-Monitor"daemon[_thread_blocked,id=9708]0x3ae86408JavaThread"TP-Processor4"daemon[_thread_in_native,id=5108]0x3ae66e58JavaThread"TP-Processor3"daemon[_thread_blocked,id=9908]0x3ae68278JavaThread"TP-Processor2"daemon[_thread_blocked,id=6744]0x3ae867f0JavaThread"TP-Processor1"daemon[_thread_blocked,id=9916]0x3ae5f1e8JavaThread"http-80-Acceptor-0"daemon[_thread_in_native,id=5456]0x3ae7acb0JavaThread"ContainerBackgroundProcessor[StandardEngine[Catalina]]"daemon[_thread_blocked,id=7348]0x3abd9c68JavaThread"GCDaemon"daemon[_thread_blocked,id=7856]0x3a9fd750JavaThread"Thread-2"[_thread_in_native,id=10076]0x00886080JavaThread"LowMemoryDetector"daemon[_thread_blocked,id=7804]0x00884ce0JavaThread"CompilerThread0"daemon[_thread_blocked,id=7300]0x00883f78JavaThread"SignalDispatcher"daemon[_thread_blocked,id=9920]0x008763c8JavaThread"Finalizer"daemon[_thread_blocked,id=9056]0x00875740JavaThread"ReferenceHandler"daemon[_thread_blocked,id=6888]0x003c5bd8JavaThread"main"[_thread_in_native,id=8540]OtherThreads:0x00871680VMThread[id=7720]0x00887390WatcherThread[id=5768]VMstate:notatsafepoint(normalexecution)VMMutex/Monitorcurrentlyownedbyathread:NoneHeapdefnewgenerationtotal56704K,used2208K[0x028c0000,0x06640000,0x06640000)edenspace50432K,3%used[0x028c0000,0x02a744f8,0x05a00000)fromspace6272K,7%used[0x06020000,0x06093d40,0x06640000)tospace6272K,0%used[0x05a00000,0x05a00000,0x06020000)tenuredgenerationtotal756224K,used7425K[0x06640000,0x348c0000,0x348c0000)thespace756224K,0%used[0x06640000,0x06d807f8,0x06d80800,0x348c0000)compactingpermgentotal13056K,used12929K[0x348c0000,0x35580000,0x388c0000)thespace13056K,99%used[0x348c0000,0x355606e0,0x35560800,0x35580000)Nosharedspacesconfigured.Dynamiclibraries:0x00400000-0x0040f000C:Tomcat6.0bintomcat6.exe0x77f30000-0x77ffa000C:WINDOWSsystem32ntdll.dll0x77e10000-0x77f2d000C:WINDOWSsystem32kernel32.dll0x77cd0000-0x77d5e000C:WINDOWSsystem32USER32.dll0x77bd0000-0x77c14000C:WINDOWSsystem32GDI32.dll0x77d60000-0x77e00000C:WINDOWSsystem32ADVAPI32.dll0x77c20000-0x77cc4000C:WINDOWSsystem32RPCRT4.dll0x77b70000-0x77bc4000C:WINDOWSsystem32MSVCRT.dll0x77370000-0x77b2b000C:WINDOWSsystem32SHELL32.dll0x77280000-0x772c9000C:WINDOWSsystem32SHLWAPI.dll0x76180000-0x7619d000C:WINDOWSsystem32IMM32.DLL0x63090000-0x63099000C:WINDOWSsystem32LPK.DLL0x72ee0000-0x72f3e000C:WINDOWSsystem32USP10.dll0x70ad0000-0x70bb6000C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.100.0_x-ww_8417450Bcomctl32.dll0x6d640000-0x6d7cc000C:ProgramFilesJavajre1.5.0_05binclientjvm.dll0x769e0000-0x76a09000C:WINDOWSsystem32WINMM.dll0x6d280000-0x6d288000C:ProgramFilesJavajre1.5.0_05binhpi.dll0x76ab0000-0x76abb000C:WINDOWSsystem32PSAPI.DLL0x76eb0000-0x76ec3000C:WINDOWSsystem32Secur32.dll0x6d610000-0x6d61c000C:ProgramFilesJavajre1.5.0_05binverify.dll0x6d300000-0x6d31d000C:ProgramFilesJavajre1.5.0_05binjava.dll0x6d630000-0x6d63f000C:ProgramFilesJavajre1.5.0_05binzip.dll0x6d4b0000-0x6d4b8000C:ProgramFilesJavajre1.5.0_05binmanagement.dll0x6d190000-0x6d1bf000C:ProgramFilesJavajre1.5.0_05bincmm.dll0x6d3c0000-0x6d3df000C:ProgramFilesJavajre1.5.0_05binjpeg.dll0x6d4c0000-0x6d4d3000C:ProgramFilesJavajre1.5.0_05binnet.dll0x71b60000-0x71b78000C:WINDOWSsystem32WS2_32.dll0x71b50000-0x71b58000C:WINDOWSsystem32WS2HELP.dll0x71a80000-0x71ac2000C:WINDOWSsystem32mswsock.dll0x71a40000-0x71a48000C:WINDOWSSystem32wshtcpip.dll0x76e30000-0x76e58000C:WINDOWSsystem32DNSAPI.dll0x76ed0000-0x76ed7000C:WINDOWSSystem32winrnr.dll0x76e70000-0x76e9f000C:WINDOWSsystem32WLDAP32.dll0x76ee0000-0x76ee5000C:WINDOWSsystem32rasadhlp.dll0x6d370000-0x6d37d000C:ProgramFilesJavajre1.5.0_05binJdbcOdbc.dll0x3b4d0000-0x3b50a000C:WINDOWSsystem32ODBC32.dll0x70bc0000-0x70c50000C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.0.0_x-ww_8A69BA05COMCTL32.dll0x761a0000-0x761e5000C:WINDOWSsystem32comdlg32.dll0x3b730000-0x3b747000C:WINDOWSsystem32odbcint.dll0x77b60000-0x77b68000C:WINDOWSsystem32VERSION.dll0x77150000-0x77274000C:WINDOWSsystem32ole32.dll0x3b900000-0x3b91a000C:WINDOWSsystem32odbccp32.dll0x76bf0000-0x76c14000C:WINDOWSsystem32msv1_0.dll0x3bba0000-0x3bc05000C:WINDOWSsystem32SQLSRV32.dll0x5be20000-0x5be4d000C:WINDOWSsystem32SQLUNIRL.dll0x72f40000-0x72f66000C:WINDOWSsystem32WINSPOOL.DRV0x770d0000-0x7714d000C:WINDOWSsystem32OLEAUT32.dll0x71ba0000-0x71bf3000C:WINDOWSsystem32NETAPI32.dll0x75710000-0x75717000C:WINDOWSsystem32NDDEAPI.DLL0x3c600000-0x3c616000C:WINDOWSsystem32sqlsrv32.rll0x6d810000-0x6d823000C:WINDOWSsystem32DBNETLIB.DLL0x71b10000-0x71b1b000C:WINDOWSsystem32WSOCK32.dll0x71e90000-0x71e94000C:WINDOWSsystem32security.dll0x76630000-0x76646000C:WINDOWSsystem32ntdsapi.dll0x760a0000-0x76136000C:WINDOWSsystem32crypt32.dll0x76080000-0x76092000C:WINDOWSsystem32MSASN1.dll0x74cd0000-0x74cd7000C:WINDOWSsystem32DBmsLPCn.dllVMArguments:jvm_args:-Dcatalina.home=C:Tomcat6.0-Dcatalina.base=C:Tomcat6.0-Djava.endorsed.dirs=C:Tomcat6.0endorsed-Djava.io.tmpdir=C:Tomcat6.0temp-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager-Djava.util.logging.config.file=C:Tomcat6.0conflogging.propertiesvfprintf-Xms800m-Xmx800mjava_command:<unknown>EnvironmentVariables:PATH=C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:ProgramFilesMicrosoftSQLServer80ToolsBINNOS=Windows_NTPROCESSOR_IDENTIFIER=x86Family15Model4Stepping3,GenuineIntel
解决方案四:
---------------SYSTEM---------------OS:WindowsServer2003familyBuild3790CPU:total4family15,cmov,cx8,fxsr,mmx,sse,sse2,htMemory:4kpage,physical1048060k(470120kfree),swap2527032k(430712kfree)vm_info:JavaHotSpot(TM)ClientVM(1.5.0_05-b05)forwindows-x86,builtonAug26200515:36:02by"java_re"withMSVC++6.0