Bug 1436390 - [GSS](6.4.z) NPE when MBean does not have no-arg constructor
Summary: [GSS](6.4.z) NPE when MBean does not have no-arg constructor
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Server
Version: 6.4.14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.16
Assignee: Radovan STANCEL
QA Contact: Jiří Bílek
eap-docs
URL:
Whiteboard:
Depends On:
Blocks: eap6416-payload
TreeView+ depends on / blocked
 
Reported: 2017-03-27 20:18 UTC by Brad Maxwell
Modified: 2020-05-14 15:50 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-06-22 09:20:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEAP-9922 0 Major Verified [GSS](7.1.0) NPE when MBean does not have no-arg constructor 2017-09-05 05:42:57 UTC
Red Hat Issue Tracker JBEAP-9923 0 Major Verified [GSS](7.0.z) NPE when MBean does not have no-arg constructor 2017-09-05 05:42:57 UTC
Red Hat Issue Tracker WFLY-8458 0 Major Resolved NPE when MBean does not have no-arg constructor 2017-09-05 05:42:57 UTC

Description Brad Maxwell 2017-03-27 20:18:38 UTC
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

Comment 2 Jiří Bílek 2017-06-12 08:23:32 UTC
Verified with EAP 6.4.16.CP.CR1

Comment 3 Petr Penicka 2017-06-22 09:20:14 UTC
Released on June 20 2017 as part of the EAP 6.4.16 maintenance release.


Note You need to log in before you can comment on or make changes to this bug.