2 Replies Latest reply on Sep 4, 2012 8:28 AM by Petya K

    org.jboss.as.controller.PathElement$OperationClientIllegalArgumentException when queue address contains spaces

    Petya K Newbie

      Hello,

       

      I have the following problem - I have some JMS queues whose names and addresses contain whitespaces. When creating them there is no problem at all. But when the method queryMBeans() is called on them, the following exception is thrown:

       

      ..... org.jboss.as.controller.PathElement$OperationClientIllegalArgumentException: JBAS014719: Invalid value specification jms.queue.test test

      [Server:server-one]     at org.jboss.as.controller.PathElement.<init>(PathElement.java:91)

      [Server:server-one]     at org.jboss.as.controller.PathElement.pathElement(PathElement.java:70)

      [Server:server-one]     at org.jboss.as.messaging.CoreAddressResource$CoreAddressResourceEntry.<init>(CoreAddressResource.java:132)

      [Server:server-one]     at org.jboss.as.messaging.HornetQServerResource.getChildren(HornetQServerResource.java:156)

      [Server:server-one]     at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:51)

      [Server:server-one]     at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:55)

      [Server:server-one]     at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:55)

      [Server:server-one]     at org.jboss.as.jmx.model.RootResourceIterator.iterate(RootResourceIterator.java:39)

      [Server:server-one]     at org.jboss.as.jmx.model.ModelControllerMBeanHelper.queryMBeans(ModelControllerMBeanHelper.java:112)

      [Server:server-one]     at org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.queryMBeans(ModelControllerMBeanServerPlugin.java:120)

      [Server:server-one]     at org.jboss.as.jmx.PluggableMBeanServerImpl.queryMBeans(PluggableMBeanServerImpl.java:268)

      ...................

       

      I searched but didn't found out any restrictions for the JMS queue names. Is this a bug in HornetQ or do I have to restrict the queue names/addresses not to contain spaces?

       

      Thanks in advance.