java.lang.reflect.UndeclaredThrowableException

06-03-31 golddragon
运行jdonsampletest时,出现这么一个错误,请bang老师帮忙解决一下

环境:myeclipse+tomcat 5+mysql

启动时没有错误,但是运行jsp时出现

......

2006-03-31 15:07:24,725 [Thread-5] ERROR sample.service.MessageServiceImp - getAllMessages ok

......

2006-03-31 15:07:25,146 [Thread-5] DEBUG com.jdon.aop.reflection.ProxyMethodInvocation - [JdonFramework] it is pojo target service

2006-03-31 15:07:25,637 [Thread-5] ERROR com.jdon.aop.reflection.MethodInvokerUtil - Errors happened among your method:[getMessage], errorMessage: java.lang.NoClassDefFoundError: javax/transaction/Synchronization

2006-03-31 15:07:25,637 [Thread-5] DEBUG com.jdon.aop.interceptor.PoolInterceptor - [JdonFramework] realease a object:sample.service.MessageServiceImp to pool

2006-03-31 15:07:25,637 [Thread-5] ERROR root - com.jdon.strutsutil.ModelListAction

java.lang.reflect.UndeclaredThrowableException

at $Proxy0.getMessage(Unknown Source)

at sample.web.MessageListAction.findModelByKey(MessageListAction.java:47)

at com.jdon.strutsutil.ModelListAction.findModelIFByKey(ModelListAction.java:235)

at com.jdon.strutsutil.ModelListAction.fetchModel(ModelListAction.java:194)

at com.jdon.strutsutil.ModelListAction.getModelList(ModelListAction.java:136)

at com.jdon.strutsutil.ModelListAction.execute(ModelListAction.java:77)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)

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

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:253)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:637)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:488)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)

at java.lang.Thread.run(Thread.java:534)

Caused by: java.lang.Throwable: java.lang.Throwable: java.lang.Throwable: java.lang.Throwable: Errors happened among your method:[getMessage], errorMessage: java.lang.NoClassDefFoundError: javax/transaction/Synchronization

at com.jdon.bussinessproxy.dyncproxy.DynamicProxyWeaving.invoke(DynamicProxyWeaving.java:66)

... 39 more

Caused by: java.lang.Throwable: java.lang.Throwable: java.lang.Throwable: Errors happened among your method:[getMessage], errorMessage: java.lang.NoClassDefFoundError: javax/transaction/Synchronization

at com.jdon.aop.AopClient.invoke(AopClient.java:100)

at com.jdon.bussinessproxy.dyncproxy.DynamicProxyWeaving.invoke(DynamicProxyWeaving.java:61)

... 39 more

Caused by: java.lang.Throwable: java.lang.Throwable: Errors happened among your method:[getMessage], errorMessage: java.lang.NoClassDefFoundError: javax/transaction/Synchronization

at com.jdon.aop.reflection.ProxyMethodInvocation.methodInvoke(ProxyMethodInvocation.java:114)

at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:76)

at com.jdon.aop.interceptor.SessionContextInterceptor.invoke(SessionContextInterceptor.java:77)

at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

at com.jdon.aop.interceptor.StatefulInterceptor.invoke(StatefulInterceptor.java:83)

at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

at com.jdon.aop.interceptor.PoolInterceptor.invoke(PoolInterceptor.java:113)

at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

at com.jdon.aop.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:69)

at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

at com.jdon.aop.AopClient.invoke(AopClient.java:95)

... 40 more

Caused by: java.lang.Throwable: Errors happened among your method:[getMessage], errorMessage: java.lang.NoClassDefFoundError: javax/transaction/Synchronization

at com.jdon.aop.reflection.MethodInvokerUtil.execute(MethodInvokerUtil.java:65)

at com.jdon.aop.reflection.ProxyMethodInvocation.methodInvoke(ProxyMethodInvocation.java:108)

... 50 more

2006-03-31 15:07:25,657 [Thread-5] DEBUG com.jdon.strutsutil.ModelListAction - [JdonFramework] listForm 's property: getList size is 0

golddragon
2006-03-31 15:36
对了,页面上显示

javax.servlet.ServletException: 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 among your method:[createMessage], errorMessage: java.lang.NoClassDefFoundError: javax/transaction/Synchronization

org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

javax.servlet.http.HttpServlet.service(HttpServlet.java:763)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)

banq
2006-04-03 16:11
第一个错误:java.lang.NoClassDefFoundError: javax/transaction/Synchronization

没有JTA包在你的系统路径中。

golddragon
2006-04-04 08:45
多谢bang老师的回答,问题解决了,例子能运行了,但是在add的时候,点击submit时,有一个脚本错误一闪而过,也看不到是什么错误,不知道前面的帖子有没有提过.

猜你喜欢