Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

accessing a client stub through rmi in a cluster

0 views
Skip to first unread message

Guy Lichtman

unread,
Mar 22, 2001, 3:35:52 AM3/22/01
to
I am using Weblogic 6.0 sp1.

I have a cluster with two nodes node1 and node2. And I have an outside java
client which registers in the jndi an rmi stub (the stub is compiled using
regular weblogic.rmic (no iiop)).

I find that if I bring node1 up before node2 and register the client stub,
then bring node2 up. Node2 copies into it's global jndi tree the remote
stub, but it doesn't succeed at calling methods on the rmi stub. The
exception I get is:

java.rmi.ConnectException: Attempt to sendMsg using a closed connection
at
weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRe
quest.java:90)

And on node1 I get the following message:

<Error> <ConnectionManager> <Closing:
'weblogic.rjvm.t3.T3JVMConnection@49e44a' because of: 'Server expected to
route a message received over an uninitialized connection: 'JVMMessage from:
'769313277964067405S:192.168.6.235:[7001,7001,7002,7002,7001,7002,-1]' to:
'1915961498358466247C:192.168.6.26' cmd: 'CMD_REQUEST', QOS: '101',
responseId: '1', invokableId: '257', flags: 'JVMIDs Sent, TX Context Not
Sent', abbrev offset: '23'''>

the ip: 192.168.6.235 belongs to node2 and the ip 192.168.6.26 belongs to
the outside client.

Might I add that node1 can communicate with the outside client through the
stub and that also this doesn't happen if I bring up the outside client
after both servers are up and running.

It looks like that in order for the rmi communication to work between the
stub and the client a connection has to be initialized, but it isn't
initialized when a server binds a remote stub on startup from the global
cluster wide jndi tree.

Any suggestions on how I can initialize such a connection (preferably from
the server side) would be appreciated.

thanks,

Guy Lichtman


0 new messages