You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by black&white <ra...@gmail.com> on 2019/10/31 07:36:07 UTC

Cannot communicate with Activemq over https using DNS name

We are trying to communicate with ActiveMQ from JMS adapter in weblogic over
https. 
But while we are trying to do same (https://<DNSNAME>/activemq), we are
getting below error message.

If we give https port along with DNS name (https://<DNSNAME>:443/activemq)
it is going through fine. Any idea if https transport is expecting 443
explicitly?




Caused By: java.lang.IllegalStateException: Failure trying to create scheme
registry
       at
org.apache.activemq.transport.https.HttpsClientTransport.createSchemeRegistry(HttpsClientTransport.java:54)
       at
org.apache.activemq.transport.https.HttpsClientTransport.createClientConnectionManager(HttpsClientTransport.java:41)
       at
org.apache.activemq.transport.http.HttpClientTransport.createHttpClient(HttpClientTransport.java:320)
       at
org.apache.activemq.transport.http.HttpClientTransport.getReceiveHttpClient(HttpClientTransport.java:236)
       at
org.apache.activemq.transport.http.HttpClientTransport.doStart(HttpClientTransport.java:253)
       at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
       at
org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:169)
       at
org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:52)
       at
org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1017)
       at
org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:148)
       at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
       at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
       at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
Caused By: java.lang.IllegalArgumentException: Port is invalid: -1
       at org.apache.http.conn.scheme.Scheme.<init>(Scheme.java:91)
       at
org.apache.activemq.transport.https.HttpsClientTransport.createSchemeRegistry(HttpsClientTransport.java:51)
       at
org.apache.activemq.transport.https.HttpsClientTransport.createClientConnectionManager(HttpsClientTransport.java:41)
       at
org.apache.activemq.transport.http.HttpClientTransport.createHttpClient(HttpClientTransport.java:320)
       at
org.apache.activemq.transport.http.HttpClientTransport.getReceiveHttpClient(HttpClientTransport.java:236)
       at
org.apache.activemq.transport.http.HttpClientTransport.doStart(HttpClientTransport.java:253)
       at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
       at
org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:169)
       at
org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:52)
       at
org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1017)
       at
org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:148)
       at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
       at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
       at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Cannot communicate with Activemq over https using DNS name

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

It sounds like 443 is not assume as default if the port is not
specified. I would suggest to create a Jira about that.

Regards
JB

On 31/10/2019 08:36, black&white wrote:
> We are trying to communicate with ActiveMQ from JMS adapter in weblogic over
> https. 
> But while we are trying to do same (https://<DNSNAME>/activemq), we are
> getting below error message.
> 
> If we give https port along with DNS name (https://<DNSNAME>:443/activemq)
> it is going through fine. Any idea if https transport is expecting 443
> explicitly?
> 
> 
> 
> 
> Caused By: java.lang.IllegalStateException: Failure trying to create scheme
> registry
>        at
> org.apache.activemq.transport.https.HttpsClientTransport.createSchemeRegistry(HttpsClientTransport.java:54)
>        at
> org.apache.activemq.transport.https.HttpsClientTransport.createClientConnectionManager(HttpsClientTransport.java:41)
>        at
> org.apache.activemq.transport.http.HttpClientTransport.createHttpClient(HttpClientTransport.java:320)
>        at
> org.apache.activemq.transport.http.HttpClientTransport.getReceiveHttpClient(HttpClientTransport.java:236)
>        at
> org.apache.activemq.transport.http.HttpClientTransport.doStart(HttpClientTransport.java:253)
>        at
> org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>        at
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:169)
>        at
> org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:52)
>        at
> org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1017)
>        at
> org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:148)
>        at
> org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
>        at
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
>        at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>        at java.lang.Thread.run(Thread.java:748)
> Caused By: java.lang.IllegalArgumentException: Port is invalid: -1
>        at org.apache.http.conn.scheme.Scheme.<init>(Scheme.java:91)
>        at
> org.apache.activemq.transport.https.HttpsClientTransport.createSchemeRegistry(HttpsClientTransport.java:51)
>        at
> org.apache.activemq.transport.https.HttpsClientTransport.createClientConnectionManager(HttpsClientTransport.java:41)
>        at
> org.apache.activemq.transport.http.HttpClientTransport.createHttpClient(HttpClientTransport.java:320)
>        at
> org.apache.activemq.transport.http.HttpClientTransport.getReceiveHttpClient(HttpClientTransport.java:236)
>        at
> org.apache.activemq.transport.http.HttpClientTransport.doStart(HttpClientTransport.java:253)
>        at
> org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>        at
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:169)
>        at
> org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:52)
>        at
> org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1017)
>        at
> org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:148)
>        at
> org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
>        at
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
>        at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>        at java.lang.Thread.run(Thread.java:748)
> 
> 
> 
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Cannot communicate with Activemq over https using DNS name

