使用JDBCTemp.operate发生异常

10-03-21 spawnyy

在Dao方法中调用getJDBCTemp().operate()方法发生异常,找了好久没有找到异常源头,还请banq大哥及大家帮忙看一下。

2010-03-21 15:24:28,390 [http-8080-1] DEBUG com.jdon.model.query.JdbcTemp - [JdonFramework]--> enter getSingleObject 
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcTemp - INSERT INTO CUSTOMER(username,password,adress,sex,email,profession,trade,workYear,activated,status) values(?,?,?,?,?,?,?,?,?,?)
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 1 = abcd
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 2 = 81dc9bdb52d04dc20036dbd8313ed055
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 3 = 1
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 4 = 1
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 5 = 1
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 6 = 1
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 7 = 1
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 8 = 1
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 9 = 0
2010-03-21 15:24:28,984 [http-8080-1] DEBUG com.jdon.model.query.JdbcUtil - [JdonFramework] parameter 10 = 1
2010-03-21 15:24:29,015 [http-8080-1] ERROR com.jdon.aop.reflection.MethodInvokerUtil - Errors happened in your method:[com.jeyes.domain.service.impl.AccountServiceImpl.createAccount]
2010-03-21 15:24:29,015 [http-8080-1] ERROR com.jdon.container.access.ServiceAccessorImp - [JdonFramework]  execute Service error: java.lang.Throwable: java.lang.Throwable: java.lang.Throwable: Errors happened in your method:[com.jeyes.domain.service.impl.AccountServiceImpl.createAccount]
2010-03-21 15:24:29,015 [http-8080-1] ERROR com.jdon.model.handler.XmlModelHandler - [JdonFramework] serviceAction Error: java.lang.Exception:   execute Service error: java.lang.Throwable: java.lang.Throwable: java.lang.Throwable: Errors happened in your method:[com.jeyes.domain.service.impl.AccountServiceImpl.createAccount]
2010-03-21 15:24:29,015 [http-8080-1] ERROR com.jdon.strutsutil.ModelSaveAction - [JdonFramework]please check your service 、 model or form :java.lang.Exception:  serviceAction Error:java.lang.Exception:   execute Service error: java.lang.Throwable: java.lang.Throwable: java.lang.Throwable: Errors happened in your method:[com.jeyes.domain.service.impl.AccountServiceImpl.createAccount]
2010-03-21 15:24:29,031 [http-8080-1] WARN  org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.lang.Exception
2010-3-21 15:24:29 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet action threw exception
java.lang.Exception: System error! please call system Admin.java.lang.Exception:  serviceAction Error:java.lang.Exception:   execute Service error: java.lang.Throwable: java.lang.Throwable: java.lang.Throwable: Errors happened in your method:[com.jeyes.domain.service.impl.AccountServiceImpl.createAccount]
	at com.jdon.strutsutil.ModelSaveAction.execute(ModelSaveAction.java:93)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
	at java.lang.Thread.run(Unknown Source)

<p>

banq
2010-03-21 16:04

2010年03月21日 15:54 "spawnyy"的内容
com.jeyes.domain.service.impl.AccountServiceImpl.createAccount ...

问题出在这个方法中,你使用 try或者断点跟踪这个方法即可

spawnyy
2010-03-21 16:18

真是太感谢banq大哥了,问题解决了我是通过try捕获的错误信息,开始通过断点一直没看到哪里有错误提示,还有一个问题断点调试是不是只能跟踪出错的代码行,如果要想知道具体错误还得需要try..catch?