You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "wuxinyu (JIRA)" <ji...@apache.org> on 2016/11/15 06:14:58 UTC

[jira] [Created] (QPID-7512) EOOR :"Dangling meta character '*' near index 0 " when adding to config.json a pattern matching alias with the "simplest" change .

wuxinyu created QPID-7512:
-----------------------------

             Summary: EOOR :"Dangling meta character '*' near index 0 " when adding to config.json a pattern matching alias  with the "simplest" change .
                 Key: QPID-7512
                 URL: https://issues.apache.org/jira/browse/QPID-7512
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: qpid-java-6.0.5
         Environment: qpid-jms-discovery-0.9.0.jar
qpid-jms-client-0.9.0.jar
proton-j-0.12.1.jar
            Reporter: wuxinyu
             Fix For: qpid-java-6.0.5


 I added to qpid config.json a pattern matching alias so that any request to connect to a host for the mapped port/address also matches. With the "simplest" change ,it will simply match all provided host names to the default virtual host. 
The  port section in config.json is as follows:
"ports" : [ {
    "id" : "0425f08c-0b3d-4e3e-8560-82eb6d458099",
    "name" : "AMQP",
    "port" : "${qpid.amqp_port}",
    "authenticationProvider" : "passwordFile",
    "virtualhostaliases" : [ {
      "id" : "19cfbe00-bc19-4043-85e5-2db15b689fc6",
      "name" : "defaultAlias",
      "type" : "defaultAlias"
    }, {
      "id" : "a9aa5b74-b678-4571-a170-66078b08ea01",
      "name" : "hostnameAlias",
      "type" : "hostnameAlias"
    }, {
      "id" : "4a39dc5a-d97b-4467-afd4-7a4f9f6c18d9",
      "name" : "nameAlias",
      "type" : "nameAlias"
    }, {
      "name" : "patternAlias",
      "type" : "patternMatchingAlias",
      "pattern" : "*"
    }  ]
  }, {
    "id" : "c8451811-143d-47c9-8a86-5e939c506dbc",
    "name" : "HTTP",
    "port" : "${qpid.http_port}",
    "authenticationProvider" : "passwordFile",
    "protocols" : [ "HTTP" ]
  } ],

But when cilent connected ,the error occurred like this:
Caught exception, exiting.
javax.jms.JMSException: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*
^ [condition = amqp:connection:forced]
	at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:148)
	at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:103)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org