W2R-DS opened a new issue, #1901:
URL: https://github.com/apache/activemq/issues/1901
This concerns Apache.NMS or Apache.NMS.ActiveMQ but issues are not enabled
for those repos, there is no dedicated project to create a JIRA account, and
mailing list discussion suggests to make issues here.
Failover URIs with query arguments in the failover portion throw an
exception in `URISupport.ParseQuery`. This occurs using the following:
`var uri =
URISupport.CreateCompatibleUri("failover:(ssl://broker-0.example.com:61617?keepAlive=true,ssl://broker-1.example.com:61617?keepAlive=true)");`
`var parsed = URISupport.ParseQuery(uri.Query);`
> Apache.NMS.NMSException
HResult=0x80131500
Message=Invalid Uri parameter:
keepAlive=true,ssl://broker-1.example.com:61617?keepAlive=true)
Source=Apache.NMS
StackTrace:
at Apache.NMS.Util.URISupport.ParseQuery(String query)
at ActiveMQFailoverTest.Program.Main(String[] args) in ...:line 11
If `URISupport.ParseQuery` is not intended to be used in this simpified
example, this issue occurs with the following trace in conjunction with
Apache.NMS.ActiveMQ:
> Stack Trace:
at Apache.NMS.Util.URISupport.ParseQuery(String query)
at
Apache.NMS.ActiveMQ.Transport.Tcp.TcpTransportFactory.CompositeConnect(Uri
location)
at
Apache.NMS.ActiveMQ.Transport.Tcp.TcpTransportFactory.CreateTransport(Uri
location)
Digging deeper, the Uri object is not parsing this failover URI very well.
This does not look avoidable due to arguments in Apache.NMS.ActiveMQ accepting
string representations of URIs convert them into Uri objects fairly quickly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact