Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7512

EOOR :"Dangling meta character '*' near index 0 " when adding to config.json a pattern matching alias with the "simplest" change .

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • qpid-java-6.0.5
    • qpid-java-6.0.5
    • Broker-J
    • qpid-jms-discovery-0.9.0.jar
      qpid-jms-client-0.9.0.jar
      proton-j-0.12.1.jar

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wuxinyu05 wuxinyu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: