0 Replies Latest reply on Feb 27, 2006 4:56 PM by Attila Czigany

    CORBA object NotFound exception

    Attila Czigany Newbie

      I have a C++ daemon, a method of it gets a number, and puts the double. I want to use a Java client for it, which works fine with tnameserv , but not with JBoss's Jacorb.
      I tried with iiop way, tried with corba way but no success.
      It throws:
      org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
      at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
      at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
      at EchoClient2.main(EchoClien...

      In the JMX console my ORB can be seen, so the problem is in tha java client I think, but cant find out what.
      Here is the main part of the client:

      String[] argum = new String[2];
      argum[0]=new String("-ORBInitRef");
      argum[1]=new String("NameService=corbaloc::1.2@localhost:3528/JBoss/Naming/root");
      ORB myorb=ORB.init(argum,null);
      org.omg.CORBA.Object ref=myorb.resolve_initial_references("NameService");
      NamingContextExt rootNC=NamingContextExtHelper.narrow(ref);
      Echo echo=EchoHelper.narrow(rootNC.resolve(rootNC.to_name("ECHO")));
      IntHolder resp=new IntHolder();
      int data=resp.value;

      jboss 4.0.2
      If someone would help, it would be really great.