[jboss-jira] [JBoss JIRA] (JGRP-1984) NPE while creating a dynamic FORK channel

Steven Hawkins (JIRA) issues at jboss.org
Fri Dec 4 09:16:00 EST 2015


    [ https://issues.jboss.org/browse/JGRP-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13137154#comment-13137154 ] 

Steven Hawkins commented on JGRP-1984:
--------------------------------------

This was addressed by the recent commit:  https://github.com/belaban/JGroups/commit/673d6593e9b41a9df9558298758173838c45e5ba#diff-88564a3ec49a406556051ae18239300c

It looks like this means that the create if absent logic won't work without the fix, so the FORK protocol must already be in the configuration as a workaround.

> NPE while creating a dynamic FORK channel
> -----------------------------------------
>
>                 Key: JGRP-1984
>                 URL: https://issues.jboss.org/browse/JGRP-1984
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.6.4
>            Reporter: Ramesh Reddy
>            Assignee: Bela Ban
>             Fix For: 3.6.7
>
>         Attachments: RpcForkDispatcherTest.java, tcp-shared.xml
>
>
> I am trying to create a ForkChannel based on the example in docs with code, when FORK protocol not present in the main stack
> {code}
>         channel=new JChannel("tcp.xml"));
>         channel.connect("RpcDispatcherTestGroup");        
>         ForkChannel forkChannel = new ForkChannel(channel, "test-rpc", name, true, ProtocolStack.BELOW, FRAG2.class);
>         forkChannel.connect("test-rpc");
> {code}
> this ends with 
> {code}
> Exception in thread "main" java.lang.NullPointerException
> 	at org.jgroups.protocols.FORK.createForkStack(FORK.java:199)
> 	at org.jgroups.fork.ForkChannel.<init>(ForkChannel.java:79)
> 	at org.teiid.systemmodel.RpcDispatcherTest.start(RpcDispatcherTest.java:32)
> 	at org.teiid.systemmodel.RpcDispatcherTest.main(RpcDispatcherTest.java:54
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list