Re: [jgroups-users] JGroups SimpleChat - not working - Need help

Questions/problems related to using JGroups <[email protected]> Thu, 11 Oct 2018 18:38:26 +0200
Newsgroups gmane.comp.java.javagroups.general
Message-ID <mailman.31975.1539275918.1387.javagroups-users@lists.sourceforge.net>
On 11/10/18 12:39, Questions/problems related to using JGroups wrote:


> Brady: Below is the ifconfig details, and the tcp.xml & the java code 
> which I modified and working fine, the messages are getting replicated 
> now in the sample one which I have attached.

So now I'm not sure: is this code working, or not?

> But now when we try to implement in our code we are getting 
> "java.lang.IllegalStateException: channel is disconnected
>          at 
> org.jgroups.JChannel.checkClosedOrNotConnected(JChannel.java:971)
>          at org.jgroups.JChannel.send(JChannel.java:427)
>          at 
> com.ncs.beconnect.share.server.service.impl.JGroupsReceiveService.init(JGroupsReceiveService.java:88)"


So at the time of calling JGroupsReceiveService.init(), the channel has 
not yet been connected. Are creating/connecting the channel in a 
different thread? If so, you need to prevent application threads from 
sending messages until JChannel.connect() has returned.


> I am using the same default TCP.xml (the one which I have attached), 
> however, we would need to have the TCP_NIO2 protocol and it is not 
> working for this protocol (I mean the sample code which I have attached)
> 
> Requesting for your help and suggestion.
> 
> Thanks in advance.
> 
> Warm Regards,
> 
> Brady...
> 
> 
> 
> 
> _______________________________________________
> javagroups-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/javagroups-users
> 

-- 
Bela Ban | http://www.jgroups.org



_______________________________________________
javagroups-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javagroups-users