[jboss-jira] [JBoss JIRA] (AS7-2607) NPE on JAXRBootstrapService stop when shutting down container

Kurt Stam (Commented) (JIRA) jira-events at lists.jboss.org
Mon Nov 14 10:11:40 EST 2011


    [ https://issues.jboss.org/browse/AS7-2607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642555#comment-12642555 ] 

Kurt Stam commented on AS7-2607:
--------------------------------

Thanks Stuart, do you have an example or know of some documentation where I can learn more about setting the dependencies through the MSC? I'm pretty sure the datasource shuts down too soon at the moment.
                
> NPE on JAXRBootstrapService stop when shutting down container
> -------------------------------------------------------------
>
>                 Key: AS7-2607
>                 URL: https://issues.jboss.org/browse/AS7-2607
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JAXR
>            Reporter: Stuart Douglas
>            Assignee: Kurt Stam
>
> 09:26:58,153 ERROR [org.jboss.as.jaxr.service.JAXRBootstrapService] Cannot unbind JAXR ConnectionFactory: java.lang.NullPointerException
> 	at org.jboss.as.jaxr.service.JAXRBootstrapService.unBindJAXRConnectionFactory(JAXRBootstrapService.java:248) [jboss-as-jaxr-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.as.jaxr.service.JAXRBootstrapService.stop(JAXRBootstrapService.java:131) [jboss-as-jaxr-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1909) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> 	at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1872) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
> 	at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
> This occurs because the service is managing dependencies manually, instead of allowing MSC to do it. Instead of adding the service in start and removing in stop, it looks like the binding service should be created at the same time with a dependency on the JAXRBootstrapService to prevent it starting to soon.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list