新手求助~~

07-09-15 davma

刚下了JF,弄了个简单的CRUD,在编辑,删除和插入数据都出现下列错误,检查了半天,不得其解,求助··

java.lang.Exception: System error! please call system Admin.java.lang.Exception:

serviceAction Error:java.lang.Exception: execute service error: java.lang.Exce

ption: java.lang.NullPointerException

at com.jdon.strutsutil.ModelSaveAction.execute(ModelSaveAction.java:94)

at org.apache.struts.action.RequestProcessor.processActionPerform(Reques

tProcessor.java:419)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja

va:224)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119

4)

at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

icationFilterChain.java:269)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

ilterChain.java:188)

at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewrit

eFilter.java:738)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

icationFilterChain.java:215)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

ilterChain.java:188)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

alve.java:210)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

alve.java:174)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

ava:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

ava:117)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

ve.java:108)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav

a:151)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java

:870)

at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p

rocessConnection(Http11BaseProtocol.java:665)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo

int.java:528)

at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol

lowerWorkerThread.java:81)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP

ool.java:685)

at java.lang.Thread.run(Unknown Source)

[该贴被davma于2007年09月15日 11:02修改过]

[该贴被davma于2007年09月15日 11:09修改过]

banq
2007-09-15 12:02

主要在ModelSaveAction.java第94行出错,可打开JF源码,看看你可能某个条件没有满足ModelSaveAction。

通过Eclipse 3.3 JEE版本的断点调试可跟踪。