Bugs item #758476, was opened at 2003-06-21 19:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=758476&group_id=22866
Category: Clustering
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Jens Schumann (french_c)
Assigned to: Nobody/Anonymous (nobody)
Summary: SubContexts and Cluster Node getState
Initial Comment:
Node getState() fails in case the HA JNDI Tree contains
a sub context. As soon as a new node joins the cluster
state synchronisation will result in a
java.io.NotSerializableException. I have been looking
in the source and it seems that a simple getState()
returning the Hashtable is not the appropriate way to
synchronize a the JNDI Tree. The required changes may
involve changes in the NamingContext/NamingServer
classes, so I stopped looking for a solution.
---------------
Example:
Execute the follwing code on one node while the second
node is not active:
Hashtable properties = {HA JNDI Properties}
InitialContext ctx = new InitialContext(properties);
Context subCtx = (Context)ctx.createSubcontext("Test")
subCtx.rebind("foo","bar");
Start the second node.
Tested against 3.0.7.
---------
2003-06-21 17:57:44,354 ERROR
[org.jboss.ha.framework.server.HAPartitionImpl.DefaultPartition]
GetState failed
java.io.NotSerializableException:
org.jboss.ha.framework.server.HAPartitionImpl
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
java.util.Hashtable.writeObject(Hashtable.java:802)
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:795)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1294)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at java.util.HashMap.writeObject(HashMap.java:958)
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:795)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1294)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
org.jboss.ha.framework.server.HAPartitionImpl.objectToByteBuffer(HAPartitionImpl.java:123)
at
org.jboss.ha.framework.server.HAPartitionImpl.getState(HAPartitionImpl.java:311)
at
org.javagroups.blocks.MessageDispatcher$ProtocolAdapter.passUp(MessageDispatcher.java:460)
at
org.javagroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:294)
at
org.javagroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:513)
at org.javagroups.JChannel.up(JChannel.java:841)
at
org.javagroups.stack.ProtocolStack.up(ProtocolStack.java:302)
at
org.javagroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:318)
at
org.javagroups.stack.Protocol.passUp(Protocol.java:435)
at
org.javagroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:107)
at
org.javagroups.stack.UpHandler.run(Protocol.java:55)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=758476&group_id=22866
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development