java.lang.Error: org.omg.CORBA.INTERNAL: org.omg.CORBA.INITIALIZE: Incorrect SCM creation order or properties for vbroker.se.iiop_tp.scm.iiop_tp when trying to call EJB in EAP 6
Issue
- We have a standalone Application which is starting a CORBA service and then using ejb-client to call an EJB in JBoss EAP 6.x is failing with the following exception :
* Exception in thread "main" java.lang.Error: org.omg.CORBA.INTERNAL: org.omg.CORBA.INITIALIZE: Incorrect SCM creation order or properties for vbroker.se.iiop_tp.scm.iiop_tp vmcid: 0x0 minor code: 0 completed: No vmcid: 0x0 minor code: 0 completed: No
at com.inprise.j2ee.utils.POAUtils.getRootPoa(POAUtils.java:47)
at com.inprise.ejb.Init.resolve(Init.java:60)
at com.inprise.vbroker.interceptor.InterceptorManagerImpl$ServiceManager.resolve(InterceptorManagerImpl.java:113)
at com.inprise.vbroker.orb.ORB.resolve_initial_references(ORB.java:942)
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:378)
at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:274)
at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:105)
at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:49)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at com.inprise.j2ee.jndi.CtxFactory.getInitialContext(CtxFactory.java:58)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at com.redhat.examples.CorbaTestClient.test(CorbaTestClient.java:25)
The error occurs when the following code is invoked after the CORBA service is started:
Hashtable<String, String> jndiProperties = new Hashtable<String, String>();
jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
Context context = new InitialContext(jndiProperties);
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.