NPE when MBean does not have no-arg constructor, it should log an error message indicating the issue rather than NPE 15:16:54,438 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."jboss-helloworld-dynamicmbean-helloworld-mbean-service.sar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jboss-helloworld-dynamicmbean-helloworld-mbean-service.sar".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "jboss-helloworld-dynamicmbean-helloworld-mbean-service.sar" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.5.13.Final-redhat-2.jar:7.5.13.Final-redhat-2] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.6.Final-redhat-1.jar:1.1.6.Final-redhat-1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.6.Final-redhat-1.jar:1.1.6.Final-redhat-1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_102] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_102] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_102] Caused by: java.lang.IllegalArgumentException: JBAS017221: Class not instantiated at org.jboss.as.service.ReflectionUtils.newInstance(ReflectionUtils.java:132) at org.jboss.as.service.ParsedServiceDeploymentProcessor.newInstance(ParsedServiceDeploymentProcessor.java:254) at org.jboss.as.service.ParsedServiceDeploymentProcessor.addServices(ParsedServiceDeploymentProcessor.java:113) at org.jboss.as.service.ParsedServiceDeploymentProcessor.deploy(ParsedServiceDeploymentProcessor.java:103) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.5.13.Final-redhat-2.jar:7.5.13.Final-redhat-2] ... 5 more Caused by: java.lang.NullPointerException at org.jboss.as.service.ReflectionUtils.newInstance(ReflectionUtils.java:130) ... 9 more
6.4.x PR: https://github.com/jbossas/jboss-eap/pull/2965 7.0 issue: https://issues.jboss.org/browse/JBEAP-9923 7.0 PR: https://github.com/jbossas/jboss-eap7/pull/1603 7.1.0 issue: https://issues.jboss.org/browse/JBEAP-9922 7.x PRs: https://github.com/jbossas/jboss-eap7/pull/1586 https://github.com/jbossas/jboss-eap7/pull/1593 upstream issue: https://issues.jboss.org/browse/WFLY-8458 upstream PR: https://github.com/wildfly/wildfly/pull/9860
Verified with EAP 6.4.16.CP.CR1
Released on June 20 2017 as part of the EAP 6.4.16 maintenance release.