[ https://issues.apache.org/jira/browse/QPID-7297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Godfrey resolved QPID-7297. ------------------------------- Resolution: Fixed > [Java Client] Using socket:// address to supply a preexisting existing socket > to the client fails on the 0-10 path > ------------------------------------------------------------------------------------------------------------------ > > Key: QPID-7297 > URL: https://issues.apache.org/jira/browse/QPID-7297 > Project: Qpid > Issue Type: Bug > Components: Java Client > Reporter: Keith Wall > Priority: Minor > Fix For: qpid-java-6.1 > > > The Java Client supports addresses in the form {{socket://<socketname>}} > where {{<socketname>}} is a string naming a Socket that has been previously > registered with the client with > {{org.apache.qpid.transport.network.io.IoNetworkTransport#registerOpenSocket}}. > This feature works in 0-8..0-91, but fails in 0-10 with the following stack > trace. > If the user wishes to use a protocol other than 0-10, they can workaround > this problem by setting system property {{qpid.ampq.version}} e.g > -Dqpid.ampq.version=0-9. > The problem is the 0-10 protocol stack fails to propagate the protocol name > from the broker details url, so it treats the address as if it were tcp:. > {noformat} > javax.jms.JMSException: Error creating connection: mysock: nodename nor > servname provided, or not known > at > org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:134) > at > org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:57) > at org.apache.qpid.example.Hello.runTest(Hello.java:69) > at org.apache.qpid.example.Hello.main(Hello.java:51) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) > Caused by: org.apache.qpid.AMQUnresolvedAddressException: mysock: > nodename nor servname provided, or not known Broker, > "socket://mysock:5672" > at org.apache.qpid.client.AMQConnection.makeConnection(AMQConnection.java:598) > at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:484) > at > org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:130) > ... 8 more > Caused by: org.apache.qpid.transport.TransportException: Error > connecting to broker > at > org.apache.qpid.transport.network.io.IoNetworkTransport.connectTcp(IoNetworkTransport.java:151) > at > org.apache.qpid.transport.network.io.IoNetworkTransport.connect(IoNetworkTransport.java:69) > at org.apache.qpid.transport.Connection.connect(Connection.java:240) > at > org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:240) > at > org.apache.qpid.client.AMQConnection.makeBrokerConnection(AMQConnection.java:748) > at org.apache.qpid.client.AMQConnection.makeConnection(AMQConnection.java:514) > ... 10 more > Caused by: java.net.UnknownHostException: mysock: nodename nor > servname provided, or not known > at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) > at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901) > at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1295) > at java.net.InetAddress.getAllByName0(InetAddress.java:1248) > at java.net.InetAddress.getAllByName(InetAddress.java:1164) > at java.net.InetAddress.getAllByName(InetAddress.java:1098) > at java.net.InetAddress.getByName(InetAddress.java:1048) > at > org.apache.qpid.transport.network.io.IoNetworkTransport.connectTcp(IoNetworkTransport.java:128) > ... 15 more > {noformat} -- 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