内存溢出 报出空指针异常 很着急 忘各位大侠们能出后相助 谢谢

时间:2021-08-06 20:35:00
程序报错


Features:[name=BizForm;, name=BizFramework;, name=R1 Adapter;, name=R1 DataExchange;, name=R1 Framework;, name=R1 GlobalRepository;, name=R1 Infobus;, name=R1 MangementConsole;, name=R1 StarFlow;[Advanced], name=R1 Studio;]
java.lang.NullPointerException
at com.icss.ro.starflow.organization.impl.WfHumanImpl.getMobile(WfHumanImpl.java:152)
at com.icss.ro.starflow.engine.WfEventDispacher.super(WfEventDispacher.java:1023)
at com.icss.ro.starflow.engine.WfEventDispacher.super(WfEventDispacher.java:582)
at com.icss.ro.starflow.engine.WfEventDispacher.super(WfEventDispacher.java:317)
at com.icss.ro.starflow.engine.WfEventDispacher.dispachEvent(WfEventDispacher.java:136)
at com.icss.ro.starflow.engine.impl.WfEventabstractImpl.fireEvent(WfEventabstractImpl.java:32)
at com.icss.ro.starflow.engine.impl.WfActivityImpl.activate(WfActivityImpl.java:835)
at com.icss.ro.starflow.engine.impl.WfProcessImpl.startActivity(WfProcessImpl.java:628)
at com.icss.ro.starflow.engine.impl.WfProcessImpl.queueNext(WfProcessImpl.java:461)
at com.icss.ro.starflow.engine.impl.WfProcessImpl.activityComplete(WfProcessImpl.java:396)
at com.icss.ro.starflow.engine.impl.WfActivityImpl.complete(WfActivityImpl.java:950)
at com.icss.ro.starflow.engine.impl.WfActivityImpl.complete(WfActivityImpl.java:875)
at com.icss.ro.starflow.engine.impl.WfActivityImpl.checkComplete(WfActivityImpl.java:1129)
at com.icss.ro.starflow.engine.impl.WfActivityImpl.start(WfActivityImpl.java:1323)
at com.icss.ro.starflow.engine.impl.WfActivityImpl.activate(WfActivityImpl.java:854)
at com.icss.ro.starflow.engine.impl.WfProcessImpl.startActivity(WfProcessImpl.java:628)
at com.icss.ro.starflow.engine.impl.WfProcessImpl.start(WfProcessImpl.java:224)
at com.icss.ro.starflow.engine.impl.WfProcessImpl.start(WfProcessImpl.java:192)
at com.icss.ro.starflow.engine.service.WorkflowEngine.createProcess(WorkflowEngine.java:221)
at com.icss.ro.starflow.engine.service.WorkflowEngine.runSync(WorkflowEngine.java:87)
at com.icss.starflow.sdk.WmProcessInstance.start(WmProcessInstance.java:269)
at com.icss.starflow.sdk.WmProcessInstance.start(WmProcessInstance.java:234)
at com.icss.starflow.sdk.WmProcessInstance.start(WmProcessInstance.java:218)
at com.icss.starflow.sdk.WmProcessInstance.start(WmProcessInstance.java:204)
at com.icss.ro.starflow.lab.business.controller.StarFlowServlet.startflow(StarFlowServlet.java:118)
at com.icss.ro.starflow.lab.business.controller.AddApplyToWorkFlowServlet.performTask(AddApplyToWorkFlowServlet.java:58)
at com.icss.j2ee.servlet.ServletBase.doFilter(Unknown Source)
at com.icss.j2ee.servlet.filter.FilterChain.doFilter(Unknown Source)
at com.icss.j2ee.servlet.ServletBase.process(Unknown Source)
at com.icss.j2ee.servlet.ServletBase.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at com.icss.j2ee.servlet.ServletBase.service(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.icss.j2ee.servlet.ServletBase.forward(Unknown Source)
at com.icss.ro.starflow.lab.business.controller.InitFormPostServlet.performTask(InitFormPostServlet.java:71)
at com.icss.j2ee.servlet.ServletBase.doFilter(Unknown Source)
at com.icss.j2ee.servlet.filter.FilterChain.doFilter(Unknown Source)
at com.icss.j2ee.servlet.ServletBase.process(Unknown Source)
at com.icss.j2ee.servlet.ServletBase.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at com.icss.j2ee.servlet.ServletBase.service(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.icss.resourceone.sso.client.SSOClientBase.processFilter(SSOClientBase.java:310)
at com.icss.resourceone.sso.client.SSOClient.doFilter(SSOClient.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.icss.resourceone.sdk.SdkFilter.doFilter(SdkFilter.java:167)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.icss.j2ee.servlet.filter.ChangeReqEncoding.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)






页面报错



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: PermGen space
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.icss.resourceone.sdk.SdkFilter.doFilter(SdkFilter.java:167)
com.icss.j2ee.servlet.filter.ChangeReqEncoding.doFilter(Unknown Source)


root cause 

java.lang.OutOfMemoryError: PermGen space


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

6 个解决方案

#1


jar/类 太多了

http://blog.csdn.net/fengyie007/article/details/1780375

#2


这个有什么解决的办法吗?

#3


今天试着去做东西的话  是这样 页面不会报错  但是程序依然是报出空指针异常……页面跳转也成功了  提交的时候依然会报出上面的空指针异常,我新建了一个工程环境  然后用svn从新检索出这个项目 这次是页面不报错了  但是问题是 成依然报出空指针异常,这 该如何解决呢?

#4


空指针异常 Debug一下就知道了

#5


我这的程序都有debug   关键是具体的异常报不出来

#6


这里面是两类错误,并不一样。


永久区内存溢出是一类错误,参见:
http://topic.csdn.net/u/20120616/22/162653c2-715a-430e-ae8b-a698abdd3833.html


空指针错误:
java.lang.NullPointerException
 at com.icss.ro.starflow.organization.impl.WfHumanImpl.getMobile(WfHumanImpl.java:152)

检查WfHumanImpl.java程序的 152 行代码。

#1


jar/类 太多了

http://blog.csdn.net/fengyie007/article/details/1780375

#2


这个有什么解决的办法吗?

#3


今天试着去做东西的话  是这样 页面不会报错  但是程序依然是报出空指针异常……页面跳转也成功了  提交的时候依然会报出上面的空指针异常,我新建了一个工程环境  然后用svn从新检索出这个项目 这次是页面不报错了  但是问题是 成依然报出空指针异常,这 该如何解决呢?

#4


空指针异常 Debug一下就知道了

#5


我这的程序都有debug   关键是具体的异常报不出来

#6


这里面是两类错误,并不一样。


永久区内存溢出是一类错误,参见:
http://topic.csdn.net/u/20120616/22/162653c2-715a-430e-ae8b-a698abdd3833.html


空指针错误:
java.lang.NullPointerException
 at com.icss.ro.starflow.organization.impl.WfHumanImpl.getMobile(WfHumanImpl.java:152)

检查WfHumanImpl.java程序的 152 行代码。