Isuru found the root cause of the error. In the DeploymentInterceptor, I added a method to check whether the Server was in RESTARTING or SHUTTING DOWN state, and if it was so, to ignore the DeploymentInterceptor call. However, that method had been throwing an NPE, but Axis2 had caught Throwable and logged the error at debug level!!! So, the original exception was masked. We got rid of that check and now everything is fine.
BTW, Ruwan, were you able to fix that Axis2 module version CCE in ESB SimpleAxisServer? Azeez On Sat, Oct 9, 2010 at 6:09 PM, Afkham Azeez <[email protected]> wrote: > What is the root cause of this? > > Caused by: > org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException: Resource > does not exist at path > /_system/config/repository/axis2/modules/rampart/1.50-wso2v1 > at > org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:415) > at > org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:500) > at > org.wso2.carbon.core.persistence.ServicePersistenceManager.handleExistingServiceInit(ServicePersistenceManager.java:319) > ... 13 more > [2010-10-09 16:12:57,843] INFO > {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: > org.wso2.carbon.sts - > [2010-10-09 16:12:58,211] INFO > {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: > org.wso2.carbon.tryit - > [2010-10-09 16:12:58,553] INFO > {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 > service: XKMS {super-tenant} > [2010-10-09 16:12:58,731] ERROR > {org.wso2.carbon.core.persistence.AbstractPersistenceManager} - Unable to > handle service initialization. Service: XKMS > org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException: > Resource does not exist at path > /_system/config/repository/axis2/modules/addressing/3.10-SNAPSHOT > at > org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:415) > at > org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:500) > at > org.wso2.carbon.core.persistence.ServicePersistenceManager.handleExistingServiceInit(ServicePersistenceManager.java:319) > at > org.wso2.carbon.core.deployment.DeploymentInterceptor.serviceUpdate(DeploymentInterceptor.java:271) > at > org.apache.axis2.engine.AxisConfiguration.notifyObservers(AxisConfiguration.java:648) > at > org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:402) > at > org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:611) > at > org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.addServices(Axis2ServiceRegistry.java:217) > at > org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:106) > at > org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:92) > at > org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:462) > at > org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:282) > at > org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:117) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) > at > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) > at > org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330) > [2010-10-09 16:12:58,732] ERROR > {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Exception > occurred while handling service update event. {super-tenant} > org.wso2.carbon.CarbonException: Unable to handle service initialization. > Service: XKMS > at > org.wso2.carbon.core.persistence.AbstractPersistenceManager.handleExceptionWithRollback(AbstractPersistenceManager.java:396) > at > org.wso2.carbon.core.persistence.ServicePersistenceManager.handleExistingServiceInit(ServicePersistenceManager.java:516) > at > org.wso2.carbon.core.deployment.DeploymentInterceptor.serviceUpdate(DeploymentInterceptor.java:271) > at > org.apache.axis2.engine.AxisConfiguration.notifyObservers(AxisConfiguration.java:648) > at > org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:402) > at > org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:611) > at > org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.addServices(Axis2ServiceRegistry.java:217) > at > org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:106) > at > org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:92) > at > org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:462) > at > org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:282) > at > org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:117) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) > at > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) > at > org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330) > Caused by: > org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException: Resource > does not exist at path > /_system/config/repository/axis2/modules/addressing/3.10-SNAPSHOT > at > org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:415) > at > org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:500) > at > org.wso2.carbon.core.persistence.ServicePersistenceManager.handleExistingServiceInit(ServicePersistenceManager.java:319) > > > -- > *Afkham Azeez* > Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, > * > * > *Member; Apache Software Foundation; > **http://www.apache.org/*<http://www.apache.org/> > * > email: **[email protected]* <[email protected]>* cell: +94 77 3320919 > blog: **http://blog.afkham.org* <http://blog.afkham.org>* > twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> > * > linked-in: **http://lk.linkedin.com/in/afkhamazeez* > * > * > *Lean . Enterprise . Middleware* > > > -- *Afkham Azeez* Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, * * *Member; Apache Software Foundation; **http://www.apache.org/*<http://www.apache.org/> * email: **[email protected]* <[email protected]>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware*
_______________________________________________ Carbon-dev mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
