Petals Sample Clock

Bootstrap MBean not loaded as it should

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.0
  • Fix Version/s: 1.8.1
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    When installing the petals-sample-clock component we get the following stack trace in the logs and the MBean normally associated to bootstrap (provided by the CDK is not loaded, which causes the error on cleanup because the class member is null):

    ample-0 2016/05/25 09:40:32,784 GMT+0200 INFO [Petals.JBI-Management.InstallationService] : A new installer for the component 'petals-sample-clock' is loaded
    sample-0 2016/05/25 09:40:32,787 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock.bootstrap.petals-sample-clock] : Install component [Name : petals-sample-clock, Version : 1.8.0]
    sample-0 2016/05/25 09:40:33,730 GMT+0200 WARNING [Petals.Container.Lifecycle.Installer] : Can't cleanup the installer on install
    com.ebmwebsourcing.easycommons.lang.UncheckedException: This should never happen
        at org.ow2.petals.microkernel.container.lifecycle.util.SeparateIsolatingThread.execute(SeparateIsolatingThread.java:168)
        at org.ow2.petals.microkernel.container.lifecycle.InstallerImpl.bootstrapCleanUp(InstallerImpl.java:826)
        at org.ow2.petals.microkernel.container.lifecycle.InstallerImpl.install(InstallerImpl.java:278)
        at org.ow2.petals.microkernel.api.container.InstallerInterceptorLC1a2eb783.install(InstallerInterceptorLC1a2eb783.java:273)
        at org.ow2.petals.microkernel.api.container.InstallerFcItf.install(InstallerFcItf.java:86)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
        at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
        at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1249)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
        at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1243)
        at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1081)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
        at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.performInstallComponent(InstallDirectoryScanningTask.java:308)
        at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.install(InstallDirectoryScanningTask.java:162)
        at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.run(InstallDirectoryScanningTask.java:123)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
    Caused by: java.util.concurrent.ExecutionException: javax.management.RuntimeOperationsException: Object name cannot be null
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:202)
        at org.ow2.petals.microkernel.container.lifecycle.util.SeparateIsolatingThread.execute(SeparateIsolatingThread.java:157)
        ... 25 more
    Caused by: javax.management.RuntimeOperationsException: Object name cannot be null
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:569)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:638)
        at org.ow2.petals.component.framework.DefaultBootstrap.cleanUp(DefaultBootstrap.java:136)
        at org.ow2.petals.microkernel.container.lifecycle.InstallerImpl$2.call(InstallerImpl.java:829)
        at org.ow2.petals.microkernel.container.lifecycle.util.SeparateIsolatingThread$2.call(SeparateIsolatingThread.java:144)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.IllegalArgumentException: Object name cannot be null
        ... 9 more
    sample-0 2016/05/25 09:40:33,759 GMT+0200 INFO [Petals.Container.Lifecycle.Installer] : Component 'petals-sample-clock' installed
    sample-0 2016/05/25 09:40:33,762 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : Init component...
    sample-0 2016/05/25 09:40:34,728 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : init Clock service
    sample-0 2016/05/25 09:40:35,334 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : Component initialized
    sample-0 2016/05/25 09:40:35,336 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : Start component...
    sample-0 2016/05/25 09:40:35,350 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : start Clock service
    sample-0 2016/05/25 09:40:35,362 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : Component started
    Show
    When installing the petals-sample-clock component we get the following stack trace in the logs and the MBean normally associated to bootstrap (provided by the CDK is not loaded, which causes the error on cleanup because the class member is null):
    ample-0 2016/05/25 09:40:32,784 GMT+0200 INFO [Petals.JBI-Management.InstallationService] : A new installer for the component 'petals-sample-clock' is loaded
    sample-0 2016/05/25 09:40:32,787 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock.bootstrap.petals-sample-clock] : Install component [Name : petals-sample-clock, Version : 1.8.0]
    sample-0 2016/05/25 09:40:33,730 GMT+0200 WARNING [Petals.Container.Lifecycle.Installer] : Can't cleanup the installer on install
    com.ebmwebsourcing.easycommons.lang.UncheckedException: This should never happen
        at org.ow2.petals.microkernel.container.lifecycle.util.SeparateIsolatingThread.execute(SeparateIsolatingThread.java:168)
        at org.ow2.petals.microkernel.container.lifecycle.InstallerImpl.bootstrapCleanUp(InstallerImpl.java:826)
        at org.ow2.petals.microkernel.container.lifecycle.InstallerImpl.install(InstallerImpl.java:278)
        at org.ow2.petals.microkernel.api.container.InstallerInterceptorLC1a2eb783.install(InstallerInterceptorLC1a2eb783.java:273)
        at org.ow2.petals.microkernel.api.container.InstallerFcItf.install(InstallerFcItf.java:86)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
        at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
        at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1249)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
        at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1243)
        at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1081)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
        at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.performInstallComponent(InstallDirectoryScanningTask.java:308)
        at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.install(InstallDirectoryScanningTask.java:162)
        at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.run(InstallDirectoryScanningTask.java:123)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
    Caused by: java.util.concurrent.ExecutionException: javax.management.RuntimeOperationsException: Object name cannot be null
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:202)
        at org.ow2.petals.microkernel.container.lifecycle.util.SeparateIsolatingThread.execute(SeparateIsolatingThread.java:157)
        ... 25 more
    Caused by: javax.management.RuntimeOperationsException: Object name cannot be null
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:569)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:638)
        at org.ow2.petals.component.framework.DefaultBootstrap.cleanUp(DefaultBootstrap.java:136)
        at org.ow2.petals.microkernel.container.lifecycle.InstallerImpl$2.call(InstallerImpl.java:829)
        at org.ow2.petals.microkernel.container.lifecycle.util.SeparateIsolatingThread$2.call(SeparateIsolatingThread.java:144)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.IllegalArgumentException: Object name cannot be null
        ... 9 more
    sample-0 2016/05/25 09:40:33,759 GMT+0200 INFO [Petals.Container.Lifecycle.Installer] : Component 'petals-sample-clock' installed
    sample-0 2016/05/25 09:40:33,762 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : Init component...
    sample-0 2016/05/25 09:40:34,728 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : init Clock service
    sample-0 2016/05/25 09:40:35,334 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : Component initialized
    sample-0 2016/05/25 09:40:35,336 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : Start component...
    sample-0 2016/05/25 09:40:35,350 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : start Clock service
    sample-0 2016/05/25 09:40:35,362 GMT+0200 INFO [Petals.Container.Components.petals-sample-clock] : Component started
  • Environment:
    Petals 5.0.0-RC-1

People

Dates

  • Created:
    Thu, 26 May 2016 - 10:29:02 +0200
    Updated:
    Thu, 26 May 2016 - 11:18:25 +0200
    Resolved:
    Thu, 26 May 2016 - 10:30:44 +0200