cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: NotSerializableException ?
Date Fri, 29 Apr 2005 17:55:55 GMT
Not sure but here's my best guess:

Upon container shutdown, Spring (or maybe the container itself) tries to 
be a good citizen and serialize the session to disk. Now there are some 
components/classes in flowscript that are not serializable, hence the 
session serialization fails and you get this stacktrace.


Jorg

Sebastien Arbogast wrote:
> Hi,
> 
> When I shut down my tomcat server with my cocoon application (schaman)
> inside, I get a mysterious NotSerializableException which seems to be
> linked to both Spring and Flow (see
> org.mozilla.javascript.NativeJavaObject.writeExternal(NativeJavaObject.java:993))
> :
> 
> INFO: Retrait de l'application web pour le chemin de contexte /schaman
> - Impossible de sérialiser l'attribut de session FOM JavaScript GLOBAL
> SCOPE/file:/C:/dev/pfe/schaman/target/webapp/admin/sitemap.xmap:53:37
> pour la session D65F51D70184DCB7004DD1872DE23FAD
> java.io.NotSerializableException:
> org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
> 	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
> 	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.writeArray(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
> 	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
> 	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
> 	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject(Unknown Source)
> 	at org.mozilla.javascript.NativeJavaObject.writeExternal(NativeJavaObject.java:993)
> 	at java.io.ObjectOutputStream.writeExternalData(Unknown Source)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
> 	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.writeArray(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
> 	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> 	at java.io.ObjectOutputStream.writeObject(Unknown Source)
> 	at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1415)
> 	at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:902)
> 	at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:539)
> 	at org.apache.catalina.session.StandardManager.unload(StandardManager.java:485)
> 	at org.apache.catalina.session.StandardManager.stop(StandardManager.java:687)
> 	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
> 	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:952)
> 	at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:670)
> 	at org.apache.catalina.core.StandardHost.remove(StandardHost.java:946)
> 	at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1028)
> 	at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1005)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:351)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1123)
> 	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1135)
> 	at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:483)
> 	at org.apache.catalina.core.StandardService.stop(StandardService.java:542)
> 	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
> 	at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:580)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> 
> Any idea of what can be the cause of that ?
> 
> Thx in advance.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message