[ http://issues.apache.org/jira/browse/GERONIMO-2063?page=comments#action_12425311 ] Ted Kirby commented on GERONIMO-2063: -------------------------------------
If j2ee-corba is not started before magicgball, the start, stop, start of magicball gives: 13:52:45,531 ERROR [IORSecurityInterceptor] Generating IOR org.omg.CORBA.OBJECT_NOT_EXIST: ORB has been destroyed vmcid: IBM minor code: C24 completed: No at com.ibm.rmi.corba.ORB.checkState(ORB.java:4640) at com.ibm.rmi.corba.ORB.checkState(ORB.java:4621) at com.ibm.rmi.corba.ORB.create_any(ORB.java:4081) at org.openejb.corba.security.config.tss.TSSCompoundSecMechListConfig.encodeIOR(TSSCompoundSecMechListConfig.java:105) at org.openejb.corba.security.config.tss.TSSConfig.generateIOR(TSSConfig.java:103) at org.openejb.corba.security.IORSecurityInterceptor.establish_components(IORSecurityInterceptor.java:73) at com.ibm.rmi.pi.InterceptorManager.iterateEstablishComponents(InterceptorManager.java:841) at com.ibm.rmi.IOR.runInterceptors(IOR.java:310) at com.ibm.rmi.IOR.putProfile(IOR.java:492) at com.ibm.rmi.IOR.<init>(IOR.java:247) at com.ibm.rmi.poa.POAImpl.initializeTemplateProfile(POAImpl.java:234) at com.ibm.rmi.poa.POAImpl.create_POA(POAImpl.java:272) at com.ibm.rmi.poa.POAImpl.create_POA(POAImpl.java:593) at org.openejb.corba.TSSBean.doStart(TSSBean.java:154) However, if j2ee-corba is started before magicgball, the start, stop start of magicgball gives: 11:20:55,734 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="geronimo/magicGBall-corba-ssl/1.1/car?EJBModule=magicGball-ejb-1.1.jar,J2EEApplication=geronimo/magicGBall-corba-ssl/1.1/car,j2eeType=CORBATSS,name=SSLClientPassword" org.omg.PortableServer.POAPackage.AdapterAlreadyExists: IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0 at com.sun.corba.se.internal.POA.POAImpl.adapterAlreadyExists(POAImpl.java:1263) at com.sun.corba.se.internal.POA.POAImpl.create_POA(POAImpl.java:211) at com.sun.corba.se.internal.POA.POAImpl.create_POA(POAImpl.java:522) at org.openejb.corba.TSSBean.doStart(TSSBean.java:154) I have a fix that fixes this latter problem, but not the former. :( =================================================================== --- TSSBean.java (revision 3552) +++ TSSBean.java (working copy) @@ -152,6 +152,10 @@ rootPOA.create_implicit_activation_policy(ImplicitActivationPolicyValue.NO_IMPLICIT_ACTIVATION), }; localPOA = rootPOA.create_POA(POAName, rootPOA.the_POAManager(), policies); + + if (log.isDebugEnabled()) { + log.debug("create POA " + POAName + " " + localPOA); + } localPOA.the_POAManager().activate(); @@ -166,11 +170,14 @@ public void doStop() throws Exception { if (localPOA != null) { + /* JIRA 2063 fix? try { localPOA.the_POAManager().deactivate(true, false); } catch (AdapterInactive adapterInactive) { // do nothing - this may have already been deactivated. - } + } */ + if (log.isDebugEnabled()) log.debug("destroying localPOA " + POAName); + localPOA.destroy(true, true); // fix for JIRA-2063? localPOA = null; } if (log.isDebugEnabled()) log.debug("Stopped CORBA Target Security Service in POA " + POAName); @@ -201,6 +208,7 @@ } public void registerContainer(EJBContainer container) throws CORBAException { + if (log.isDebugEnabled()) log.debug(POAName + " - Linking container " + container.getContainerID()); AdapterWrapper adapterWrapper = new AdapterWrapper(container); adapterWrapper.start(server.getORB(), localPOA, initialContext, securityPolicy); > Stopping a TSSbean also stops the orb it's attached to > ------------------------------------------------------ > > Key: GERONIMO-2063 > URL: http://issues.apache.org/jira/browse/GERONIMO-2063 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: CORBA > Affects Versions: 1.1 > Reporter: David Jencks > Priority: Critical > Fix For: 1.1.x > > > While working with the MagicGBall I noticed that you can't stop and start the > application: when you try to start it again you get an exception saying the > orb is shut down. > I deployed the app using the console, the magicGBall ear, and either one of > the plans in magicgball/target/plan. I stopped and tried to start the app > after deployment using the console. > I won't argue much if this gets taken out of 1.1. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira