[ 
https://issues.apache.org/jira/browse/AMQ-5917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gregg Saffell updated AMQ-5917:
-------------------------------
    Description: 
With both 5.10.0 and 5.11.1, the networkConnectorStartAsync="true" is broken 
for ssl.  With two networkConnectors defined, only one connection is made and a 
warning is logged for the other as noted in the Summary. 

Snippets from my activemq.xml:
<broker xmlns="http://activemq.apache.org/schema/core"; ... 
networkConnectorStartAsync="true"> 
...
<networkConnector name="GSTEST-96_ILSTECHNOLOGY_COM-SSO" 
uri="static:(ssl://172.27.11.96:5902)?useExponentialBackOff=false&amp;initialReconnectDelay=5000&amp;maxReconnectDelay=5000"
 duplex="true" conduitSubscriptions="true" >
...
networkConnector name="ECENTRESERVER_ILSTECHNOLOGY_COM-SSO" 
uri="static:(ssl://172.27.11.95:5902)?useExponentialBackOff=false&amp;initialReconnectDelay=5000&amp;maxReconnectDelay=5000"
 duplex="true" conduitSubscriptions="true" >

The specific warning that was generated is:

2015-08-05 10:46:31,569 | WARN  | Could not connect to remote URI: 
ssl://172.27.11.96:5902: SSLContextImpl is not initialized | 
org.apache.activemq.network.DiscoveryNetworkConnector | NetworkConnector Start 
Thread-0






  was:
With both 5.10.0 and 5.11.1, the networkConnectorStartAsync="true" is broken 
for ssl.  With two networkConnectors defined, only one connection is made and a 
warning is logged for the other as noted in the Summary. 

Snippets from my activemq.xml:
<broker xmlns="http://activemq.apache.org/schema/core"; ... 
networkConnectorStartAsync="true"> 
...
<networkConnector name="GSTEST-96_ILSTECHNOLOGY_COM-SSO" 
uri="static:(ssl://172.27.11.96:5902)?useExponentialBackOff=false&amp;initialReconnectDelay=5000&amp;maxReconnectDelay=5000"
 duplex="true" conduitSubscriptions="true" >
...
networkConnector name="ECENTRESERVER_ILSTECHNOLOGY_COM-SSO" 
uri="static:(ssl://172.27.11.95:5902)?useExponentialBackOff=false&amp;initialReconnectDelay=5000&amp;maxReconnectDelay=5000"
 duplex="true" conduitSubscriptions="true" >

The log that was generated:

2015-08-05 10:46:15,666 | INFO  | Refreshing 
org.apache.activemq.xbean.XBeanBrokerFactory$1@487b382f: startup date [Wed Aug 
05 10:46:15 EDT 2015]; root of context hierarchy | 
org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain
2015-08-05 10:46:17,152 | INFO  | Loading properties file from URL 
[file:../../conf/credentials.properties] | 
org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer | 
WrapperSimpleAppMain
2015-08-05 10:46:17,648 | INFO  | 
PListStore:[/opt/secureWISE/apache-activemq-5.11.1/bin/linux-x86-64/../../data/securePASS-broker/tmp_storage]
 started | org.apache.activemq.store.kahadb.plist.PListStoreImpl | 
WrapperSimpleAppMain
2015-08-05 10:46:17,695 | INFO  | Using Persistence Adapter: 
KahaDBPersistenceAdapter[/opt/secureWISE/apache-activemq-5.11.1/bin/linux-x86-64/../../data/kahadb]
 | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
2015-08-05 10:46:18,182 | INFO  | KahaDB is version 5 | 
org.apache.activemq.store.kahadb.MessageDatabase | WrapperSimpleAppMain
2015-08-05 10:46:18,313 | INFO  | Recovering from the journal ... | 
org.apache.activemq.store.kahadb.MessageDatabase | WrapperSimpleAppMain
2015-08-05 10:46:18,332 | INFO  | Recovery replayed 57 operations from the 
journal in 0.135 seconds. | org.apache.activemq.store.kahadb.MessageDatabase | 
WrapperSimpleAppMain
2015-08-05 10:46:18,512 | INFO  | Apache ActiveMQ 5.11.1 (securePASS-broker, 
ID:gstest-sca-248.ilstechnology.com-49515-1438785978375-0:1) is starting | 
org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
2015-08-05 10:46:18,707 | INFO  | Broker Plugin 
org.apache.activemq.broker.util.TimeStampingBrokerPlugin started | 
org.apache.activemq.broker.BrokerPluginSupport | WrapperSimpleAppMain
2015-08-05 10:46:18,728 | INFO  | Listening for connections at: 
tcp://gstest-sca-248.ilstechnology.com:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 | org.apache.activemq.transport.TransportServerThreadSupport | 
WrapperSimpleAppMain
2015-08-05 10:46:18,729 | INFO  | Connector tcp started | 
org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
2015-08-05 10:46:18,731 | INFO  | Async start of 
DiscoveryNetworkConnector:GSTEST-96_ILSTECHNOLOGY_COM-SSO:BrokerService[securePASS-broker]
 | org.apache.activemq.broker.BrokerService | NetworkConnector Start Thread-0
2015-08-05 10:46:18,732 | INFO  | Establishing network connection from 
vm://securePASS-broker?async=false&network=true to ssl://172.27.11.96:5902 | 
org.apache.activemq.network.DiscoveryNetworkConnector | NetworkConnector Start 
Thread-0
2015-08-05 10:46:18,744 | INFO  | Async start of 
DiscoveryNetworkConnector:ECENTRESERVER_ILSTECHNOLOGY_COM-SSO:BrokerService[securePASS-broker]
 | org.apache.activemq.broker.BrokerService | NetworkConnector Start Thread-1
2015-08-05 10:46:18,745 | INFO  | Establishing network connection from 
vm://securePASS-broker?async=false&network=true to ssl://172.27.11.95:5902 | 
org.apache.activemq.network.DiscoveryNetworkConnector | NetworkConnector Start 
Thread-1
2015-08-05 10:46:18,745 | INFO  | Apache ActiveMQ 5.11.1 (securePASS-broker, 
ID:gstest-sca-248.ilstechnology.com-49515-1438785978375-0:1) started | 
org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
2015-08-05 10:46:18,745 | INFO  | For help or more information please see: 
http://activemq.apache.org | org.apache.activemq.broker.BrokerService | 
WrapperSimpleAppMain
2015-08-05 10:46:19,471 | INFO  | ActiveMQ WebConsole available at 
http://0.0.0.0:8161/ | org.apache.activemq.web.WebConsoleStarter | 
WrapperSimpleAppMain
2015-08-05 10:46:19,549 | INFO  | Initializing Spring FrameworkServlet 
'dispatcher' | /admin | WrapperSimpleAppMain
2015-08-05 10:46:19,896 | INFO  | jolokia-agent: No access restrictor found at 
classpath:/jolokia-access.xml, access to all MBeans is allowed | /api | 
WrapperSimpleAppMain
2015-08-05 10:46:31,569 | WARN  | Could not connect to remote URI: 
ssl://172.27.11.96:5902: SSLContextImpl is not initialized | 
org.apache.activemq.network.DiscoveryNetworkConnector | NetworkConnector Start 
Thread-0
2015-08-05 10:46:31,570 | INFO  | Network Connector 
DiscoveryNetworkConnector:GSTEST-96_ILSTECHNOLOGY_COM-SSO:BrokerService[securePASS-broker]
 started | org.apache.activemq.network.NetworkConnector | NetworkConnector 
Start Thread-0
2015-08-05 10:46:31,637 | INFO  | Connector vm://securePASS-broker started | 
org.apache.activemq.broker.TransportConnector | NetworkConnector Start Thread-1
2015-08-05 10:46:31,928 | INFO  | Network Connector 
DiscoveryNetworkConnector:ECENTRESERVER_ILSTECHNOLOGY_COM-SSO:BrokerService[securePASS-broker]
 started | org.apache.activemq.network.NetworkConnector | NetworkConnector 
Start Thread-1
2015-08-05 10:46:31,956 | INFO  | Network connection between 
vm://securePASS-broker#0 and ssl:///172.27.11.95:5902 (localhost-broker) has 
been established. | org.apache.activemq.network.DemandForwardingBridgeSupport | 
triggerStartAsyncNetworkBridgeCreation: remoteBroker=ssl:///172.27.11.95:5902, 
localBroker= vm://securePASS-broker#0










> networkConnectorStartAsync="true" results in "WARN  | Could not connect to 
> remote URI: ssl://... SSLContextImpl is not initialized
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-5917
>                 URL: https://issues.apache.org/jira/browse/AMQ-5917
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.10.0, 5.11.1
>            Reporter: Gregg Saffell
>
> With both 5.10.0 and 5.11.1, the networkConnectorStartAsync="true" is broken 
> for ssl.  With two networkConnectors defined, only one connection is made and 
> a warning is logged for the other as noted in the Summary. 
> Snippets from my activemq.xml:
> <broker xmlns="http://activemq.apache.org/schema/core"; ... 
> networkConnectorStartAsync="true"> 
> ...
> <networkConnector name="GSTEST-96_ILSTECHNOLOGY_COM-SSO" 
> uri="static:(ssl://172.27.11.96:5902)?useExponentialBackOff=false&amp;initialReconnectDelay=5000&amp;maxReconnectDelay=5000"
>  duplex="true" conduitSubscriptions="true" >
> ...
> networkConnector name="ECENTRESERVER_ILSTECHNOLOGY_COM-SSO" 
> uri="static:(ssl://172.27.11.95:5902)?useExponentialBackOff=false&amp;initialReconnectDelay=5000&amp;maxReconnectDelay=5000"
>  duplex="true" conduitSubscriptions="true" >
> The specific warning that was generated is:
> 2015-08-05 10:46:31,569 | WARN  | Could not connect to remote URI: 
> ssl://172.27.11.96:5902: SSLContextImpl is not initialized | 
> org.apache.activemq.network.DiscoveryNetworkConnector | NetworkConnector 
> Start Thread-0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to