永发信息网

在Myeclipse中运行jsp程序时出现这个错误,该怎么解决啊

答案:3  悬赏:0  手机版
解决时间 2021-04-30 17:00
  • 提问者网友:雾里闻花香
  • 2021-04-30 03:34
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception javax.servlet.ServletException: Error instantiating servlet class com.dp.controller.UserDealServlet org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) java.lang.Thread.run(Thread.java:619)

root cause java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class com.dp.controller.UserDealServlet with modifiers "" sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) java.lang.Class.newInstance0(Class.java:349) java.lang.Class.newInstance(Class.java:308) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) java.lang.Thread.run(Thread.java:619)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.

最佳答案
  • 五星知识达人网友:大漠
  • 2021-04-30 04:22
程序编写错误,检查下,你写的代码中,是不是存在空引用。一个是数组下标超界,一个是没检查引用的指什是否为空就引用
全部回答
  • 1楼网友:春色三分
  • 2021-04-30 05:54

可能是你写的代码有误,能看一下你全部的代码么

  • 2楼网友:像个废品
  • 2021-04-30 05:18

HTTP Status 500 是服务器内部错误。

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