Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1984

NPE while creating a dynamic FORK channel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • 3.6.7
    • 3.6.4
    • None

    Description

      I am trying to create a ForkChannel based on the example in docs with code, when FORK protocol not present in the main stack

              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");
      

      this ends with

      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
      

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rhn-engineering-rareddy Ramesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: