It is possible to create a bad Queue
------------------------------------
Key: JBAS-9258
URL:
https://issues.jboss.org/browse/JBAS-9258
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Heiko Rupp
[localhost:9999 messaging] pwd
/profile=default/subsystem=messaging
[localhost:9999 messaging] ./queue=newQ:add(queue-name=newQ)
returns success
[localhost:9999 messaging] ls queue=newQ
[localhost:9999 messaging] :read-children-names(child-type=queue)
{
"outcome" => "success",
"result" => ["newQ"],
"compensating-operation" => undefined
}
Now shut down the domain and try to restart - this fails
[Host Controller] 20:39:42,134 ERROR [org.jboss.as.domain.controller] (MSC service thread
1-4) failed to start domain controller:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse
configuration
[Host Controller] at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:120)
[Host Controller] at
org.jboss.as.domain.controller.DomainControllerService.loadLocalDomainModel(DomainControllerService.java:186)
[Host Controller] at
org.jboss.as.domain.controller.DomainControllerService.startMasterDomainController(DomainControllerService.java:138)
[Host Controller] at
org.jboss.as.domain.controller.DomainControllerService.start(DomainControllerService.java:92)
[Host Controller] at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1344)
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_24]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_24]
[Host Controller] at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
[Host Controller] Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[242,21]
[Host Controller] Message: Missing required attribute(s): address
Respective content in the domain.xml is
<queues>
<queue name="newQ"/>
</queues>
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira