You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by mo...@DAKOSY.de on 2004/06/01 15:37:54 UTC

Authentication Framework / NotSerializableException

Hello,
I'm using the authentication framework (very basically, I believe) and get 
a notSerializableException when stopping the server while a session 
exists.
The environment is JBoss3.2.3 with embedded Tomcat4.1 and cocoon2.1.3.
I have looked for information for several hours now but don't seem to find 
anything. 
I'd appreciate any hints on what I'm doing wrong here...


14:37:54,234 ERROR [Engine] StandardManager[/cocoon] Cannot serialize 
session attribute 
org.apache.cocoon.webapps.authentication.components.DefaultAuthenticationManager/UserStatus 
for session E6B9B711B490C566CD6A902677CDBF11
java.io.NotSerializableException: 
org.apache.cocoon.components.ComponentContext
        at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
        at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
        at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
        at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
        at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
        at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at java.util.HashMap.writeObject(HashMap.java:978)
        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:324)
        at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
        at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
        at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
        at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
        at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at 
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1439)
        at 
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:881)
        at 
org.apache.catalina.session.StandardManager.unload(StandardManager.java:536)
        at 
org.apache.catalina.session.StandardManager.stop(StandardManager.java:691)
        at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3683)
        at 
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
        at 
org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:470)
        at 
org.apache.catalina.core.StandardHost.remove(StandardHost.java:868)
        at 
org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performUndeploy(EmbeddedTomcatService.java:348)
        at 
org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:476)
        at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:489)
        at 
org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:472)
        at 
org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:359)
        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:324)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
        at 
org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:849)
        at 
org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:824)
        at 
org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:812)

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


Re: Authentication Framework / NotSerializableException

Posted by Joerg Heinicke <jo...@gmx.de>.
On 01.06.2004 15:37, moellerk@DAKOSY.de wrote:

> Hello,
> I'm using the authentication framework (very basically, I believe) and get 
> a notSerializableException when stopping the server while a session 
> exists.
> The environment is JBoss3.2.3 with embedded Tomcat4.1 and cocoon2.1.3.
> I have looked for information for several hours now but don't seem to find 
> anything. 
> I'd appreciate any hints on what I'm doing wrong here...
> 
> 
> 14:37:54,234 ERROR [Engine] StandardManager[/cocoon] Cannot serialize 
> session attribute 
> org.apache.cocoon.webapps.authentication.components.DefaultAuthenticationManager/UserStatus 
> for session E6B9B711B490C566CD6A902677CDBF11
> java.io.NotSerializableException: 
> org.apache.cocoon.components.ComponentContext

You have an object in the session that is tried to be persisted (written 
to persistent store on disk) but it fails obviously. The question is of 
course why the session will be persisted at all. Is it a feature of 
JBoss/Tomcat with an option to deactivate it or just default behaviour 
(what I can't imagine because you are not the only one having objects in 
the session that are not Serializable).

Joerg

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