iteye_10600
iteye_10600
2009-01-13 12:20

重复刷新页面 tomcat 会自动关闭

已采纳

最近用 [b]tomcat + struts + access 数据库[/b] 做了个简单的新闻小项目

有个问题是:在获取数据库数据 页面上 ,连续快速的重复刷新 ,然后 tomcat 会自动关闭。

在Eclipse 控制台下有一串下面的 错误提示,各位帮忙看看是什么原因

[code="java"]

#

An unexpected error has been detected by HotSpot Virtual Machine:

#

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c921010, pid=1592, tid=1668

#

Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing)

Problematic frame:

C [ntdll.dll+0x1010]

#

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

Current thread (0x034bde80): JavaThread "http-8008-Processor18" daemon [_thread_in_native, id=1668]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000018

Registers:
EAX=0x00000004, EBX=0x73570000, ECX=0x7ff91000, EDX=0x00000004
ESP=0x041cf35c, EBP=0x041cf374, ESI=0x00000000, EDI=0x04552ba4
EIP=0x7c921010, EFLAGS=0x00010246

Top of Stack: (sp=0x041cf35c)
0x041cf35c: 73575a16 00000004 04552ba4 7354139f
0x041cf36c: 04552ba4 04552b78 041cf388 73544a10
0x041cf37c: 04552ba4 034f6010 04552b78 041cf3a0
0x041cf38c: 735661d5 04552b78 034f6010 034bdf3c
0x041cf39c: 293658e0 041cf3b8 6d375b61 04552b78
0x041cf3ac: 041cf3c0 034bde80 293658e0 041cf3f0
0x041cf3bc: 00bd826f 00000000 041cf40c 04552b78
0x041cf3cc: 00000000 041cf400 041cf3d4 00000000

Instructions: (pc=0x7c921010)
0x7c921000: 90 90 90 90 90 64 8b 0d 18 00 00 00 8b 54 24 04
0x7c921010: 83 7a 14 00 75 4f f0 ff 42 04 75 19 8b 41 24 89

Stack: [0x04190000,0x041d0000), sp=0x041cf35c, free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x1010]
C [ODBC32.dll+0x4a10]
C [ODBC32.dll+0x261d5]
C [JdbcOdbc.dll+0x5b61]
j sun.jdbc.odbc.JdbcOdbc.numParams(J[B)I+0
j sun.jdbc.odbc.JdbcOdbc.SQLNumParams(J)I+47
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.initBoundParam()V+9
j sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(Ljava/lang/String;II)Ljava/sql/PreparedStatement;+125
j sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(Ljava/lang/String;)Ljava/sql/PreparedStatement;+8
j com.company_website.dao.impl.SkillHotImpl.getSkillHotById(ILjava/sql/Connection;)Lcom/company_website/vo/SkillHot;+30
j com.company_website.struts.action.SkillHotAction.getSkillHotDes(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;+30
j sun.reflect.GeneratedMethodAccessor139.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+64
J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
v ~RuntimeStub::alignment_frame_return Runtime1 stub
j org.apache.struts.actions.DispatchAction.dispatchMethod(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;)Lorg/apache/struts/action/ActionForward;+114
j org.apache.struts.actions.DispatchAction.execute(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;+113
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.doGet(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+35
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 com.company_website.util.EncodingFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+31
j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+117
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+521
j org.apache.coyote.http11.Http11Protocol$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

[/code]

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • iteye_14436 iteye_14436 12年前

    这个让我想起来做java native方法,C语言运行时错误的表现!

    你看看你的程序方面是不是有什么问题?或者连接ODBC的驱动有没有什么连接错误之类的?或者换个mysql数据库看看有没有什么错误?

    点赞 评论 复制链接分享
  • bohemia bohemia 12年前

    直接启动TOmcat,不要在Eclipse启动;

    点赞 评论 复制链接分享

相关推荐