Java weblogic 错误 500--内部服务器错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23368290/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 22:17:46  来源:igfitidea点击:

weblogic Error 500--Internal Server Error

javaantweblogicwicket

提问by Yandroide

I am having a 500 error code with weblogic 10.3 while trying to load a web page with my web application.

尝试使用我的 Web 应用程序加载网页时,我在使用 weblogic 10.3 时遇到了 500 错误代码。

Here is the log in my weblogic server

这是我的 weblogic 服务器中的日志

    Apr 29, 2014 8:46:11 AM CDT> <Error> <HTTP> <BEA-101020>     <[weblogic.servlet.internal.WebAppServletContext@142ef25 - appName: '_appsdir_MyApp_ear', name: 'MyApp', context-path:
 '/MyApp', spec-version: 'null'] Servlet failed with Exception
java.lang.NullPointerException
        at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:643)
        at org.apache.wicket.protocol.http.WebRequestCycle.onExceptionLoop(WebRequestCycle.java:107)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1386)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
        Truncated. see log file for complete stacktrace

and here is what I get in the browser

这是我在浏览器中得到的

Error 500--Internal Server Error

java.lang.NullPointerException
    at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:643)
    at org.apache.wicket.protocol.http.WebRequestCycle.onExceptionLoop(WebRequestCycle.java:107)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1386)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
    at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
    at com.uprr.ui.wicket.components.infrastructure.RicolaWicketFilter.doFilter(RicolaWicketFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Can you please help me fix this?

你能帮我解决这个问题吗?

采纳答案by Yandroide

I found what is wrong. Actually, the page I am loading is fetching data from a DB and they happen to be old data that were even deleted in the DB.

我发现出了什么问题。实际上,我正在加载的页面正在从数据库中获取数据,而它们恰好是甚至在数据库中被删除的旧数据。