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

Timothy Bish commented on AMQ-3270:
-----------------------------------

At issue here is that the URI you are trying to parse is not a composite URI so 
parsing it results in issues because the parsing logic expects that you are 
supplying it a composite URI.  If you use the URISupport.isCompositeURI method 
it will return false indicating that this is not composite.
                
> URISupport.parseComposite broken for IPV6
> -----------------------------------------
>
>                 Key: AMQ-3270
>                 URL: https://issues.apache.org/jira/browse/AMQ-3270
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>            Reporter: Gary D. Gregory
>
> For example:
> {code:java}
>     @Test
>     public void testParseComposite() throws URISyntaxException {
>         URISupport.parseComposite(new 
> URI("vm://[0:0:0:0:0:0:0:1]?broker.persistent=false"));
>     }
> {code}
> fails with:
> {noformat}
> java.net.URISyntaxException: Illegal character in scheme name at index 0: 
> [0:0:0:0:0:0:0:1]?broker.persistent=false
>       at java.net.URI$Parser.fail(URI.java:2809)
>       at java.net.URI$Parser.checkChars(URI.java:2982)
>       at java.net.URI$Parser.checkChar(URI.java:2992)
>       at java.net.URI$Parser.parse(URI.java:3008)
>       at java.net.URI.<init>(URI.java:578)
>       at 
> org.apache.activemq.util.URISupport.parseComposite(URISupport.java:258)
>       at 
> org.apache.activemq.util.URISupport.parseComposite(URISupport.java:202)
>         ...
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to