Tomohisa igarashi created SWITCHYARD-621:
--------------------------------------------
Summary: hornetq-binding quickstart cannot be re-deployed
Key: SWITCHYARD-621
URL:
https://issues.jboss.org/browse/SWITCHYARD-621
Project: SwitchYard
Issue Type: Bug
Components: component-hornetq
Affects Versions: 0.4
Reporter: Tomohisa igarashi
Only the first deployment succeeds and the other trial of deploy will fail if you do it
without stopping AS7.
{quote}
17:11:02,170 INFO [org.jboss.weld] (MSC service thread 1-7) Stopping weld service
17:11:02,191 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) Stopped
deployment switchyard-quickstarts-hornetq-binding.jar in 42ms
17:11:02,194 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting
deployment of "switchyard-quickstarts-hornetq-binding.jar"
17:11:02,221 INFO [org.jboss.weld] (MSC service thread 1-1) Processing CDI deployment:
switchyard-quickstarts-hornetq-binding.jar
17:11:02,236 INFO [org.jboss.weld] (MSC service thread 1-8) Starting Services for CDI
deployment: switchyard-quickstarts-hornetq-binding.jar
17:11:02,240 INFO [org.switchyard] (MSC service thread 1-8) Deploying SwitchYard
application 'switchyard-quickstarts-hornetq-binding.jar'
17:11:02,243 INFO [org.jboss.weld] (MSC service thread 1-8) Starting weld service
17:11:02,307 INFO [org.switchyard] (MSC service thread 1-4) Starting SwitchYard service
17:11:02,407 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed
to start service
jboss.deployment.unit."switchyard-quickstarts-hornetq-binding.jar".SwitchYardService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."switchyard-quickstarts-hornetq-binding.jar".SwitchYardService:
org.switchyard.exception.SwitchYardException:
org.switchyard.exception.SwitchYardException: java.lang.IllegalStateException: Cannot
create session factory, server locator is closed (maybe it has been garbage collected)
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:93)
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: org.switchyard.exception.SwitchYardException:
org.switchyard.exception.SwitchYardException: java.lang.IllegalStateException: Cannot
create session factory, server locator is closed (maybe it has been garbage collected)
at
org.switchyard.component.hornetq.deploy.HornetQActivator.start(HornetQActivator.java:229)
at org.switchyard.deploy.internal.Activation.start(Deployment.java:524)
at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:402)
at org.switchyard.deploy.internal.Deployment.doStart(Deployment.java:135)
at org.switchyard.deploy.internal.AbstractDeployment.start(AbstractDeployment.java:200)
at
org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:105)
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:86)
... 5 more
Caused by: org.switchyard.exception.SwitchYardException: java.lang.IllegalStateException:
Cannot create session factory, server locator is closed (maybe it has been garbage
collected)
at org.switchyard.component.hornetq.deploy.InboundHandler.start(InboundHandler.java:96)
at
org.switchyard.component.hornetq.deploy.HornetQActivator.start(HornetQActivator.java:227)
... 11 more
Caused by: java.lang.IllegalStateException: Cannot create session factory, server locator
is closed (maybe it has been garbage collected)
at
org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:548)
at org.switchyard.component.hornetq.deploy.InboundHandler.start(InboundHandler.java:90)
... 12 more
17:11:02,417 INFO [org.jboss.weld] (MSC service thread 1-7) Stopping weld service
17:11:02,429 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped
deployment switchyard-quickstarts-hornetq-binding.jar in 15ms
17:11:02,431 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) Starting
deployment of "switchyard-quickstarts-hornetq-binding.jar"
17:11:02,431 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015863:
Replacement of deployment "switchyard-quickstarts-hornetq-binding.jar" by
deployment "switchyard-quickstarts-hornetq-binding.jar" was rolled back with
failure message {"JBAS014671: Failed services" =>
{"jboss.deployment.unit.\"switchyard-quickstarts-hornetq-binding.jar\".SwitchYardService"
=> "org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"switchyard-quickstarts-hornetq-binding.jar\".SwitchYardService:
org.switchyard.exception.SwitchYardException:
org.switchyard.exception.SwitchYardException: java.lang.IllegalStateException: Cannot
create session factory, server locator is closed (maybe it has been garbage
collected)"}}
17:11:02,449 INFO [org.jboss.weld] (MSC service thread 1-7) Processing CDI deployment:
switchyard-quickstarts-hornetq-binding.jar
17:11:02,462 INFO [org.jboss.weld] (MSC service thread 1-7) Starting Services for CDI
deployment: switchyard-quickstarts-hornetq-binding.jar
17:11:02,467 INFO [org.switchyard] (MSC service thread 1-7) Deploying SwitchYard
application 'switchyard-quickstarts-hornetq-binding.jar'
17:11:02,470 INFO [org.jboss.weld] (MSC service thread 1-5) Starting weld service
17:11:02,526 INFO [org.switchyard] (MSC service thread 1-4) Starting SwitchYard service
17:11:02,608 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed
to start service
jboss.deployment.unit."switchyard-quickstarts-hornetq-binding.jar".SwitchYardService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."switchyard-quickstarts-hornetq-binding.jar".SwitchYardService:
org.switchyard.exception.SwitchYardException:
org.switchyard.exception.SwitchYardException: java.lang.IllegalStateException: Cannot
create session factory, server locator is closed (maybe it has been garbage collected)
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:93)
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: org.switchyard.exception.SwitchYardException:
org.switchyard.exception.SwitchYardException: java.lang.IllegalStateException: Cannot
create session factory, server locator is closed (maybe it has been garbage collected)
at
org.switchyard.component.hornetq.deploy.HornetQActivator.start(HornetQActivator.java:229)
at org.switchyard.deploy.internal.Activation.start(Deployment.java:524)
at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:402)
at org.switchyard.deploy.internal.Deployment.doStart(Deployment.java:135)
at org.switchyard.deploy.internal.AbstractDeployment.start(AbstractDeployment.java:200)
at
org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:105)
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:86)
... 5 more
Caused by: org.switchyard.exception.SwitchYardException: java.lang.IllegalStateException:
Cannot create session factory, server locator is closed (maybe it has been garbage
collected)
at org.switchyard.component.hornetq.deploy.InboundHandler.start(InboundHandler.java:96)
at
org.switchyard.component.hornetq.deploy.HornetQActivator.start(HornetQActivator.java:227)
... 11 more
Caused by: java.lang.IllegalStateException: Cannot create session factory, server locator
is closed (maybe it has been garbage collected)
at
org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:548)
at org.switchyard.component.hornetq.deploy.InboundHandler.start(InboundHandler.java:90)
... 12 more
17:11:02,613 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774:
Service status report
JBAS014777: Services which failed to start: service
jboss.deployment.unit."switchyard-quickstarts-hornetq-binding.jar".SwitchYardService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."switchyard-quickstarts-hornetq-binding.jar".SwitchYardService:
org.switchyard.exception.SwitchYardException:
org.switchyard.exception.SwitchYardException: java.lang.IllegalStateException: Cannot
create session factory, server locator is closed (maybe it has been garbage collected)
{quote}
--
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