java.lang.NullPointerException in ServiceConfigurator when starting JBoss with -Djboss.platform.mbeanserver

Solution Verified - Updated -

Issue

With "-Djboss.platform.mbeanserver" in JAVA_OPTS,  JBoss has an error on starting up:

ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/var/lib/jbossas/server/default/
deploy/scheduler-service.xml
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
        at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
        at org.jboss.system.ServiceController.install(ServiceController.java:226)
        at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

That service file contains

   <mbean code="org.example.MyClass" name=":service=Something"> 
    ...
  </mbean>

Environment

  • JBoss Enterprise Application Platform (EAP) 4.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.