[jboss-user] [JBoss AOP] - create method of my LocalHome throws undeclaredthrowableExce

mokello do-not-reply at jboss.com
Tue Oct 24 08:06:56 EDT 2006


Hello Guys, 

I need help developing using JBoss and JBossEclipseIDE 1.5: My application was running well until one morning I logged on and deployed it again. Just using a single Bean with a lot of calls to business logic outside of the bean, I got an exception on creation of my Local interface: UndeclaredThrowableException. Which happens at the point of calling the ejb.create() method of the LocalHome method. It's buffled me, and need help. Tried googling the problem, but there doesn't seem to be a solution. It may be a bug, and I have only been developing J2EE applications for the last 6 months.

Here is the stack trace:

12:21:39,016 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
12:21:39,219 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
12:21:39,328 INFO  [JkMain] Jk running ID=0 time=0/140  config=null
12:21:39,438 INFO  [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 24s:797ms
12:22:34,078 INFO  [EARDeployer] Init J2EE application: file:/C:/jboss/jboss-4.0.3/server/default/deploy/TimeCollection.ear
12:22:35,875 INFO  [EjbModule] Deploying TimeCollection
12:22:36,250 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'TimeCollection' to jndi 'TimeCollectionLocal'
12:22:36,406 INFO  [EJBDeployer] Deployed: file:/C:/jboss/jboss-4.0.3/server/default/tmp/deploy/tmp8148TimeCollection.ear-contents/TimeCollection
12:22:36,594 INFO  [TomcatDeployer] deploy, ctxPath=/TimeCollection, warUrl=.../tmp/deploy/tmp8148TimeCollection.ear-contents/TimeCollection-exp.
12:22:36,875 INFO  [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
12:22:37,031 ERROR [JBossCacheManager] JBossCacheService to Tomcat clustering not found
12:22:37,172 ERROR [TomcatDeployer] Failed to setup clustering, clustering disabled
12:22:37,359 INFO  [EARDeployer] Started J2EE application: file:/C:/jboss/jboss-4.0.3/server/default/deploy/TimeCollection.ear
12:24:28,672 ERROR [LogInterceptor] EJBException in method: public abstract com.kailaz.timecollection.interfaces.TimeCollectionLocal com.kailaz.t
llection.interfaces.TimeCollectionLocalHome.create() throws javax.ejb.CreateException, causedBy:
java.lang.reflect.UndeclaredThrowableException
        at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:189)
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:80)
        at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
        at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
        at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
        at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
        at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
        at org.jboss.ejb.Container.invoke(Container.java:894)
        at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:344)
        at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
        at $Proxy50.create()Lcom.kailaz.timecollection.interfaces.TimeCollectionLocal;(Unknown Source)
        at com.kailaz.timecollection.servlets.GenerateReportServlet.initialiseHandlerContext(GenerateReportServlet.java:44)
        at com.kailaz.timecollection.servlets.GenerateReportServlet.service(GenerateReportServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/Unmarshaller
        at java.lang.Class.newInstance(I)Ljava.lang.Object;(Unknown Source)
        at org.jboss.ejb.Container.createBeanClassInstance(Container.java:586)
        at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:168)
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:80)
        at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
        at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
        at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
        at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
        at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
        at org.jboss.ejb.Container.invoke(Container.java:894)
        at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:344)
        at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
        at $Proxy50.create()Lcom.kailaz.timecollection.interfaces.TimeCollectionLocal;(Unknown Source)
        at com.kailaz.timecollection.servlets.GenerateReportServlet.initialiseHandlerContext(GenerateReportServlet.java:44)
        at com.kailaz.timecollection.servlets.GenerateReportServlet.service(GenerateReportServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
12:24:31,078 INFO  [STDOUT] javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
        null
12:24:31,156 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:191)
12:24:31,203 INFO  [STDOUT]     at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:
12:24:31,250 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
12:24:31,281 INFO  [STDOUT]     at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
12:24:31,328 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
12:24:31,375 INFO  [STDOUT]     at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
12:24:31,422 INFO  [STDOUT]     at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
12:24:31,453 INFO  [STDOUT]     at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
12:24:31,500 INFO  [STDOUT]     at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
12:24:31,547 INFO  [STDOUT]     at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
12:24:31,594 INFO  [STDOUT]     at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
12:24:31,625 INFO  [STDOUT]     at org.jboss.ejb.Container.invoke(Container.java:894)
12:24:31,672 INFO  [STDOUT]     at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:344)
12:24:31,719 INFO  [STDOUT]     at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
12:24:31,766 INFO  [STDOUT]     at $Proxy50.create()Lcom.kailaz.timecollection.interfaces.TimeCollectionLocal;(Unknown Source)
12:24:31,797 INFO  [STDOUT]     at com.kailaz.timecollection.servlets.GenerateReportServlet.initialiseHandlerContext(GenerateReportServlet.java:4
12:24:31,844 INFO  [STDOUT]     at com.kailaz.timecollection.servlets.GenerateReportServlet.service(GenerateReportServlet.java:67)
12:24:31,891 INFO  [STDOUT]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
12:24:31,922 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
12:24:31,969 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:24:32,016 INFO  [STDOUT]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
12:24:32,062 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
12:24:32,094 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:24:32,141 INFO  [STDOUT]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
12:24:32,188 INFO  [STDOUT]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
12:24:32,234 INFO  [STDOUT]     at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
12:24:32,266 INFO  [STDOUT]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
12:24:32,312 INFO  [STDOUT]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
12:24:32,359 INFO  [STDOUT]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
12:24:32,406 INFO  [STDOUT]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
12:24:32,438 INFO  [STDOUT]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
12:24:32,484 INFO  [STDOUT]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
12:24:32,531 INFO  [STDOUT] java.lang.reflect.UndeclaredThrowableException
12:24:32,578 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:189)
12:24:32,609 INFO  [STDOUT]     at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:
12:24:32,656 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
12:24:32,703 INFO  [STDOUT]     at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
12:24:32,750 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
12:24:32,781 INFO  [STDOUT]     at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
12:24:32,828 INFO  [STDOUT]     at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
12:24:32,875 INFO  [STDOUT]     at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
12:24:32,922 INFO  [STDOUT]     at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
12:24:32,953 INFO  [STDOUT]     at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
12:24:33,000 INFO  [STDOUT]     at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
12:24:33,047 INFO  [STDOUT]     at org.jboss.ejb.Container.invoke(Container.java:894)
12:24:33,094 INFO  [STDOUT]     at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:344)
12:24:33,125 INFO  [STDOUT]     at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
12:24:33,172 INFO  [STDOUT]     at $Proxy50.create()Lcom.kailaz.timecollection.interfaces.TimeCollectionLocal;(Unknown Source)
12:24:33,219 INFO  [STDOUT]     at com.kailaz.timecollection.servlets.GenerateReportServlet.initialiseHandlerContext(GenerateReportServlet.java:4
12:24:33,266 INFO  [STDOUT]     at com.kailaz.timecollection.servlets.GenerateReportServlet.service(GenerateReportServlet.java:67)
12:24:33,297 INFO  [STDOUT]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
12:24:33,344 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
12:24:33,391 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:24:33,422 INFO  [STDOUT]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
12:24:33,469 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
12:24:33,516 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:24:33,562 INFO  [STDOUT]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
12:24:33,594 INFO  [STDOUT]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
12:24:33,641 INFO  [STDOUT]     at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
12:24:33,688 INFO  [STDOUT] Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/Unmarshaller
12:24:33,734 INFO  [STDOUT]     at java.lang.Class.newInstance(I)Ljava.lang.Object;(Unknown Source)
12:24:33,766 INFO  [STDOUT]     at org.jboss.ejb.Container.createBeanClassInstance(Container.java:586)
12:24:33,812 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:168)
12:24:33,859 INFO  [STDOUT]     at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:
12:24:33,906 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
12:24:33,938 INFO  [STDOUT]     at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
12:24:33,984 INFO  [STDOUT]     at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
12:24:34,031 INFO  [STDOUT]     at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
12:24:34,078 INFO  [STDOUT]     at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
12:24:34,109 INFO  [STDOUT]     at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
12:24:34,156 INFO  [STDOUT]     at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
12:24:34,203 INFO  [STDOUT]     at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
12:24:34,250 INFO  [STDOUT]     at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
12:24:34,281 INFO  [STDOUT]     at org.jboss.ejb.Container.invoke(Container.java:894)
12:24:34,328 INFO  [STDOUT]     at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:344)
12:24:34,375 INFO  [STDOUT]     at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
12:24:34,422 INFO  [STDOUT]     at $Proxy50.create()Lcom.kailaz.timecollection.interfaces.TimeCollectionLocal;(Unknown Source)
12:24:34,453 INFO  [STDOUT]     at com.kailaz.timecollection.servlets.GenerateReportServlet.initialiseHandlerContext(GenerateReportServlet.java:4
12:24:34,500 INFO  [STDOUT]     at com.kailaz.timecollection.servlets.GenerateReportServlet.service(GenerateReportServlet.java:67)
12:24:34,547 INFO  [STDOUT]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
12:24:34,594 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
12:24:34,641 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:24:34,688 INFO  [STDOUT]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
12:24:34,719 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
12:24:34,766 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:24:34,812 INFO  [STDOUT]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
12:24:34,844 INFO  [STDOUT]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
12:24:34,891 INFO  [STDOUT]     at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
12:24:34,938 INFO  [STDOUT]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
12:24:34,984 INFO  [STDOUT]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
12:24:35,047 INFO  [STDOUT] Date: null AccountId=null
12:24:35,078 INFO  [STDOUT] In the report Servlet!!
12:24:35,125 INFO  [STDOUT] Error: null



Could any body help me? My Boss has put so much pressure on me and need help desperately.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980344#3980344

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980344



More information about the jboss-user mailing list