11 Replies Latest reply on Jan 5, 2006 8:03 AM by drapierwim

    Seam DVD Exception in thread

    drapierwim

      I'm looking at the dvdstore example and after a while I get an EJBException see below, I'm having the same exception my own app.
      Can this be resolved or can you point me in the right direction for finding a solution?

      11:42:14,030 INFO [STDOUT] Exception in thread "Timer-5"
      11:42:14,030 INFO [STDOUT] javax.ejb.EJBException: Could not passivate; failed to save state; CausedByException is:
       org.hibernate.ejb.callback.EntityCallbackHandler
      11:42:14,030 INFO [STDOUT] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:333)
      11:42:14,030 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:143)
      11:42:14,030 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:92)
      11:42:14,080 INFO [STDOUT] at java.util.TimerThread.mainLoop(Timer.java:512)
      11:42:14,080 INFO [STDOUT] at java.util.TimerThread.run(Timer.java:462)
      11:42:14,090 INFO [STDOUT] java.io.NotSerializableException: org.hibernate.ejb.callback.EntityCallbackHandler
      11:42:14,090 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
      11:42:14,090 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      11:42:14,090 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      11:42:14,090 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)


        • 1. Re: Seam DVD Exception in thread
          theute

          Fixed bug that you already reported it here ;)
          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70669

          Update the Hibernate entity manager

          • 2. Re: Seam DVD Exception in thread
            drapierwim

            I've updated the hibernate3.jar from hibernate-3.1 download that resolves the import.sql problem.

            Also updated the hibernate-entitymanager.jar from hibernate-entitymanager-3.1beta5 download and I get an deployment exception with the Seam DVDstore.

            Can you tell me what version of jars I need and where to place them exactly.

            Thanks

            • 3. Re: Seam DVD Exception in thread
              gavin.king

              If you upgrade HEM you need to also upgrade Hibernate Annotations. I am running and testing with the latest released versions of all Hibernate jars in JBoss.

              • 4. Re: Seam DVD Exception in thread
                drapierwim

                This is wierd I've included the annotations jar with the update and still no success.

                Are the jars from CVS Seam jar ok to place in my JBoss4.0.3sp1?

                • 5. Re: Seam DVD Exception in thread
                  gavin.king

                  Should be, those are the ones Tom Baeyens tested with the DVD Store.

                  • 6. Re: Seam DVD Exception in thread
                    drapierwim

                    I've placed the hibernate3, hibernate-annotation and hibernate-entitymanager.jar form the Seam CVS into my JBoss4.0.3sp1/server/default/lib and still I have a Exception in thread "Timer 5"

                    what else can I do?

                    • 7. Re: Seam DVD Exception in thread
                      gavin.king

                      That is a longstanding bug in the JBoss EJB3 distribution. It's annoying but harmless. Just ignore it.

                      Or, actually, there is a JIRA issue that tells you what extra jars you need to make it go away if it *really* bothers you.

                      • 8. Re: Seam DVD Exception in thread
                        drapierwim

                        Not quiet harmless, the next time I redeploy my AS fails and I have to restart. :-( I will try a earlier version and see what happens.

                        I Hope this is fixed in the next release, thanks for the help.

                        • 9. Re: Seam DVD Exception in thread
                          gavin.king

                          Just simply copy jboss-jaxrpc.jar into server/default/lib.

                          You can get one from some server/all/lib directory.

                          This will certainly be fixed for the next ejb3 release.

                          • 10. Re: Seam DVD Exception in thread
                            drapierwim

                            Sorry, but I've done it already I found one in my client dir

                            • 11. Re: Seam DVD Exception in thread
                              drapierwim

                              Sorry, just wanted to post my log when I redeploy my app after I got an timer5 bug

                              javax.ejb.EJBException: null; CausedByException is:
                               null
                               at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:46)
                               at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:70)
                               at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:32)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:136)
                               at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:83)
                               at $Proxy159.create(Unknown Source)
                               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                               at java.lang.reflect.Method.invoke(Method.java:585)
                               at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                               at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
                               at org.jboss.seam.Component.callComponentMethod(Component.java:1130)
                               at org.jboss.seam.Component.callCreateMethod(Component.java:1118)
                               at org.jboss.seam.Component.newInstance(Component.java:1107)
                               at org.jboss.seam.Component.getInstance(Component.java:1055)
                               at org.jboss.seam.Component.getInstance(Component.java:1038)
                               at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
                               at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
                               at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
                               at com.sun.el.parser.AstValue.getValue(AstValue.java:85)
                               at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
                               at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                               at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
                               at javax.faces.component.UIOutput.getValue(UIOutput.java:75)
                               at org.apache.myfaces.renderkit.RendererUtils.getStringValue(RendererUtils.java:225)
                               at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:131)
                               at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:49)
                               at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
                               at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:554)
                               at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:551)
                               at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:551)
                               at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
                               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)
                               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)
                              java.lang.NullPointerException
                               at org.jboss.seam.Component.forName(Component.java:1022)
                               at org.jboss.seam.ejb.SeamInterceptor.getSeamComponent(SeamInterceptor.java:61)
                               at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:34)
                               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                               at java.lang.reflect.Method.invoke(Method.java:585)
                               at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:79)
                               at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:65)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:44)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:133)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:66)
                               at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:32)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
                               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
                               at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:136)
                               at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:83)
                               at $Proxy159.create(Unknown Source)
                               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                               at java.lang.reflect.Method.invoke(Method.java:585)
                               at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                               at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
                               at org.jboss.seam.Component.callComponentMethod(Component.java:1130)
                               at org.jboss.seam.Component.callCreateMethod(Component.java:1118)
                               at org.jboss.seam.Component.newInstance(Component.java:1107)
                               at org.jboss.seam.Component.getInstance(Component.java:1055)
                               at org.jboss.seam.Component.getInstance(Component.java:1038)
                               at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
                               at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
                               at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
                               at com.sun.el.parser.AstValue.getValue(AstValue.java:85)
                               at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
                               at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                               at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
                               at javax.faces.component.UIOutput.getValue(UIOutput.java:75)
                               at org.apache.myfaces.renderkit.RendererUtils.getStringValue(RendererUtils.java:225)
                               at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:131)
                               at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:49)
                               at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
                               at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:554)
                               at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:551)
                               at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:551)
                               at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
                               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)
                               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)


                              It's not always so, but 90% of the time I'm facing it and only restarting th server works.