Posted by Tim Bain <tb...@alumni.duke.edu>.
I had hoped to check the code to answer you with certainty, but
circumstances haven't allowed that, so...

The behavior you're seeing certainly seems to indicate that the HTTPS
transport requires the port to be specified explicitly, and doesn't default
to the default HTTPS port (443). If you think it should, you're welcome to
submit an enhancement request in JIRA for that functionality.

Tim

On Thu, Oct 31, 2019, 9:35 AM black&white <ra...@gmail.com> wrote:

> We are trying to communicate with ActiveMQ from JMS adapter in weblogic
> over
> https.
> But while we are trying to do same (https://<DNSNAME>/activemq), we are
> getting below error message.
>
> If we give https port along with DNS name (https://<DNSNAME>:443/activemq)
> it is going through fine. Any idea if https transport is expecting 443
> explicitly?
>
>
>
>
> Caused By: java.lang.IllegalStateException: Failure trying to create scheme
> registry
>        at
>
> org.apache.activemq.transport.https.HttpsClientTransport.createSchemeRegistry(HttpsClientTransport.java:54)
>        at
>
> org.apache.activemq.transport.https.HttpsClientTransport.createClientConnectionManager(HttpsClientTransport.java:41)
>        at
>
> org.apache.activemq.transport.http.HttpClientTransport.createHttpClient(HttpClientTransport.java:320)
>        at
>
> org.apache.activemq.transport.http.HttpClientTransport.getReceiveHttpClient(HttpClientTransport.java:236)
>        at
>
> org.apache.activemq.transport.http.HttpClientTransport.doStart(HttpClientTransport.java:253)
>        at
> org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>        at
>
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:169)
>        at
>
> org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:52)
>        at
>
> org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1017)
>        at
>
> org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:148)
>        at
>
> org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
>        at
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
>        at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>        at java.lang.Thread.run(Thread.java:748)
> Caused By: java.lang.IllegalArgumentException: Port is invalid: -1
>        at org.apache.http.conn.scheme.Scheme.<init>(Scheme.java:91)
>        at
>
> org.apache.activemq.transport.https.HttpsClientTransport.createSchemeRegistry(HttpsClientTransport.java:51)
>        at
>
> org.apache.activemq.transport.https.HttpsClientTransport.createClientConnectionManager(HttpsClientTransport.java:41)
>        at
>
> org.apache.activemq.transport.http.HttpClientTransport.createHttpClient(HttpClientTransport.java:320)
>        at
>
> org.apache.activemq.transport.http.HttpClientTransport.getReceiveHttpClient(HttpClientTransport.java:236)
>        at
>
> org.apache.activemq.transport.http.HttpClientTransport.doStart(HttpClientTransport.java:253)
>        at
> org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>        at
>
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:169)
>        at
>
> org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:52)
>        at
>
> org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1017)
>        at
>
> org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:148)
>        at
>
> org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
>        at
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
>        at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>        at java.lang.Thread.run(Thread.java:748)
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>