Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-2031

Pls log more information of java.net.ConnectException: Connection refused

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBoss A-MQ 6.3.x
    • JBoss A-MQ 6.2.1
    • broker
    • None
    • Hide

      set up a fabric env

      fabric:create --wait-for-provisioning  --resolver manualip --manual-ip 127.0.0.1
      fabric:profile-edit --feature camel-amq default
      

      build the project attached and install it.
      osgi:install -s mvn:com.mycompany/camel.blob.producer/1.0.0-SNAPSHOT

      put some file into the directory $Fuse_HOME/data/producerstore
      you will see the error above.

      Show
      set up a fabric env fabric:create --wait- for -provisioning --resolver manualip --manual-ip 127.0.0.1 fabric:profile-edit --feature camel-amq default build the project attached and install it. osgi:install -s mvn:com.mycompany/camel.blob.producer/1.0.0-SNAPSHOT put some file into the directory $Fuse_HOME/data/producerstore you will see the error above.

    Description

      I am using BlobMessage using camel amq component directly.

         <route id="messageHandlerRoute">
            <from uri="direct:handleMessage"/>
            <log message="Sending blob message..."/>
            <to uri="amq:queue:{{jms.producer.queueName}}?disableReplyTo=true&amp;messageConverter=#blobMessageConverter"/>
      </route>
      

      I got below exception:

      Caused by: java.net.ConnectException: Connection refused
      	at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.8.0_92]
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[:1.8.0_92]
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[:1.8.0_92]
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[:1.8.0_92]
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.8.0_92]
      	at java.net.Socket.connect(Socket.java:589)[:1.8.0_92]
      	at java.net.Socket.connect(Socket.java:538)[:1.8.0_92]
      	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)[:1.8.0_92]
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)[:1.8.0_92]
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)[:1.8.0_92]
      	at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)[:1.8.0_92]
      	at sun.net.www.http.HttpClient.New(HttpClient.java:308)[:1.8.0_92]
      	at sun.net.www.http.HttpClient.New(HttpClient.java:326)[:1.8.0_92]
      	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)[:1.8.0_92]
      	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)[:1.8.0_92]
      	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)[:1.8.0_92]
      	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)[:1.8.0_92]
      	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1283)[:1.8.0_92]
      	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1258)[:1.8.0_92]
      	at org.apache.activemq.blob.DefaultBlobUploadStrategy.uploadStream(DefaultBlobUploadStrategy.java:58)[189:org.apache.activemq.activemq-osgi:5.11.0.redhat-621169]
      	at org.apache.activemq.blob.BlobUploader.upload(BlobUploader.java:55)[189:org.apache.activemq.activemq-osgi:5.11.0.redhat-621169]
      	at org.apache.activemq.command.ActiveMQBlobMessage.onSend(ActiveMQBlobMessage.java:174)[189:org.apache.activemq.activemq-osgi:5.11.0.redhat-621169]
      	... 42 more
      

      I know I should set the property like jms.blobTransferPolicy.uploadUrl, but I forgot.

      here the connection is using the default one:
      http://localhost:8080/uploads/
      but from the stack trace, cannot see such info. Should print out such info for trouble shooting.

      Attachments

        Activity

          People

            gtully@redhat.com Gary Tully
            rhn-support-xiwu Xiaohui Wu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: