4 Replies Latest reply on Jun 1, 2007 10:05 AM by Mani

    Following Seam Pay example - Error

    Ypatios Asmanidis Newbie

      I wanted to follow the seam pay example and all works fine using this code

       @Asynchronous
       @Transactional
       public Timer checkCitations(@Expiration Date when,
       @IntervalDuration long interval,
       Processor processor) throws SQLException
       {
      
       DatabaseManager dbManager=new DatabaseManager();
      
      
       if (something) {
       TimerHandle handle = processor.getTimerHandle();
      
       handle.getTimer().cancel();
      
       dbManager.updateQueue(processor.getId());
      
       }
      
      


      but if I redeploy my app when goes to to cancel the handle.getTimer().cancel() I get

      11:29:40,533 ERROR [TimerImpl] Error invoking ejbTimeout: javax.ejb.EJBException: java.lang.NullPointerException
      


      any ideas?

        • 1. Re: Following Seam Pay example - Error
          Arjan van Bentem Novice

           

          "koriel" wrote:
          when goes to to cancel the handle.getTimer().cancel() I get
          11:29:40,533 ERROR [TimerImpl] Error invoking ejbTimeout:
          javax.ejb.EJBException: java.lang.NullPointerException

          any ideas?


          Surely there's some "caused by" in the stacktrace to help you investigate?

          Does this only occur during redeployment on the fly? Like: what if you gracefully shut down the application server without redeploying anything? Or does it happen wen starting after redeployment?

          • 2. Re: Following Seam Pay example - Error
            Ypatios Asmanidis Newbie

            well this is the stacktrace...ignore the smtp error

            
            19:19:51,069 INFO [STDOUT] 5
            19:19:51,069 INFO [STDOUT] 5
            19:19:51,069 ERROR [STDERR] java.lang.NullPointerException
            19:19:51,071 ERROR [STDERR] at c2iff.logic.StatusProcessor.checkCitations(StatusProcessor.java:64)
            19:19:51,071 ERROR [STDERR] at c2iff.logic.StatusProcessor$$FastClassByCGLIB$$127e477c.invoke(<generated>)
            19:19:51,071 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            19:19:51,071 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            19:19:51,071 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
            19:19:51,071 ERROR [STDERR] at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
            19:19:51,071 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,071 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,072 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,072 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,072 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            19:19:51,072 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            19:19:51,072 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            19:19:51,072 ERROR [STDERR] at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:29)
            19:19:51,072 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,072 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,072 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,072 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,072 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            19:19:51,072 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            19:19:51,072 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            19:19:51,073 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:79)
            19:19:51,073 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
            19:19:51,073 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,073 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,073 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,073 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,073 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            19:19:51,073 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            19:19:51,073 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            19:19:51,073 ERROR [STDERR] at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
            19:19:51,073 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,074 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,074 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,074 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,074 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            19:19:51,074 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            19:19:51,074 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            19:19:51,074 ERROR [STDERR] at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:28)
            19:19:51,074 ERROR [STDERR] at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
            19:19:51,074 ERROR [STDERR] at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:23)
            19:19:51,074 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,074 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,074 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,074 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,075 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            19:19:51,075 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            19:19:51,075 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            19:19:51,075 ERROR [STDERR] at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
            19:19:51,075 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,075 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,075 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,075 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,075 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            19:19:51,075 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            19:19:51,075 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            19:19:51,075 ERROR [STDERR] at org.jboss.seam.interceptors.AsynchronousInterceptor.invokeAsynchronouslyIfNecessary(AsynchronousInterceptor.java:33)
            19:19:51,076 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,076 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,076 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,076 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,076 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            19:19:51,076 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            19:19:51,076 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            19:19:51,076 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
            19:19:51,076 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
            19:19:51,076 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
            19:19:51,076 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:145)
            19:19:51,076 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:80)
            19:19:51,077 ERROR [STDERR] at c2iff.logic.StatusProcessor$$EnhancerByCGLIB$$a2e998e7.checkCitations(<generated>)
            19:19:51,077 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,077 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,077 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,077 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,077 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            19:19:51,077 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
            19:19:51,077 ERROR [STDERR] at org.jboss.seam.core.Dispatcher$AsynchronousInvocation.call(Dispatcher.java:134)
            19:19:51,077 ERROR [STDERR] at org.jboss.seam.core.Dispatcher$Asynchronous.execute(Dispatcher.java:88)
            19:19:51,077 ERROR [STDERR] at org.jboss.seam.core.Dispatcher.dispatch(Dispatcher.java:165)
            19:19:51,077 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:19:51,078 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:19:51,078 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:19:51,078 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            19:19:51,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
            19:19:51,078 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
            19:19:51,078 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
            19:19:51,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,078 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
            19:19:51,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,078 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
            19:19:51,078 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,078 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
            19:19:51,079 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
            19:19:51,079 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,079 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
            19:19:51,079 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,079 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
            19:19:51,079 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,079 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
            19:19:51,079 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
            19:19:51,079 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,079 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
            19:19:51,079 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,079 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
            19:19:51,080 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            19:19:51,080 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessContainer.java:150)
            19:19:51,080 ERROR [STDERR] at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:524)
            19:19:51,080 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)
            19:19:51,080 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
            19:19:51,084 INFO [STDOUT] javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
             nested exception is:
             java.net.ConnectException: Connection refused
            19:19:51,085 INFO [STDOUT] Hibernate: select c2ifproces0_.id as id69_0_, c2ifproces0_.uai as uai69_0_, c2ifproces0_.email as email69_0_, c2ifproces0_.timerHandle as timerHan4_69_0_, c2ifproces0_.active as active69_0_, c2ifproces0_.numOfArticles as numOfArt6_69_0_ from C2ifProcessor c2ifproces0_ where c2ifproces0_.id=?
            19:19:51,122 INFO [DefaultLoadEventListener] Error performing load command
            org.hibernate.type.SerializationException: could not deserialize
             at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:214)
             at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:240)
             at org.hibernate.type.SerializableToBlobType.fromBytes(SerializableToBlobType.java:69)
             at org.hibernate.type.SerializableToBlobType.get(SerializableToBlobType.java:61)
             at org.hibernate.type.AbstractLobType.nullSafeGet(AbstractLobType.java:46)
             at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
             at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2031)
             at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1371)
             at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)
             at org.hibernate.loader.Loader.getRow(Loader.java:1197)
             at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)
             at org.hibernate.loader.Loader.doQuery(Loader.java:689)
             at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
             at org.hibernate.loader.Loader.loadEntity(Loader.java:1784)
             at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
             at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
             at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2977)
             at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:393)
             at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:374)
             at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:137)
             at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:193)
             at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101)
             at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
             at org.hibernate.impl.SessionImpl.get(SessionImpl.java:815)
             at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:229)
             at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:120)
             at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:53)
             at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:677)
             at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:661)
             at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:665)
             at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:227)
             at c2iff.logic.StatusProcessor.checkCitations(StatusProcessor.java:83)
             at c2iff.logic.StatusProcessor$$FastClassByCGLIB$$127e477c.invoke(<generated>)
             at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
             at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
             at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
             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:18)
             at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
             at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:29)
             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:18)
             at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
             at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:79)
             at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
             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:18)
             at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
             at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
             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:18)
             at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
             at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:28)
             at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
             at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:23)
             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:18)
             at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
             at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
             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:18)
             at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
             at org.jboss.seam.interceptors.AsynchronousInterceptor.invokeAsynchronouslyIfNecessary(AsynchronousInterceptor.java:33)
             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:18)
             at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
             at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
             at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
             at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
             at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:145)
             at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:80)
             at c2iff.logic.StatusProcessor$$EnhancerByCGLIB$$a2e998e7.checkCitations(<generated>)
             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:18)
             at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
             at org.jboss.seam.core.Dispatcher$AsynchronousInvocation.call(Dispatcher.java:134)
             at org.jboss.seam.core.Dispatcher$Asynchronous.execute(Dispatcher.java:88)
             at org.jboss.seam.core.Dispatcher.dispatch(Dispatcher.java:165)
             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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
             at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
             at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
             at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
             at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
             at org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessContainer.java:150)
             at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:524)
             at java.util.TimerThread.mainLoop(Timer.java:512)
             at java.util.TimerThread.run(Timer.java:462)
            Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.seam.core.Dispatcher$TimerHandleProxy
             at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
             at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
             at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
             at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
             at java.lang.Class.forName0(Native Method)
             at java.lang.Class.forName(Class.java:242)
             at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585)
             at org.hibernate.util.SerializationHelper$CustomObjectInputStream.resolveClass(SerializationHelper.java:268)
             at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
             at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
             at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
             at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
             at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
             at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:210)
             ... 139 more
            19:19:51,143 ERROR [TimerImpl] Error invoking ejbTimeout: javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.type.SerializationException: could not deserialize
            
            
            


            • 3. Re: Following Seam Pay example - Error
              Mani Newbie

              I too face this issue, I have one timer getting started for every minute. After a while I shutdown and restart the servers, the stack trace starts to appear when trying to load the timer. any resolutions?
              Here is the stack trace :

              18:28:56,891 INFO [DefaultLoadEventListener] Error performing load command
              org.hibernate.type.SerializationException: could not deserialize
               at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:214)
               at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:240)
               at org.hibernate.type.SerializableToBlobType.fromBytes(SerializableToBlobType.java:69)
               at org.hibernate.type.SerializableToBlobType.get(SerializableToBlobType.java:61)
               at org.hibernate.type.AbstractLobType.nullSafeGet(AbstractLobType.java:46)
               at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
               at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2031)
               at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1371)
               at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)
               at org.hibernate.loader.Loader.getRow(Loader.java:1197)
               at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)
               at org.hibernate.loader.Loader.doQuery(Loader.java:689)
               at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
               at org.hibernate.loader.Loader.loadEntity(Loader.java:1784)
               at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
               at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
               at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2977)
               at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:393)
               at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:374)
               at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:137)
               at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:193)
               at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101)
               at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
               at org.hibernate.impl.SessionImpl.get(SessionImpl.java:815)
               at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:229)
               at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:120)
               at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:53)
               at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:677)
               at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:661)
               at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:665)
               at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:227)
               at org.jboss.seam.persistence.EntityManagerProxy.merge(EntityManagerProxy.java:123)
              Caused by: java.lang.ClassNotFoundException: org.jboss.seam.core.Dispatcher$TimerHandleProxy
               at java.lang.Class.forName0(Native Method)
               at java.lang.Class.forName(Class.java:242)
               at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585)
               at org.hibernate.util.SerializationHelper$CustomObjectInputStream.resolveClass(SerializationHelper.java:268)
               at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
               at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
               at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
               at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
               at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
               at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:210)
               at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:240)
               at org.hibernate.type.SerializableToBlobType.fromBytes(SerializableToBlobType.java:69)
               at org.hibernate.type.SerializableToBlobType.get(SerializableToBlobType.java:61)
               at org.hibernate.type.AbstractLobType.nullSafeGet(AbstractLobType.java:46)
               at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
               at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2031)
               at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1371)
               at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)
               at org.hibernate.loader.Loader.getRow(Loader.java:1197)
               at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)
               at org.hibernate.loader.Loader.doQuery(Loader.java:689)
               at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
               at org.hibernate.loader.Loader.loadEntity(Loader.java:1784)
               at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
               at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
               at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2977)
               at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:393)
               at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:374)
               at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:137)
               at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:193)
               at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101)
               at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
              18:28:56,896 ERROR [TimerImpl] Error invoking ejbTimeout: javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.type.SerializationException: could not deserialize
              


              • 4. Re: Following Seam Pay example - Error
                Mani Newbie

                Are there are any issues in using JBossDS in HSQL and application DS in Postgresql? The persistence of objects in application DS seems to work fine, should I suspect the HSQL DB for persistence and move the JBossDS where the timer persistence is maintained to Postgresql?