[
https://issues.jboss.org/browse/WFLY-11792?page=com.atlassian.jira.plugin...
]
Miroslav Novak commented on WFLY-11792:
---------------------------------------
[~claudio4j] Thanks for reporting the issue.
If I try to add discovery group with jgroups-channel:
{code}
[standalone@localhost:9990 /]
/subsystem=messaging-activemq/server=srv-foo/discovery-group=dg1:add(jgroups-channel=ee)
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@localhost:9990 /]
/subsystem=messaging-activemq/server=srv-foo/pooled-connection-factory=pool1:add(discovery-group=dg1,entries=[foobar])
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
{code}
then it does not fail. However when discovery-group=dg1 is setting socket-binding or there
is no socket-binding/jgroups-channel set then reload is required.
Issue I see that we allow to create discovery-group without setting
socket-binding/jgroups-channel. I can understand that reload is required when
socket-binding is used as it means Artemis must open multicast socket to listen on
incoming multicast however then better message then NPE should be logged when adding PCF
(pooled-connection-factory).
Error creating server pooled-connection-factory
-----------------------------------------------
Key: WFLY-11792
URL:
https://issues.jboss.org/browse/WFLY-11792
Project: WildFly
Issue Type: Bug
Components: JMS
Reporter: Claudio Miranda
Assignee: ehsavoie Hugonnet
Priority: Major
Try to add a pooled-connection-factory, it returns as failure caused by a
NullPointerException.
To reproduce:
{code}
batch
/subsystem=messaging-activemq/server=srv-foo:add
/subsystem=messaging-activemq/server=srv-foo/path=bindings-directory:add(path=byhmzspzrcxq)
/subsystem=messaging-activemq/server=srv-foo/path=journal-directory:add(path=yghaapgbokdd)
/subsystem=messaging-activemq/server=srv-foo/path=large-messages-directory:add(path=qjaagiljbwjh)
/subsystem=messaging-activemq/server=srv-foo/path=paging-directory:add(path=sbxvhqytamqe)
run-batch
/subsystem=messaging-activemq/server=srv-foo/discovery-group=dg1:add
/subsystem=messaging-activemq/server=srv-foo/pooled-connection-factory=pool1:add(discovery-group=dg1,entries=[foobar])
{code}
{code}
19:21:20,772 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001:
Failed to start service
jboss.messaging-activemq.srv-update-wwavjsiodinh.jms.pooled-connection-factory.pool1:
org.jboss.msc.service.StartException in service
jboss.messaging-activemq.srv-update-wwavjsiodinh.jms.pooled-connection-factory.pool1:
WFLYMSGAMQ0028: Failed to create resource adapter
at
org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryService.start(PooledConnectionFactoryService.java:328)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
at
org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at
org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryService.createService(PooledConnectionFactoryService.java:381)
at
org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryService.start(PooledConnectionFactoryService.java:325)
... 8 more
19:21:20,773 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address:
([
("subsystem" => "messaging-activemq"),
("server" => "srv-update-wwavjsiodinh"),
("pooled-connection-factory" => "pool1")
]) - failure description: {"WFLYCTL0080: Failed services" =>
{"jboss.messaging-activemq.srv-update-wwavjsiodinh.jms.pooled-connection-factory.pool1"
=> "WFLYMSGAMQ0028: Failed to create resource adapter
Caused by: java.lang.NullPointerException"}}
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)