JBoss Community

Re: IIOP Subsystem Issues

created by Stefan Guilhen in JBoss AS7 Development - View the full discussion

After rebasing my branch to fix the compilation error seen by David, I've run into a snagging issue: half of the time the AS starts fine, half of the time I get the following error:

 

16:40:20,613 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.iiop.naming-service: org.jboss.msc.service.StartException in service jboss.iiop.naming-service: Failed to start service
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1696) [jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
    at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
Caused by: java.lang.ExceptionInInitializerError
    at org.jacorb.orb.Delegate.getReference(Unknown Source)
    at org.jacorb.orb.ORB.getReference(Unknown Source)
    at org.jacorb.poa.POA.getReference(Unknown Source)
    at org.jacorb.poa.POA.create_reference_with_id(Unknown Source)
    at org.jboss.as.iiop.service.CorbaNamingService.start(CorbaNamingService.java:77)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675) [jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
    ... 3 more
Caused by: org.omg.CORBA.INITIALIZE: Cannot instantiate com.sun.corba.se.impl.javax.rmi.CORBA.StubDelegateImpl
    at javax.rmi.CORBA.Stub.createDelegateIfSpecified(Stub.java:221) [:1.6.0_24]
    at javax.rmi.CORBA.Stub.<clinit>(Stub.java:61) [:1.6.0_24]
    ... 9 more
Caused by: java.lang.ClassNotFoundException: com.sun.corba.se.impl.javax.rmi.CORBA.StubDelegateImpl from [Module "org.jboss.as.standalone:main" from local module loader @48d19bc8 (roots: /home/sguilhen/Workspace/workspace-jboss/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT/modules)] (no security manager: RMI class loader disabled)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375) [:1.6.0_24]
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) [:1.6.0_24]
    at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) [:1.6.0_24]
    at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:202) [:1.6.0_24]
    at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:135) [:1.6.0_24]
    at javax.rmi.CORBA.Stub.loadDelegateClass(Stub.java:242) [:1.6.0_24]
    at javax.rmi.CORBA.Stub.createDelegateIfSpecified(Stub.java:219) [:1.6.0_24]
    ... 10 more

 

When it fails, the javax.rmi.CORBA.Stub is coming from the JDK instead of the javax.rmi.api module. Also, we can see that the org.jboss.as.standalone module is attempting to load the delegate, even though this code run from within the org.jboss.as.iiop module.

 

As I said before, this is not consistent, sometimes I get the error, sometimes the server starts correctly. This wasn't happening before today's rebase, so I'm guessing something changed in the modules project. Any ideas?

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community