java.lang.reflect.UndeclaredThrowableException

golddragon發表於2006-03-31
執行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