cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wirz <michael.w...@abs.de>
Subject Serializability of session using the auth fw
Date Fri, 16 Sep 2005 12:10:22 GMT
Hello again cocoon users,

I am using the authentication framework. It works fine -- but recently I
found some
messages in the logs which made me think. Auth fw stores an XML (user id
or the like)
in an Authentication Context. After having logged in cocoon tells about
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.cocoon.components.CocoonComponentManager.
I wondered if auth fw stuff is serializable.

Thanks for hints on that topic!
Michael


- IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.cocoon.components.CocoonComponentManager
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.cocoon.components.CocoonComponentManager
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303)
    at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    at java.util.HashMap.readObject(HashMap.java:1011)
    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
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1362)
    at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:894)
    at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:448)
    at
org.apache.catalina.session.StandardManager.load(StandardManager.java:375)
    at
org.apache.catalina.session.StandardManager.start(StandardManager.java:689)
    at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
    at
org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:354)
    at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:966)
    at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:249)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4012)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
    at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
    at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
    at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
    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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.io.NotSerializableException:
org.apache.cocoon.components.CocoonComponentManager
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
    at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
    at java.util.HashMap.writeObject(HashMap.java:983)
    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
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
    at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1436)
    at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:911)
    at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:571)
    at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:517)
    at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:719)
    at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4252)
    at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:884)
    at
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1120)
    at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1043)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
    at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:442)
    at
org.apache.catalina.core.StandardService.stop(StandardService.java:512)
    at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2044)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:561)
    ... 6 more
- Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.cocoon.components.CocoonComponentManager
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303)
    at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    at java.util.HashMap.readObject(HashMap.java:1011)
    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
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1362)
    at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:894)
    at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:448)
    at
org.apache.catalina.session.StandardManager.load(StandardManager.java:375)
    at
org.apache.catalina.session.StandardManager.start(StandardManager.java:689)
    at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
    at
org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:354)
    at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:966)
    at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:249)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4012)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
    at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
    at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
    at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
    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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.io.NotSerializableException:
org.apache.cocoon.components.CocoonComponentManager
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
    at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
    at java.util.HashMap.writeObject(HashMap.java:983)
    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
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
    at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1436)
    at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:911)
    at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:571)
    at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:517)
    at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:719)
    at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4252)
    at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:884)
    at
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1120)
    at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1043)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
    at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:442)
    at
org.apache.catalina.core.StandardService.stop(StandardService.java:512)
    at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2044)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:561)
    ... 6 more

-- 
abs IT Service GmbH
abs Gruppe
Michael Wirz
Entwicklung

Landsberger Stra├če 57
82266 Stegen am Ammersee
Telefon: +49 (0)8143 999 43
Telefax: +49 (0)8143 999 49

Michael.Wirz@abs.de
www.eFonds24.de


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


Mime
View raw message