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 <rameshreddyi...@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
>

Reply via email to