com.sun.corba.ee.impl.plugin.hwlb.VirtualAddressAgentImpl

Java.net JIRA | paise_s | 7 years ago
  1. 0

    Scenario: Attempting to setup Glassfish to accept remote EJB calls through a firewall as per documentation http://docs.sun.com/app/docs/doc/820-7695/ghbpc?a=view Problem: When Glassfish accepts the remote call, the following stack trace is logged in server.log, and the call will eventually timeout for the client: [#|2010-02-26T10:29:56.927+0000|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=11;_ThreadName=Thread-1;|Exception while loading the app java.lang.RuntimeException: EJB Container initialization error at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:219) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340) at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:163) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174) at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87) at java.security.AccessController.doPrivileged(Native Method) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60) at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236) at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401) at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) at org.jvnet.hk2.osgimain.Main.start(Main.java:140) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: IIOP Protocol Manager initialization failed. Possible cause is that ORB is not available in this container at com.sun.ejb.containers.BaseContainer.initializeProtocolManager(BaseContainer.java:813) at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:558) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144) at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99) at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207) ... 31 more Caused by: java.lang.RuntimeException: Orb initialization erorr at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:150) at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getProtocolManager(GlassFishORBHelper.java:189) at com.sun.ejb.containers.BaseContainer.initializeProtocolManager(BaseContainer.java:810) ... 36 more Caused by: java.lang.RuntimeException: org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 227 completed: No at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:638) at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:286) at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:83) at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:122) ... 38 more Caused by: org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 227 completed: No at com.sun.corba.ee.impl.logging.ORBUtilSystemException.orbConfiguratorError(ORBUtilSystemException.java:559) at com.sun.corba.ee.impl.logging.ORBUtilSystemException.orbConfiguratorError(ORBUtilSystemException.java:577) at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:581) at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:680) at com.sun.corba.ee.impl.orb.ORBImpl.setParameters(ORBImpl.java:666) at com.sun.corba.ee.spi.osgi.ORBFactory.initialize(ORBFactory.java:91) at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:601) ... 41 more Caused by: org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 254 completed: No at com.sun.corba.ee.impl.logging.ORBUtilSystemException.classActionException(ORBUtilSystemException.java:1323) at com.sun.corba.ee.impl.logging.ORBUtilSystemException.classActionException(ORBUtilSystemException.java:1342) at com.sun.corba.ee.spi.orb.OperationFactory$ClassAction.operate(OperationFactory.java:278) at com.sun.corba.ee.spi.orb.OperationFactory$ComposeAction.operate(OperationFactory.java:490) at com.sun.corba.ee.impl.orb.PrefixParserAction.apply(PrefixParserAction.java:93) at com.sun.corba.ee.spi.orb.PropertyParser.parse(PropertyParser.java:81) at com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:81) at com.sun.corba.ee.impl.orb.ORBConfiguratorImpl.runUserConfigurators(ORBConfiguratorImpl.java:185) at com.sun.corba.ee.impl.orb.ORBConfiguratorImpl.configure(ORBConfiguratorImpl.java:176) at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:579) ... 45 more Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.corba.ee.impl.plugin.hwlb.VirtualAddressAgentImpl at com.sun.corba.ee.spi.orb.ORB$2.evaluate(ORB.java:817) at com.sun.corba.ee.spi.orb.ORB$2.evaluate(ORB.java:812) at com.sun.corba.ee.spi.orb.ORB$3.evaluate(ORB.java:838) at com.sun.corba.ee.spi.orb.ORB$3.evaluate(ORB.java:834) at com.sun.corba.ee.spi.orb.OperationFactory$ClassAction.operate(OperationFactory.java:275) ... 52 more Caused by: java.lang.ClassNotFoundException: com.sun.corba.ee.impl.plugin.hwlb.VirtualAddressAgentImpl at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:736) at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:626) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.sun.corba.ee.spi.orb.ORB$2.evaluate(ORB.java:815) ... 56 more Setup: 1. A new Glassfish V3 installation on Linux (Centos). 2. Client and Server on same machine. 3. Client defines system properties org.omg.CORBA.ORBInitialPort=3700 and org.omg.CORBA.ORBInitialPHost=<ip address> to avoid using the loopback address. 4. System properties set on server using the commands as specified in documentation: asadmin create-jvm-options -Dcom.sun.corba.ee.ORBVAAHost=public-IP-adress asadmin create-jvm-options -Dcom.sun.corba.ee.ORBVAAPort=public-port asadmin create-jvm-options -Dcom.sun.corba.ee.ORBUserConfigurators.com.sun.corba.ee.impl.plugin.hwlb.VirtualAddressAgentImpl=x 5. Server restart applied after setting system properties.

    Java.net JIRA | 7 years ago | paise_s
    com.sun.corba.ee.impl.plugin.hwlb.VirtualAddressAgentImpl

    Root Cause Analysis

    1. com.sun.corba.ee.impl.plugin.hwlb.VirtualAddressAgentImpl

      No message provided

      at com.sun.corba.ee.spi.orb.ORB$2.evaluate()
    2. glassfish-corba-orb
      ORB$3.evaluate
      1. com.sun.corba.ee.spi.orb.ORB$2.evaluate(ORB.java:817)
      2. com.sun.corba.ee.spi.orb.ORB$2.evaluate(ORB.java:812)
      3. com.sun.corba.ee.spi.orb.ORB$3.evaluate(ORB.java:838)
      4. com.sun.corba.ee.spi.orb.ORB$3.evaluate(ORB.java:834)
      4 frames