Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6120

Corba JNDI provider is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • JBossAS-5.0.0.GA
    • IIOP service
    • None

      I tried to create an InitialContext for the Corba JNDI provider (COS naming service provider) and got the error "Exception in thread "main" org.omg.CORBA.OBJECT_NOT_EXIST:" This was working yesterday morning (svn update on Mon 20 Oct about 10am UTC) but after updating trunk in the afternoon it is now broken. Heres the factory and url I used:

      properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
      properties.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
      properties.setProperty(Context.PROVIDER_URL, "corbaloc::localhost:3528/JBoss/Naming/root");
      InitialContext ctx = new InitialContext(properties);

      The new InitialContext call throws the following exception:

      [java] Exception in thread "main" org.omg.CORBA.OBJECT_NOT_EXIST: ---------BEGIN server-side stack trace---------
      [java] unknown oid
      [java] ---------END server-side stack trace--------- vmcid: 0x0 minor code: 0 completed: No
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      [java] at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:902)
      [java] at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0.getSystemException(ReplyMessage_1_0.java:94)
      [java] at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
      [java] at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
      [java] at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
      [java] at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
      [java] at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:213)
      [java] at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
      [java] at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
      [java] at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:345)
      [java] at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:205)
      [java] at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:69)
      [java] at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:32)
      [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
      [java] at javax.naming.InitialContext.init(InitialContext.java:223)
      [java] at javax.naming.InitialContext.<init>(InitialContext.java:197)
      [java] at com.arjuna.ats.tools.TxTest.main(TxTest.java:64)
      [java] Java Result: 1

              sguilhen Stefan Guilhen
              rhn-engineering-mmusgrov Michael Musgrove
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: