geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: Stateful Session Bean Problem Geronimo 2.1.1: "Passivation Failed"
Date Wed, 09 Jul 2008 18:48:39 GMT

On Jul 9, 2008, at 3:43 AM, the666pack wrote:

>
> hello,
>
> my old question about stateless session beans was posted here
>
> http://www.nabble.com/Re%3A-Geronimo-2.0.2---OpenEJB-%22Passivation-Failed%22-td16144020s134.html#a16024338
>
> it was concerned about the "passivation bug" in the geronimo 2.0.2  
> version.
> so i now installed the 2.1.1 version in order to test the stateful  
> session
> bean performance of geronimo.
>
> unfortunately i still get the problem: "passivation failed" (see  
> stack trace
> below)...
>
> Was this passivation issue ever solved? or is it still not working  
> properly?
> i just can turn passivation off, what leads to an inferior  
> performance.

The original issue you had was "java.io.NotSerializableException:  
vt.bean.stateful.WriteDataBean" and was fixed with http://issues.apache.org/jira/browse/OPENEJB-215

  which is in 2.1.1.

The serialization of the EntityManager may or may not be a bug.  Are  
you using a Container-Managed EntityManager (i.e. looked up or  
injected) or a Bean-Managed EntityManager (created yourself via an  
EntityManagerFactory) ?

-David

