日期:2014-05-18  浏览次数:20709 次

急!大家来看看这个错误!!
java.lang.NullPointerException
at   java.util.Hashtable.put(Hashtable.java:393)
at   java.util.Properties.setProperty(Properties.java:102)
at   com.xintianying.framework.MainRequestProcessor.initScheduler(MainRequestProcessor.java:438)
at   com.xintianying.framework.MainRequestProcessor.init(MainRequestProcessor.java:108)
at   org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:872)
at   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at   weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at   weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at   com.xintianying.login.LoginFilter.doFilter(LoginFilter.java:110)
at   weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
at   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
at   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
at   weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
 
是weblogic.xml文件配置错误吗?

------解决方案--------------------
传说中的空指针异常
------解决方案--------------------
1设断点,进行调试.
2做异常处理.
3到服务器的日志中查看详细信息.
象这样的异常没有明确的错误输出,只能一一去找.
------解决方案--------------------
总归是hashtable的问题咯
------解决方案--------------------
看看这部分是否有问题MainRequestProcessor.java:438
------解决方案--------------------
hastable的问题
------解决方案--------------------
空指针异常,没有具体的代码就只有设断点,一步步追踪是哪一个变量得到空值