Problem with clustering

Discussions

EJB programming & troubleshooting: Problem with clustering

  1. Problem with clustering (3 messages)

    I'm using Weblogic5.1 with sp10 for my cluster setup. When the session tries to replicate i get the following exception.What may be the reason for this, and how to fix this problem.All my custom classes which are in the session implement Serializable interface.

    java.io.NotSerializableException: weblogic.servlet.internal.WebAppServletContext
            at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
            at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1827)
            at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
            at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
            at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1827)
            at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
            at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
            at java.util.Hashtable.writeObject(Hashtable.java:757)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1864)
            at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
            at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java:118)
            at weblogic.servlet.internal.session.ReplicatedSession.writeExternal(ReplicatedSession.java:81)
            at weblogic.common.internal.WLObjectOutputStreamBase.writePublicSerializable(WLObjectOutputStreamBase.java:736)
            at weblogic.common.internal.WLObjectOutputStreamBase.writeObjectBody(WLObjectOutputStreamBase.java:893)
            at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java:1011)
            at weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutputStreamBase.java:166)
            at weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStream2.java:82)
            at weblogic.rmi.extensions.AbstractOutputStream.writeObject(AbstractOutputStream.java:83)
            at weblogic.cluster.replication.ReplicationManager_WLStub.create(ReplicationManager_WLStub.java:86)
            at weblogic.cluster.replication.ReplicationManager.createSecondary(ReplicationManager.java:483)
            at weblogic.cluster.replication.ReplicationManager.checkHosts(ReplicationManager.java:557)
            at weblogic.cluster.replication.ReplicationManager.clusterMembersChanged(ReplicationManager.java:582)
            at weblogic.cluster.MemberStash$ClusterMembersChangeDeliverer.execute(MemberStash.java:207)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

    --------------- nested within: ------------------
    weblogic.rmi.MarshalException: error marshalling arguments
     - with nested exception:
    [java.io.NotSerializableException: weblogic.servlet.internal.WebAppServletContext]

    Threaded Messages (3)

  2. Problem with clustering[ Go to top ]

    Every object placed in the HTTPSession must be Serializable. Is this true of your sessoin state?
  3. Problem with clustering[ Go to top ]

    Yaa all the objects are serialized
  4. Problem with clustering[ Go to top ]

    You customized objects may implement Serializable, but do the objects associated with your classes also implement Serializable. I guess the thought is that something somewhere doesn't. Does this always occur, or is it only after some particular action is taken that session replication fails?