> stack trace:
>
>     [exec] 12:38:15,811 INFO  [OpenEJB] Passivating to file
> /usr/local/geronimo/5.2.1.1/var/temp/ 
> 11d1def534ea1be0=-49fa44bf=11b07642b72=-7fe7
>     [exec] 12:38:15,816 ERROR [OpenEJB] Passivation failed
>     [exec] java.io.NotSerializableException:
> org.apache.openjpa.persistence.EntityManagerImpl
>     [exec]     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
>     [exec]     at
> java 
> .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 
> 1509)
>     [exec]     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
> 1474)
>     [exec]     at
> java 
> .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
> 1392)
>     [exec]     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>     [exec]     at
> java 
> .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 
> 1509)
>     [exec]     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
> 1474)
>     [exec]     at
> java 
> .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
> 1392)
>     [exec]     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>     [exec]     at
> java 
> .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 
> 1509)
>     [exec]     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
> 1474)
>     [exec]     at
> java 
> .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
> 1392)
>     [exec]     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>     [exec]     at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.stateful.SimplePassivater.passivate(SimplePassivater.java:73)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.stateful.SimplePassivater.passivate(SimplePassivater.java:92)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .stateful 
> .StatefulInstanceManager.passivate(StatefulInstanceManager.java:496)
>     [exec]     at
> org.apache.openejb.core.stateful.StatefulInstanceManager 
> $BeanEntryQueue.add(StatefulInstanceManager.java:610)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .stateful 
> .StatefulInstanceManager.poolInstance(StatefulInstanceManager.java: 
> 429)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .stateful.StatefulContainer.createEJBObject(StatefulContainer.java: 
> 314)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.stateful.StatefulContainer.invoke(StatefulContainer.java:267)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.ivm.EjbHomeProxyHandler.create(EjbHomeProxyHandler.java:267)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.ivm.EjbHomeProxyHandler._invoke(EjbHomeProxyHandler.java:158)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:245)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .util 
> .proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
>     [exec]     at $Proxy22.create(Unknown Source)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .ivm 
> .naming 
> .BusinessRemoteReference.getObject(BusinessRemoteReference.java:33)
>     [exec]     at
> org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java: 
> 150)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .ivm.naming.IntraVmJndiReference.getObject(IntraVmJndiReference.java: 
> 38)
>     [exec]     at
> org 
> .apache.openejb.core.ivm.naming.Reference.getContent(Reference.java: 
> 40)
>     [exec]     at
> org.apache.xbean.naming.context.ContextUtil.resolve(ContextUtil.java: 
> 61)
>     [exec]     at
> org 
> .apache 
> .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:118)
>     [exec]     at
> org 
> .apache 
> .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:617)
>     [exec]     at
> org 
> .apache 
> .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:158)
>     [exec]     at
> org 
> .apache 
> .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:617)
>     [exec]     at
> org 
> .apache 
> .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:158)
>     [exec]     at
> org 
> .apache 
> .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:603)
>     [exec]     at
> javax.naming.InitialContext.lookup(InitialContext.java:392)
>     [exec]     at vt.servlet.AddServlet.doGet(AddServlet.java:46)
>     [exec]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
>     [exec]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>     [exec]     at
> org 
> .apache 
> .catalina 
> .core 
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
> 290)
>     [exec]     at
> org 
> .apache 
> .catalina 
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     [exec]     at
> org 
> .apache 
> .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 
> 233)
> [exec]     at
> org 
> .apache 
> .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 
> 175)
>     [exec]     at
> org 
> .apache 
> .geronimo 
> .tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
>     [exec]     at
> org.apache.geronimo.tomcat.GeronimoStandardContext 
> $SystemMethodValve.invoke(GeronimoStandardContext.java:406)
>     [exec]     at
> org 
> .apache 
> .geronimo 
> .tomcat 
> .valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java: 
> 47)
>     [exec]     at
> org 
> .apache 
> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>     [exec]     at
> org 
> .apache 
> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>     [exec]     at
> org 
> .apache 
> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
> 109)
>     [exec]     at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 
> 563)
>     [exec]     at
> org 
> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
> 263)
>     [exec]     at
> org 
> .apache 
> .geronimo 
> .tomcat 
> .valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java: 
> 47)
>     [exec]     at
> org 
> .apache 
> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>     [exec]     at
> org 
> .apache 
> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>     [exec]     at
> org 
> .apache 
> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
> 109)
>     [exec]     at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 
> 563)
>     [exec]     at
> org 
> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
> 263)
>     [exec]     at
> org 
> .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
> 844)
>     [exec]     at
> org.apache.coyote.http11.Http11Protocol 
> $Http11ConnectionHandler.process(Http11Protocol.java:584)
>     [exec]     at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 
> 447)
>     [exec]     at java.lang.Thread.run(Thread.java:619)
>     [exec] Caused by: java.lang.reflect.UndeclaredThrowableException
>     [exec]     at $Proxy22.create(Unknown Source)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .ivm 
> .naming 
> .BusinessRemoteReference.getObject(BusinessRemoteReference.java:33)
>     [exec]     at
> org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java: 
> 150)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .ivm.naming.IntraVmJndiReference.getObject(IntraVmJndiReference.java: 
> 38)
>     [exec]     at
> org 
> .apache.openejb.core.ivm.naming.Reference.getContent(Reference.java: 
> 40)
>     [exec]     at
> org.apache.xbean.naming.context.ContextUtil.resolve(ContextUtil.java: 
> 61)
>     [exec]     ... 26 more
>     [exec] Caused by: java.rmi.RemoteException: Container has  
> suffered a
> SystemException; nested exception is:
>     [exec]     java.io.NotSerializableException:
> org.apache.openjpa.persistence.EntityManagerImpl
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.ivm.EjbHomeProxyHandler._invoke(EjbHomeProxyHandler.java:243)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:245)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .util 
> .proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
>     [exec]     ... 32 more
>     [exec] Caused by: java.io.NotSerializableException:
> org.apache.openjpa.persistence.EntityManagerImpl
>     [exec]     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
>     [exec]     at
> java 
> .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 
> 1509)
>     [exec]     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
> 1474)
>     [exec]     at
> java 
> .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
> 1392)
>     [exec]     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>     [exec]     at
> java 
> .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 
> 1509)
>     [exec]     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
> 1474)
>     [exec]     at
> java 
> .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
> 1392)
>     [exec]     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>     [exec]     at
> java 
> .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 
> 1509)
>     [exec]     at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 
> 1474)
>     [exec]     at
> java 
> .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 
> 1392)
>     [exec]     at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>     [exec]     at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.stateful.SimplePassivater.passivate(SimplePassivater.java:73)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.stateful.SimplePassivater.passivate(SimplePassivater.java:92)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .stateful 
> .StatefulInstanceManager.passivate(StatefulInstanceManager.java:496)
>     [exec]     at
> org.apache.openejb.core.stateful.StatefulInstanceManager 
> $BeanEntryQueue.add(StatefulInstanceManager.java:610)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .stateful 
> .StatefulInstanceManager.poolInstance(StatefulInstanceManager.java: 
> 429)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core 
> .stateful.StatefulContainer.createEJBObject(StatefulContainer.java: 
> 314)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.stateful.StatefulContainer.invoke(StatefulContainer.java:267)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.ivm.EjbHomeProxyHandler.create(EjbHomeProxyHandler.java:267)
>     [exec]     at
> org 
> .apache 
> .openejb 
> .core.ivm.EjbHomeProxyHandler._invoke(EjbHomeProxyHandler.java:158)
>     [exec]     ... 34 more
>
> thanks for helping,
>
> greetings,
>
> mario
>
> -- 
> View this message in context: http://www.nabble.com/Stateful-Session-Bean-Problem-Geronimo-2.1.1%3A-%22Passivation-Failed%22-tp18358756s134p18358756.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>
>


Mime
View raw message