[jboss-dev] Integration of naming deployers failed
Ales Justin
ales.justin at gmail.com
Wed Jan 13 11:52:10 EST 2010
This is caused by the check we do for uninstall of potential on_demand
beans that are not needed anymore.
Kabir, can you have a look?
Atm I ignore null parent, which will make this error go away,
but that just hides the problem.
Carlo de Wolf wrote:
> The NPE comes from the fact that the scoped MC bean has a dependency.
> The PreInstallAction does a clean hierarchy on uninstall, after which
> the AbstractController.uninstall tries to uninstall unused dependencies.
> So it goes to look for that dependency within the scoped controller,
> which has just been nuked.
>
> Carlo
>
> On 01/13/2010 11:23 AM, Ales Justin wrote:
>> This is something for Carlo to fix.
>>
>> As he's using the kernel scoping api in the wrong way.
>> Not that that's hard to do, and with Carlo's history wrt MC api,
>> I guess it took him a split second to do it wrong. :-)
>>
>> Brian Stansberry wrote:
>>
>>> On shutdown you get a bunch of this stuff:
>>>
>>> 16:20:23,648 WARN [ScopedKernelController] Error uninstalling from
>>> PreInstall: name=jboss.naming:module=jmx-console aliases=[java:module]
>>> state=Not Installed: java.lang.NullPointerException
>>> at
>>> org.jboss.kernel.plugins.dependency.ScopedKernelController.getContext(ScopedKernelController.java:143)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstallUnusedOnDemandContexts(AbstractController.java:1503)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1463)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1357)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:704)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:732)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:617)
>>> at
>>> org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.undeploy(BeanMetaDataDeployer.java:228)
>>> at
>>> org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.undeploy(BeanMetaDataDeployer.java:58)
>>> at
>>> org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalUndeploy(AbstractSimpleRealDeployer.java:69)
>>> at
>>> org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:117)
>>> at
>>> org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:204)
>>> at
>>> org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1690)
>>> at
>>> org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1597)
>>> at
>>> org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1590)
>>> at
>>> org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1552)
>>> at
>>> org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:384)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1890)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1456)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:892)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:602)
>>> at
>>> org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:811)
>>> at
>>> org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:654)
>>> at
>>> org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
>>> at
>>> org.jboss.system.server.profileservice.repository.ProfileDeployAction.uninstall(ProfileDeployAction.java:95)
>>> at
>>> org.jboss.system.server.profileservice.repository.AbstractProfileAction.uninstall(AbstractProfileAction.java:70)
>>> at
>>> org.jboss.system.server.profileservice.repository.AbstractProfileService.uninstall(AbstractProfileService.java:417)
>>> at
>>> org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:384)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1890)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1456)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1357)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstallUnusedOnDemandContexts(AbstractController.java:1540)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1463)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:892)
>>> at
>>> org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:602)
>>> at
>>> org.jboss.system.server.profileservice.repository.AbstractProfileService.deactivateProfile(AbstractProfileService.java:448)
>>> at
>>> org.jboss.system.server.profileservice.ProfileServiceBootstrap.shutdown(ProfileServiceBootstrap.java:326)
>>> at
>>> org.jboss.system.server.profileservice.ProfileServiceBootstrap.shutdown(ProfileServiceBootstrap.java:100)
>>> at
>>> org.jboss.bootstrap.impl.base.server.AbstractServer.shutdownBootstraps(AbstractServer.java:892)
>>> at
>>> org.jboss.bootstrap.impl.base.server.AbstractServer.shutdown(AbstractServer.java:309)
>>> at org.jboss.Main$ShutdownHook$1.run(Main.java:893)
>>>
>>> On 01/12/2010 10:12 AM, Carlo de Wolf wrote:
>>>
>>>> New jboss-reloaded-naming-deployers is in. Let's see what that gives.
>>>>
>>>> Carlo
>>>>
>>>> On 01/12/2010 03:02 PM, Carlo de Wolf wrote:
>>>>
>>>>> Hmm, BeanMetaDataDeployer.undeploy doesn't take scoping into account
>>>>> and will undeploy a 'random' context.
>>>>>
>>>>> Carlo
>>>>>
>>>>>
>>>> _______________________________________________
>>>> jboss-development mailing list
>>>> jboss-development at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>>>
>>>
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
>
More information about the jboss-development
mailing list