<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Unable to load session snapshot Caused by: java.io.EOFException
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/nash.komar">nash kom</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/727209#727209">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi all,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have an application based on seam 2.2.2 and jbpm 5.2 running under Jboss server 5.1.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am facing the flowing exception when restarting the jboss server (5.1), but not all the time.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Caused by: java.io.EOFException</p><p>    at java.io.DataInputStream.readShort(DataInputStream.java:298)</p><p>    at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2751)</p><p>    at java.io.ObjectInputStream.readShort(ObjectInputStream.java:927)</p><p>    at org.jbpm.marshalling.impl.ProcessMarshallerImpl.readProcessTimers(ProcessMarshallerImpl.java:204)</p><p>    at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:310)</p><p>    at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:196)</p><p>    at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:93)</p><p>    at org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:91)</p><p>    ... 117 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I did some debugging and the problem is coming from this line  in  org.jbpm.marshalling.impl.ProcessMarshallerImpl.readProcessTimers(...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  public void readProcessTimers(MarshallerReaderContext inCtx) throws IOException, ClassNotFoundException {</p><p>        inCtx.readersByInt.put( PersisterEnums.PROCESS_TIMER,  new TimerManager.ProcessTimerInputMarshaller());</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>        ObjectInputStream stream = inCtx.stream;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>        TimerManager timerManager = ((InternalProcessRuntime) ((InternalWorkingMemory) inCtx.wm).getProcessRuntime()).getTimerManager();</p><p>        timerManager.internalSetTimerId( stream.readLong() );</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>        int token;</p><p>     <span style="font-size: 12pt;"><strong>   while ((token = inCtx.readShort()) != PersisterEnums.END) {</strong></span></p><table><tbody><tr><td style=";">      </td><td style=";">switch( token ) {</td></tr><tr><td style=";">            </td><td style=";">case PersisterEnums.TIMER : {</td></tr><tr><td style=";">                </td><td style=";">TimerInstance timer = readTimer( inCtx );</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 12pt;"><strong>                                   ....</strong></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 12pt;">I can not load the ksession.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 12pt;">if you have any solution or explanation, this will be very helpful.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 12pt;">the complete stack trace </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>12:04:33,579 ERROR [SingleSessionCommandService] Could not commit session</p><p>java.lang.RuntimeException: Unable to load session snapshot</p><p>    at org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:96)</p><p>    at org.drools.persistence.SingleSessionCommandService.initKsession(SingleSessionCommandService.java:238)</p><p>    at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:191)</p><p>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</p><p>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)</p><p>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)</p><p>    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)</p><p>    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:101)</p><p>    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:84)</p><p>    at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:131)</p><p>    at com.atriumnetwork.jbpm.ProcessManager.newStatefulKnowledgeSession(ProcessManager.java:250)</p><p>    at com.atriumnetwork.jbpm.ProcessManager.initSession(ProcessManager.java:200)</p><p>    at com.atriumnetwork.jbpm.ProcessManager.AddVariable(ProcessManager.java:361)</p><p>    at com.atriumnetwork.webportal.ticketing.EditTicketAction.createTask(EditTicketAction.java:1895)</p><p>    at com.atriumnetwork.webportal.ticketing.EditTicketAction.addComment(EditTicketAction.java:1407)</p><p>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>    at java.lang.reflect.Method.invoke(Method.java:597)</p><p>    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)</p><p>    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)</p><p>    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)</p><p>    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)</p><p>    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>    at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:65)</p><p>    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)</p><p>    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>    at com.atriumnetwork.annotations.TimingInterceptor.timeCall(TimingInterceptor.java:39)</p><p>    at sun.reflect.GeneratedMethodAccessor536.invoke(Unknown Source)</p><p>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>    at java.lang.reflect.Method.invoke(Method.java:597)</p><p>    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)</p><p>    at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:187)</p><p>    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:72)</p><p>    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)</p><p>    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>    at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)</p><p>    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</p><p>    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)</p><p>    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)</p><p>    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)</p><p>    at com.atriumnetwork.webportal.ticketing.EditTicketAction_$$_javassist_seam_15.addComment(EditTicketAction_$$_javassist_seam_15.java)</p><p>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>    at java.lang.reflect.Method.invoke(Method.java:597)</p><p>    at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)</p><p>    at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:280)</p><p>    at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)</p><p>    at org.jboss.el.parser.AstMethodSuffix.invoke(AstMethodSuffix.java:65)</p><p>    at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)</p><p>    at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)</p><p>    at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)</p><p>    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)</p><p>    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)</p><p>    at javax.faces.component.UICommand.broadcast(UICommand.java:387)</p><p>    at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)</p><p>    at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329)</p><p>    at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304)</p><p>    at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261)</p><p>    at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474)</p><p>    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)</p><p>    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)</p><p>    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)</p><p>    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)</p><p>    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)</p><p>    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)</p><p>    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)</p><p>    at org.jboss.seam.web.RewriteFilter.process(RewriteFilter.java:98)</p><p>    at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:57)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)</p><p>    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    at com.atriumnetwork.webportal.filter.RendererFilter.doFilter(RendererFilter.java:152)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)</p><p>    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)</p><p>    at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)</p><p>    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)</p><p>    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)</p><p>    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)</p><p>    at com.atriumnetwork.filters.TimingFilter.doFilter(TimingFilter.java:35)</p><p>    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)</p><p>    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)</p><p>    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</p><p>    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)</p><p>    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)</p><p>    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)</p><p>    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)</p><p>    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)</p><p>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</p><p>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</p><p>    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)</p><p>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</p><p>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)</p><p>    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)</p><p>    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)</p><p>    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)</p><p>    at java.lang.Thread.run(Thread.java:662)</p><p>Caused by: java.io.EOFException</p><p>    at java.io.DataInputStream.readShort(DataInputStream.java:298)</p><p>    at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2751)</p><p>    at java.io.ObjectInputStream.readShort(ObjectInputStream.java:927)</p><p>    at org.jbpm.marshalling.impl.ProcessMarshallerImpl.readProcessTimers(ProcessMarshallerImpl.java:204)</p><p>    at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:310)</p><p>    at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:196)</p><p>    at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:93)</p><p>    at org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:91)</p><p>    ... 117 more</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/727209#727209">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>