glassfish
  1. glassfish
  2. GLASSFISH-18017

not able to deploy ejb application if -XX:+AggressiveOpts is set in server jvm parameters

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.2_b14
    • Fix Version/s: None
    • Component/s: OSGi
    • Labels:
      None

      Description

      not able to deploy ejb application if -XX:+AggressiveOpts is set in server jvm parameters

        Activity

        Hide
        Hong Zhang added a comment -

        Can you more details of the problem? What's in your server.log? And how to reproduce the problem?

        Show
        Hong Zhang added a comment - Can you more details of the problem? What's in your server.log? And how to reproduce the problem?
        Hide
        rahulmeshram added a comment -

        very sorry for my very short error description...
        here are full details...

        Environment:
        OS: Red Hat Enterprise Linux Server release 5.6 x86_64
        JAVA: 1.6.0_30 64-Bit
        GF: 3.1.2_b14

        My Application is using JSF and EJB and Primefaces Library.

        and if i deploy my ear file with -XX:+AggressiveOpts .. i get following error

        Error occurred during deployment: Exception while loading the app : EJB Container initialization error. Please see server.log for more details.

        and in my server.log
        ---------------------------------------------
        [#|2011-12-16T10:28:24.506+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=26;_ThreadName=Thread-2;|Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method
        java.lang.RuntimeException: EJB Container initialization error
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:242)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:299)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:105)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:264)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
        at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
        at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)
        at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
        at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
        at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
        at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
        at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
        at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
        at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:150)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
        at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:662)
        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:827)
        at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:569)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:149)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:105)
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:230)
        ... 55 more
        Caused by: com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [153] State [RESOLVED] [glassfish-corba-orb(glassfish-corba-orb):3.1.0.b032]
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177)
        at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:572)
        at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:263)
        at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:93)
        at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:152)
        at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getProtocolManager(GlassFishORBHelper.java:219)
        at com.sun.ejb.containers.BaseContainer.initializeProtocolManager(BaseContainer.java:824)
        ... 60 more
        Caused by: org.osgi.framework.BundleException: Activator start error in bundle glassfish-corba-orb [153].
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2027)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169)
        ... 66 more
        Caused by: java.lang.UnsupportedOperationException
        at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:726)
        at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:458)
        at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1480)
        at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:327)
        at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:309)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.secureGetHeaders(OSGIListener.java:101)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.insertClasses(OSGIListener.java:337)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.start(OSGIListener.java:446)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        ... 69 more

        #]

        [#|2011-12-16T10:28:24.509+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=26;_ThreadName=Thread-2;|Exception while loading the app|#]

        [#|2011-12-16T10:28:24.515+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=26;_ThreadName=Thread-2;|Exception while loading the app : EJB Container initialization error
        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:827)
        at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:569)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:149)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:105)
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:230)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:299)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:105)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:264)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
        at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
        at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)
        at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
        at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
        at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
        at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
        at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
        at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
        at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:150)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
        at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:662)
        Caused by: com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [153] State [RESOLVED] [glassfish-corba-orb(glassfish-corba-orb):3.1.0.b032]
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177)
        at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:572)
        at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:263)
        at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:93)
        at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:152)
        at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getProtocolManager(GlassFishORBHelper.java:219)
        at com.sun.ejb.containers.BaseContainer.initializeProtocolManager(BaseContainer.java:824)
        ... 60 more
        Caused by: org.osgi.framework.BundleException: Activator start error in bundle glassfish-corba-orb [153].
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2027)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169)
        ... 66 more
        Caused by: java.lang.UnsupportedOperationException
        at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:726)
        at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:458)
        at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1480)
        at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:327)
        at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:309)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.secureGetHeaders(OSGIListener.java:101)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.insertClasses(OSGIListener.java:337)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.start(OSGIListener.java:446)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        ... 69 more

        #]

        [#|2011-12-16T10:28:24.715+0530|INFO|glassfish3.1.2|org.glassfish.admingui|_ThreadID=25;_ThreadName=Thread-2;|Exception Occurred :Error occurred during deployment: Exception while loading the app : EJB Container initialization error. Please see server.log for more details. |#]

        Show
        rahulmeshram added a comment - very sorry for my very short error description... here are full details... Environment: OS: Red Hat Enterprise Linux Server release 5.6 x86_64 JAVA: 1.6.0_30 64-Bit GF: 3.1.2_b14 My Application is using JSF and EJB and Primefaces Library. and if i deploy my ear file with -XX:+AggressiveOpts .. i get following error Error occurred during deployment: Exception while loading the app : EJB Container initialization error. Please see server.log for more details. and in my server.log --------------------------------------------- [#|2011-12-16T10:28:24.506+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=26;_ThreadName=Thread-2;|Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method java.lang.RuntimeException: EJB Container initialization error at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:242) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:299) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:105) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:264) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214) at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207) at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182) at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:150) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) 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:827) at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:569) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:149) at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:105) at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:230) ... 55 more Caused by: com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [153] State [RESOLVED] [glassfish-corba-orb(glassfish-corba-orb):3.1.0.b032] at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177) at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:572) at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:263) at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:93) at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:152) at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getProtocolManager(GlassFishORBHelper.java:219) at com.sun.ejb.containers.BaseContainer.initializeProtocolManager(BaseContainer.java:824) ... 60 more Caused by: org.osgi.framework.BundleException: Activator start error in bundle glassfish-corba-orb [153] . at org.apache.felix.framework.Felix.activateBundle(Felix.java:2027) at org.apache.felix.framework.Felix.startBundle(Felix.java:1895) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944) at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169) ... 66 more Caused by: java.lang.UnsupportedOperationException at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:726) at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:458) at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1480) at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:327) at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:309) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.secureGetHeaders(OSGIListener.java:101) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.insertClasses(OSGIListener.java:337) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.start(OSGIListener.java:446) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977) ... 69 more #] [#|2011-12-16T10:28:24.509+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=26;_ThreadName=Thread-2;|Exception while loading the app|#] [#|2011-12-16T10:28:24.515+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=26;_ThreadName=Thread-2;|Exception while loading the app : EJB Container initialization error 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:827) at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:569) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:149) at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:105) at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:230) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:299) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:105) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:264) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214) at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207) at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182) at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:150) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) Caused by: com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [153] State [RESOLVED] [glassfish-corba-orb(glassfish-corba-orb):3.1.0.b032] at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177) at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:572) at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:263) at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:93) at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:152) at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getProtocolManager(GlassFishORBHelper.java:219) at com.sun.ejb.containers.BaseContainer.initializeProtocolManager(BaseContainer.java:824) ... 60 more Caused by: org.osgi.framework.BundleException: Activator start error in bundle glassfish-corba-orb [153] . at org.apache.felix.framework.Felix.activateBundle(Felix.java:2027) at org.apache.felix.framework.Felix.startBundle(Felix.java:1895) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944) at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169) ... 66 more Caused by: java.lang.UnsupportedOperationException at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:726) at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:458) at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1480) at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:327) at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:309) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.secureGetHeaders(OSGIListener.java:101) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.insertClasses(OSGIListener.java:337) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.start(OSGIListener.java:446) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977) ... 69 more #] [#|2011-12-16T10:28:24.715+0530|INFO|glassfish3.1.2|org.glassfish.admingui|_ThreadID=25;_ThreadName=Thread-2;|Exception Occurred :Error occurred during deployment: Exception while loading the app : EJB Container initialization error. Please see server.log for more details. |#]
        Hide
        Hong Zhang added a comment -

        assign to ejb team for initial evaluation

        Show
        Hong Zhang added a comment - assign to ejb team for initial evaluation
        Hide
        marina vatkina added a comment -

        The error is in orb bundle activation: Activator start error in bundle glassfish-corba-orb

        Show
        marina vatkina added a comment - The error is in orb bundle activation: Activator start error in bundle glassfish-corba-orb
        Hide
        Harshad Vilekar added a comment -

        The server startup is not clean. Based upon the stack trace, reassigning to OSGI-JavaEE for analysis. The log says:
        -----------------
        [#|2011-12-16T10:26:57.074+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=19;_ThreadName=Thread-2;|java.lang.UnsupportedOperationException
        at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:726)
        at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:458)
        at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1480)
        at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:327)
        at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:309)
        at org.glassfish.osgijavaeebase.OSGiContainer.isLazy(OSGiContainer.java:234)
        at org.glassfish.osgijavaeebase.OSGiContainer.isReady(OSGiContainer.java:227)
        at org.glassfish.osgijavaeebase.OSGiContainer$DeployerAddedThread.run(OSGiContainer.java:303)
        -----------------

        Show
        Harshad Vilekar added a comment - The server startup is not clean. Based upon the stack trace, reassigning to OSGI-JavaEE for analysis. The log says: ----------------- [#|2011-12-16T10:26:57.074+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=19;_ThreadName=Thread-2;|java.lang.UnsupportedOperationException at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:726) at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:458) at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1480) at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:327) at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:309) at org.glassfish.osgijavaeebase.OSGiContainer.isLazy(OSGiContainer.java:234) at org.glassfish.osgijavaeebase.OSGiContainer.isReady(OSGiContainer.java:227) at org.glassfish.osgijavaeebase.OSGiContainer$DeployerAddedThread.run(OSGiContainer.java:303) -----------------
        Hide
        Sanjeeb Sahoo added a comment -

        I am surprised that nobody but Hong so far has asked for the steps to reproduce the bug. Attach a test case ASAP.

        Show
        Sanjeeb Sahoo added a comment - I am surprised that nobody but Hong so far has asked for the steps to reproduce the bug. Attach a test case ASAP.
        Hide
        Sanjeeb Sahoo added a comment -

        Looking at the following stacktrace:

        Caused by: java.lang.UnsupportedOperationException
        at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:726)
        at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:458)
        at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1480)
        at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:327)
        at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:309)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.secureGetHeaders(OSGIListener.java:101)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.insertClasses(OSGIListener.java:337)
        at com.sun.corba.ee.impl.osgi.loader.OSGIListener.start(OSGIListener.java:446)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        ... 69 more

        I suspect a bug in JRE, as Felix class StringMap does a deep copy of the supplied map by calling java.util.TreeMap.put(), so there must be some optimization going on inside TreeMap that returns a readonly view. The javadocs clearly says that one can call Map.Entry.setValue() on a entry obtained via Map.entrySet(). Not much can be done unless there is a way to reproduce this.

        Show
        Sanjeeb Sahoo added a comment - Looking at the following stacktrace: Caused by: java.lang.UnsupportedOperationException at java.util.AbstractMap$SimpleImmutableEntry.setValue(AbstractMap.java:726) at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:458) at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1480) at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:327) at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:309) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.secureGetHeaders(OSGIListener.java:101) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.insertClasses(OSGIListener.java:337) at com.sun.corba.ee.impl.osgi.loader.OSGIListener.start(OSGIListener.java:446) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977) ... 69 more I suspect a bug in JRE, as Felix class StringMap does a deep copy of the supplied map by calling java.util.TreeMap.put(), so there must be some optimization going on inside TreeMap that returns a readonly view. The javadocs clearly says that one can call Map.Entry.setValue() on a entry obtained via Map.entrySet(). Not much can be done unless there is a way to reproduce this.
        Hide
        Sanjeeb Sahoo added a comment -

        Pl. supply a test case before reopening.

        Show
        Sanjeeb Sahoo added a comment - Pl. supply a test case before reopening.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            rahulmeshram
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: