[jboss-jira] [JBoss JIRA] Commented: (AS7-1996) Unsuccessfull deployment-scanner:add operation changes runtime state

Dominik Pospisil (JIRA) jira-events at lists.jboss.org
Tue Oct 4 05:00:27 EDT 2011


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

Dominik Pospisil commented on AS7-1996:
---------------------------------------

Step 2 (i guess correctly) results in this runtime exception:

08:40:26,954 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.server.deployment.scanner.testScanner: org.jboss.msc.service.StartException in service jboss.server.deployment.scanner.testScanner: java.lang.IllegalArgumentException: /noexisiting does not exist
        at org.jboss.as.server.deployment.scanner.DeploymentScannerService.start(DeploymentScannerService.java:161)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
        at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
Caused by: java.lang.IllegalArgumentException: /noexisiting does not exist
        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.<init>(FileSystemDeploymentService.java:170)
        at org.jboss.as.server.deployment.scanner.DeploymentScannerService.start(DeploymentScannerService.java:148)


> Unsuccessfull deployment-scanner:add operation changes runtime state
> --------------------------------------------------------------------
>
>                 Key: AS7-1996
>                 URL: https://issues.jboss.org/browse/AS7-1996
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 7.1.0.Alpha1
>            Reporter: Dominik Pospisil
>            Assignee: Brian Stansberry
>
> Steps to reproduce:
> 1) Start standalone server
> 2) Issue:
> /subsystem=deployment-scanner/scanner=testScanner:add(scan-interval=2000,path="/noexisiting")
> where /noexisting is some incorrect path
> 3) Issue:
> /subsystem=deployment-scanner/scanner=testScanner:add(scan-interval=2000,path="/tmp/test")
> where /tmp/test is a valid path
> I think that the expected result would be that the step 2 fails and it does not affect runtime nor configuration model.
> The result of step 3 should be then a success however it is actually a failure:
> 08:45:25,421 ERROR [org.jboss.as.controller] (pool-3-thread-8) Operation ("add") failed - address: ([
>     ("subsystem" => "deployment-scanner"),
>     ("scanner" => "testScanner")
> ]): org.jboss.msc.service.DuplicateServiceException: Service jboss.server.deployment.scanner.testScanner.path is already registered
>         at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
>         at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:226) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
>         at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
>         at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
>         at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2211) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list