Results 1 to 3 of 3
  1. #1
    Nick15 is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default tomcat exception-error

    Hello people
    I have an application that works ok, but when I execute tomcat this exception appeared, I don´t know why, This does not interfere with the functioning but I hate that it appears




    14:36:22,921 ERROR ManagerBase:434 - IOException al cargar sesiones persistidas: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: Model.Miembro
    java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: Model.Miembro
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1309)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:348)
    at java.util.ArrayList.readObject(ArrayList.java:591)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectS treamClass.java:946)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1809)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1719)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1305)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:348)
    at org.apache.catalina.session.StandardSession.readOb ject(StandardSession.java:1342)
    at org.apache.catalina.session.StandardSession.readOb jectData(StandardSession.java:885)
    at org.apache.catalina.session.StandardManager.doLoad (StandardManager.java:416)
    at org.apache.catalina.session.StandardManager.load(S tandardManager.java:343)
    at org.apache.catalina.util.CatalinaDigester.endEleme nt(CatalinaDigester.java:76)
    at internal.parsers.XMLParser.parse(XMLParser.java:14 8)
    at com.sun.org.apache.xerces.internal.parsers.Abstrac tSAXParser.parse(AbstractSAXParser.java:1242)
    at org.apache.commons.digester.Digester.parse(Digeste r.java:1567)
    at org.apache.catalina.core.StandardHostDeployer.inst all(StandardHostDeployer.java:488)
    at org.apache.catalina.core.StandardHost.install(Stan dardHost.java:863)
    at org.apache.catalina.startup.HostConfig.deployDescr iptors(HostConfig.java:483)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:427)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:983)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:349)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1091)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:789)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1083)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:425)
    Caused by: java.io.NotSerializableException: Model.Miembro
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1081)
    at java.io.ObjectOutputStream.writeObject(ObjectOutpu tStream.java:302)
    at java.util.ArrayList.writeObject(ArrayList.java:569 )
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    ager.stop(StandardManager.java:687)
    org.apache.catalina.core.StandardService.stop(Stan dardService.java:542)
    at org.apache.catalina.core.StandardServer.stop(Stand ardServer.java:2347)
    at org.apache.catalina.startup.Catalina.stop(Catalina .java:605)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:580)
    ... 6 more


    thanks you!
    Nicholas
    Last edited by Nick15; 06-01-2007 at 01:10 AM.

  2. #2
    levent Guest

    Default

    Hello Nicholas,

    As far as i see, you have Miembro class in Model package and it is not serializable. NotSerializableException exceptions seem to be thrown because of that. So to fix the problem, you may try to make your Miembro class serializable.

  3. #3
    Freddie is offline Member
    Join Date
    May 2007
    Posts
    41
    Rep Power
    0

    Default

    When you download the Tomcat, it serialize the sessions and saves them, so when you run it has the information of sessions.
    If you have not
    serializables objects in the session , it through you the exception that you describe.
    well, I hope that you understood my explanation
    good luck
    Last edited by Freddie; 06-01-2007 at 03:39 PM.

Similar Threads

  1. Tomcat Server : Error filterStart
    By kasipandian in forum Web Frameworks
    Replies: 0
    Last Post: 03-30-2008, 04:50 PM
  2. Exception Error need help fixing
    By skinnybones in forum New To Java
    Replies: 2
    Last Post: 12-03-2007, 08:14 PM
  3. JSF error+exception
    By Peter in forum SWT / JFace
    Replies: 1
    Last Post: 07-04-2007, 07:29 AM
  4. Tomcat exception
    By Jack in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 02:46 PM
  5. error Tomcat in eclipse
    By Marty in forum Eclipse
    Replies: 1
    Last Post: 05-06-2007, 05:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •