[ 
https://issues.apache.org/jira/browse/AMQ-8275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17442163#comment-17442163
 ] 

Andreas Strey commented on AMQ-8275:
------------------------------------

Today we ran into the same problem. Maybe it is a little bit confusing that an 
error is logged for something that is only needed for a special case. 
{code:java}
// Lets try to configure the SSL SNI field.  Handy in case your using           
 
// a single proxy to route to different messaging apps. {code}
The occured Exception will be catched, logged and the connection establishment 
goes on.

As workaround to avoid the "error" we registered a custom TransportFactory for 
ssl which uses the changes from [~jgallimore]. Thanks for the work.

> Java 16 SSL connection gives an error in the log
> ------------------------------------------------
>
>                 Key: AMQ-8275
>                 URL: https://issues.apache.org/jira/browse/AMQ-8275
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: AMQP
>    Affects Versions: 5.16.2
>            Reporter: Evgeni Gordeev
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 2021-05-21 13:53:37.775 ERROR [Row Crops - Integration,,] 449 --- [           
> main] o.a.activemq.util.IntrospectionSupport   : Could not set property host 
> on Socket[unconnected]2021-05-21 13:53:37.775 ERROR [Row Crops - 
> Integration,,] 449 --- [           main] 
> o.a.activemq.util.IntrospectionSupport   : Could not set property host on 
> Socket[unconnected]
> java.lang.reflect.InaccessibleObjectException: Unable to make public void 
> sun.security.ssl.SSLSocketImpl.setHost(java.lang.String) accessible: module 
> java.base does not "exports sun.security.ssl" to unnamed module @636b3685 at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) 
> at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) at 
> org.apache.activemq.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:179)
>  at 
> org.apache.activemq.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:155)
>  at 
> org.apache.activemq.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:140)
>  at 
> org.apache.activemq.transport.tcp.SslTransport.<init>(SslTransport.java:81) 
> at 
> org.apache.activemq.transport.tcp.SslTransportFactory.createTransport(SslTransportFactory.java:122)
>  at 
> org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:120)
>  at 
> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:65)
>  at 
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:331)
>  at 
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:346)
>  at 
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:304)
>  at 
> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:244)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to