[ 
https://issues.apache.org/jira/browse/QPID-7512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15666266#comment-15666266
 ] 

Rob Godfrey edited comment on QPID-7512 at 11/15/16 6:31 AM:
-------------------------------------------------------------

Sorry - that was a typo on my part... the pattern syntax is a Java Regex, so 
that should have read {noformat}".*"{noformat} not {noformat}"*"{noformat}

As an aside, it would be better if you mailed the [users mailing 
list|mailto:us...@qpid.apache.org] (alternatively you can use 
[Nabble|http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html] to 
post to the list) rather than raising JIRAs when you encounter issues like 
this.  If it turns out there is a genuine bug, the by all means raise a JIRA - 
but mailing the list is more likely to get you a rapid response.


was (Author: rgodfrey):
Sorry - that was a typo on my part... the pattern syntax is a Java Regex, so 
that should have read ".*" not "*".

As an aside, it would be better if you mailed the [users mailing 
list|mailto:us...@qpid.apache.org] (alternatively you can use 
[Nabble|http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html] to 
post to the list) rather than raising JIRAs when you encounter issues like 
this.  If it turns out there is a genuine bug, the by all means raise a JIRA - 
but mailing the list is more likely to get you a rapid response.

> 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
>              Labels: performance
>             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-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to