0 Replies Latest reply on Aug 1, 2002 1:35 PM by Jim Dummy

    RMI/IIOP callback from SfSB

    Jim Dummy Newbie

      Hi, there...

      I can not pass a callback CORBA reference to the EJB through RMI/IIOP.

      It works with RI but not in JBoss... with JBoss 3.0 it fails in JACorb with "out of memory" exception (it tries to allocate 1Gb for an array). Yesturday I downloaded JACorb 1.4.1 and it fails again with an exeption
      org.omg.CORBA.MARSHAL: unknown value tag: 46 minor code: 0 completed: No
      at org.jacorb.orb.CDRInputStream.read_value(Compiled Code)@d833bf0
      at org.jboss.ejb.plugins.iiop.CDRStream$ValuetypeReader.read(Compiled Code)@ae3f1e0
      at org.jboss.ejb.plugins.iiop.server.SkeletonStrategy.readParams(Compiled Code)@ae3f100
      at org.jboss.ejb.plugins.iiop.server.IIOPContainerInvoker$HomeServant._invoke(Compiled Code)@ae3ec30
      at org.jacorb.poa.RequestProcessor.invokeOperation(Compiled Code)@d4ac280
      at org.jacorb.poa.RequestProcessor.process(Compiled Code)@d4aaa70
      at org.jacorb.poa.RequestProcessor.run(Compiled Code)@d4aa5b0
      at java.lang.Thread.startThreadFromVM(Compiled Code)@8dd35e0
      --- End of stack trace

      I understand that this is an ORBacus bug, but... does anyone know how to change ORB in JBoss? for Sun or openorb?

      Thank you vm

      Here is my client code:

      org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(new String[0], null);
      POA rootpoa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));

      org.omg.CORBA.Object ref = rootpoa.servant_to_reference(this);

      SessionCallback href = SessionCallbackHelper.narrow(ref);
      Context ctx = Connector.getContext();

      java.lang.Object obj = ctx.lookup("OperatorSession");

      OperatorSessionHome home = (OperatorSessionHome)javax.rmi.PortableRemoteObject.narrow(obj, OperatorSessionHome.class);

      OperatorSession ses = home.create(333, href);