[
https://issues.apache.org/jira/browse/QPID-7275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15296243#comment-15296243
]
Steven commented on QPID-7275:
------------------------------
Hello,Robbie Gemmell (use the latest amqp-1.0 api)
I have a question,I want to use SSL to connect to broker,All the certificate
has been generated,
According to the
documentation:https://qpid.apache.org/releases/qpid-jms-0.9.0/docs/
the connection url is below:
connectionfactory.qpidConnectionfactory =
amqps://192.168.82.57:5673?transport.trustStoreLocation=F:\\AMQP\\QpidSSL\\clientts.jks&transport.trustStorePassword=123456
report the following error:
javax.naming.NamingException: Exception while creating ConnectionFactory
'qpidConnectionfactory'. [Root exception is java.lang.IllegalArgumentException:
Invalid remote URI:
amqps://192.168.82.57:5673?jms.transport.trustStoreLocation=F:\AMQP\QpidSSL\clientts.jks&jms.transport.trustStorePassword=123456]
at
org.apache.qpid.jms.jndi.JmsInitialContextFactory.createConnectionFactories(JmsInitialContextFactory.java:151)
at
org.apache.qpid.jms.jndi.JmsInitialContextFactory.getInitialContext(JmsInitialContextFactory.java:114)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at org.apache.qpid.jms.example.HelloWorld.getContext(HelloWorld.java:55)
at org.apache.qpid.jms.example.HelloWorld.test(HelloWorld.java:84)
at org.apache.qpid.jms.example.HelloWorld.main(HelloWorld.java:73)
Caused by: java.lang.IllegalArgumentException: Invalid remote URI:
amqps://192.168.82.57:5673?jms.transport.trustStoreLocation=F:\AMQP\QpidSSL\clientts.jks&jms.transport.trustStorePassword=123456
at
org.apache.qpid.jms.JmsConnectionFactory.createURI(JmsConnectionFactory.java:244)
at
org.apache.qpid.jms.JmsConnectionFactory.setRemoteURI(JmsConnectionFactory.java:284)
at
org.apache.qpid.jms.JmsConnectionFactory.buildFromProperties(JmsConnectionFactory.java:126)
at
org.apache.qpid.jms.jndi.JNDIStorable.setProperties(JNDIStorable.java:64)
at
org.apache.qpid.jms.jndi.JmsInitialContextFactory.createConnectionFactory(JmsInitialContextFactory.java:282)
at
org.apache.qpid.jms.jndi.JmsInitialContextFactory.createConnectionFactory(JmsInitialContextFactory.java:186)
at
org.apache.qpid.jms.jndi.JmsInitialContextFactory.createConnectionFactories(JmsInitialContextFactory.java:149)
... 8 more
Caused by: java.net.URISyntaxException: Illegal character in query at index 62:
amqps://192.168.82.57:5673?jms.transport.trustStoreLocation=F:\AMQP\QpidSSL\clientts.jks&jms.transport.trustStorePassword=123456
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at
org.apache.qpid.jms.JmsConnectionFactory.createURI(JmsConnectionFactory.java:242)
... 14 more
Caught exception, exiting.
> connection.setExceptionListener() method cannot be invoked for Qpid
> -------------------------------------------------------------------
>
> Key: QPID-7275
> URL: https://issues.apache.org/jira/browse/QPID-7275
> Project: Qpid
> Issue Type: Bug
> Components: JMS AMQP 1.0 Client
> Affects Versions: 0.32
> Environment: Window7,jdk7
> Reporter: Steven
>
> I want to implement Re-connection functionality for AMQP 1.0,as We all know
> that AMQP 1.0 protocol 's connection URL didn't support "broker-list",Hence,I
> want to register the method "connection.setExceptionListener" to monitor the
> connection between client socket and server socket before invoking the method
> "connection.start" ,I try to mock the connection closed through the three
> following way:
> 1.stop the Qid server broker
> 2.pull out the cable
> 3.use the TCPViewer to close the connection manually.
> none of the above method didn't invoke the method
> "connection.setExceptionListener"
> by the way,for the client API qpid-amqp-1-0-client-0.32,If the connection
> URL support brokerlist feature,That would be nice,I can implement
> Re-connection functionality in a nice way,Thanks in advance.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]