[jboss-as7-dev] Implicit dependencies on jmx from webservices

Stuart Douglas stuart.w.douglas at gmail.com
Sat Oct 22 19:13:17 EDT 2011


I have committed a workaround for this upstream, and created a JIRA:

https://issues.jboss.org/browse/AS7-2205

Stuart



On 22/10/2011, at 5:04 AM, Scott Stark wrote:

> If I remove the jmx subsystem from the current JBoss AS 
> 7.1.0.Alpha2-SNAPSHOT build, I see the webservices deployer fail with 
> the following NPE on startup:
> 
> 
> Caused by: java.lang.NullPointerException
>     at 
> org.jboss.as.webservices.deployers.EndpointRecordProcessorDeploymentAspect.<init>(EndpointRecordProcessorDeploymentAspect.java:54)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method) [:1.6.0_26]
>     at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 
> [:1.6.0_26]
>     at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 
> [:1.6.0_26]
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 
> [:1.6.0_26]
>     at java.lang.Class.newInstance0(Class.java:355) [:1.6.0_26]
>     at java.lang.Class.newInstance(Class.java:308) [:1.6.0_26]
>     at 
> org.jboss.as.webservices.parser.WSDeploymentAspectParser.parseDeploymentAspect(WSDeploymentAspectParser.java:140)
>     ... 187 more
> 
> There is an implicit dependency on the jboss.mbean.server service being 
> used on the NPE line:
> 
>         setMbeanServer((MBeanServer) 
> WSServices.getContainerRegistry().getService(ServiceName.JBOSS.append("mbean", 
> "server"))
>                 .getService().getValue());
> 
> Shouldn't this be an externalized dependency declared to the msc via 
> injection?
> 
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20111023/e78a629e/attachment.html 


More information about the jboss-as7-dev mailing list