Re: NotSerializableException: StandardSessionFacade
Christopher Schultz-2 wrote: > > This shouldn't be a fatal error. All Tomcat versions I have used will > simply give-up restoring sessions and continue starting up. > > The OP didn't post the entire stack trace, so it's tough to tell what's > really going on. Massimo, can you re-post the stack trace in its entirety? > This is not a fatal error, however, I'd like to get this resolved. Can I simply turn off restoring sessions? That just means that when I restart the server, I lose client web session data, right? That's not a problem. The full stack trace? It's quite big. Here it is... - IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.catalina.session.StandardSessionFacade java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.catalina.session.StandardSessionFacade at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at java.util.ArrayList.readObject(ArrayList.java:593) 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:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at java.util.HashMap.readObject(HashMap.java:1030) 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:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at java.util.HashMap.readObject(HashMap.java:1030) 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:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1402) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:931) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394) at org.apache.catalina.session.StandardManager.load(StandardManager.java:321) at org.apache.catalina.session.StandardManager.start(StandardManager.java:637) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:432) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(
RE: NotSerializableException: StandardSessionFacade
The exception says that the class that can't be serialized is StandardSessionFacade, which is an internal Tomcat class. That's what's confusing me. If it was a class in my code, I would know what to hunt for. Deleting work folder causes problem to go away. However, it will come back. Thanks for the response. Caldarale, Charles R wrote: > >> From: MassimoH [mailto:[EMAIL PROTECTED] >> Subject: NotSerializableException: StandardSessionFacade >> >> I've inherited an legacy Java application and I'm getting >> this error on startup. >> >> - IOException while loading persisted sessions: >> java.io.WriteAbortedException: writing aborted; >> java.io.NotSerializableException: > > It seems odd to get a WriteAbortedException during startup, since the > session is being read back in. Regardless, something stored in the > session is not serializable, so it cannot be restored - which is also > odd, since it must have been serializable in order to have been written > out. Clearing out Tomcat's work directory to get rid of the persisted > sessions should let you get through startup. > > If the webapp does actually store something non-serializable into the > session, you can either fix the webapp, or turn off session persistence > for that webapp. Nest a element inside the webapp's > element, and set the pathname attribute for the manager to an empty > string. The doc is here: > http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/NotSerializableException%3A-StandardSessionFacade-tp16758759p16763480.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NotSerializableException: StandardSessionFacade
I've inherited an legacy Java application and I'm getting this error on startup. - IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.catalina.session.StandardSessionFacade java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.catalina.session.StandardSessionFacade at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333) Apache Tomcat 5.5.25 Java 1.6_05 There is a significant chance something isn't configured correctly. -- View this message in context: http://www.nabble.com/NotSerializableException%3A-StandardSessionFacade-tp16758759p16758759.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Confusing Tomcat Error: "SEVERE: Error listenerStart"
That worked! I can't imagine what the issue was, but now that it's working smoothly, it's not worth investigating further. Thanks! Caldarale, Charles R wrote: > > Try installing an undbundled Tomcat from tomcat.apache.org, rather than > any 3rd-party repackaged version, even the one with NetBeans. You can > link the separate one in as a J2EE server afterwards. > -- View this message in context: http://www.nabble.com/Confusing-Tomcat-Error%3A-%22SEVERE%3A-Error-listenerStart%22-tf4878905.html#a14140286 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Confusing Tomcat Error: "SEVERE: Error listenerStart"
I am writing a web app in Struts. This was working perfectly until I did an uinstall/reinstall of Apache Tomcat 6.0.14 along with the new RC2 of NetBeans 6.0. Now, when I try to run my web app, I get a generic Tomcat error screen: "type Status report message /myapp/ description The requested resource (/myapp/) is not available." Looking through the Tomcat log in NetBeans I see: Nov 26, 2007 1:14:14 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 834 ms Nov 26, 2007 1:14:14 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 26, 2007 1:14:14 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Nov 26, 2007 1:14:15 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Nov 26, 2007 1:14:15 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/myapp] startup failed due to previous errors Nov 26, 2007 1:14:15 AM org.apache.coyote.http11.Http11Protocol start What does "Error listenerStart" mean and how do I correct that? I am completely stumped. I don't know what else to try or do. Thanks in advance for any replies! JDK: Sun JDK 1.6.0_03 IDE: NetBeans 6.0 RC2 App Server: Tomcat bundled with NetBeans 6.0 RC2 (6.0.14) OS: Ubuntu 7.10 -- View this message in context: http://www.nabble.com/Confusing-Tomcat-Error%3A-%22SEVERE%3A-Error-listenerStart%22-tf4878905.html#a13962091 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]