activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AnuragS <asaks...@operative.com>
Subject java.net.ConnectException while using BlobMessage
Date Tue, 22 Sep 2009 14:35:42 GMT

Hi,

I'm stuck with an exception which I'm not able resolve. Below is the
exception I receive when I do ..

InputStream is = blobMessage.getInputStream();

Note: 

1) I'm not facing this issue in the local development environment. However,
I face the said exception when I port the same code bundle to another
environment where the BlobMessage Producer and Consumer are on different
network nodes.

2) The jms url used is..
jms.url=tcp://<jms host>:61616?jms.blobTransferPolicy.uploadUrl=http://<jms
host>:8161/fileserver/


++++++
java.lang.RuntimeException: java.net.ConnectException: Connection refused
..
..
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
        at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:852)
        at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:793)
        at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1041)
        at java.net.URL.openStream(URL.java:1009)
        at
org.apache.activemq.command.ActiveMQBlobMessage.getInputStream(ActiveMQBlobMessage.java:130)

++++++



-- 
View this message in context: http://www.nabble.com/java.net.ConnectException-while-using-BlobMessage-tp25530768p25530768.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message