-
30. Re: Reproducible failure under load, SSL only
normanmaurer Dec 19, 2012 8:54 AM (in response to stuarthalloway)@stuart: Only the build use JDK7 . Netty itself can be used with JDK 5+
-
31. Re: Reproducible failure under load, SSL only
normanmaurer Dec 19, 2012 9:08 AM (in response to normanmaurer)@stuart: also I just uploaded a snapshot which you can just use for your test...
Find it here:
https://oss.sonatype.org/content/repositories/snapshots/io/netty/netty/3.6.0.Final-SNAPSHOT/
-
32. Re: Reproducible failure under load, SSL only
stuarthalloway Dec 19, 2012 3:26 PM (in response to normanmaurer)Thanks for all your work on this. I have verified the fix against my sample app https://github.com/Datomic/datomic-java-examples/wiki/Hornet-SSL-Oddity, and am now running the Datomic test suite (which takes a bit longer). Back in a bit...
-
33. Re: Reproducible failure under load, SSL only
clebert.suconic Dec 19, 2012 3:49 PM (in response to stuarthalloway)Norman ++
-
34. Re: Reproducible failure under load, SSL only
stuarthalloway Dec 19, 2012 5:12 PM (in response to normanmaurer)Ok, our grind test has now run 3x longer than it ever ran before without hitting the issue. I will leave it running overnight, but tentatively conclude this issue is resolved. We will be switching to new builds of netty and HornetQ once they are available and we have a chance to test against our other dependencies that rely on them.
Thanks Norman and Clebert!
-
35. Re: Reproducible failure under load, SSL only
clebert.suconic Dec 19, 2012 5:20 PM (in response to stuarthalloway)For the record.. this is the first real Netty bug that I'm aware we hitted without being able to have a workaround on HornetQ. one bug in 3 years is a pretty good rate.
-
36. Re: Reproducible failure under load, SSL only
normanmaurer Dec 20, 2012 12:41 AM (in response to clebert.suconic)yeah sounds like that ...
-
37. Re: Reproducible failure under load, SSL only
normanmaurer Dec 20, 2012 1:08 AM (in response to stuarthalloway)I will now start to get the release process rolling for 3.6.0.Final...
@stuart: Thanks again for all your help to make it easy to reproduce.
-
38. Re: Reproducible failure under load, SSL only
normanmaurer Dec 20, 2012 2:25 AM (in response to normanmaurer)@clebert: I just backported the fix to netty 3.2.8.Final and running the reproducer now.. 300000 msgs without problem yet. So I think we are in a good shape here
-
39. Re: Reproducible failure under load, SSL only
atulkc Jul 16, 2013 1:50 PM (in response to normanmaurer)Hi,
I am seeing this issue with netty 3.6.2 Final and hornetq 2.3.0 CR1 in JBoss 7.2.0Final. Whenever I try to create a connection from remote client I get following exception (exception is thrown after waiting for few seconds):
javax.jms.JMSException: Failed to create session factory
at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:587)
at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:107)
at com.brocade.dcm.util.jms.JmsUtil.createConnection(JmsUtil.java:305)
at com.brocade.dcm.util.jms.JmsUtil.initialize(JmsUtil.java:117)
at com.brocade.dcm.util.jms.JmsUtil.<init>(JmsUtil.java:103)
at com.brocade.dcm.util.jms.JmsUtil.getInstance(JmsUtil.java:92)
at com.brocade.dcm.as7.test.CommonTopicPublisher.setup(CommonTopicPublisher.java:110)
at com.brocade.dcm.as7.test.CommonTopicPublisher.main(CommonTopicPublisher.java:146)
Caused by: HornetQException[errorType=NOT_CONNECTED message=HQ119007: Cannot connect to server(s). Tried with all available servers.]
at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:852)
at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:583)
... 7 moreAm I using the right versions of netty and hornetq?
-
40. Re: Reproducible failure under load, SSL only
raghavev Oct 28, 2013 2:57 AM (in response to atulkc)Changes done:
-------------------------
Modified hornetq-configuration.xml file with the below:
hornetq-configuration.xml:
------------------------------------------------
for all connectors:added the below params:
----------------------------------------------------------------
<param key="ssl-enabled" value="true"/>
<param key="key-store-path" value="${jboss.server.home.dir}/conf/keystore"/>
<param key="key-store-password" value="changeit"/>
for all acceptors:added the below params:
---------------------------------------------------------------------
<param key="ssl-enabled" value="true"/>
<param key="key-store-path" value="${jboss.server.home.dir}/conf/keystore"/>
<param key="key-store-password" value="changeit"/>
<param key="trust-store-path" value="${jboss.server.home.dir}/conf/keystore"/>
<param key="trust-store-password" value="changeit"/>
---------------------------------------------------------------------------------------------------------------------------------------------------
Exception:when I try to connect a remote JMS RMI client to above ssl enabled hornetq service:
----------------------------------------------------------------------------------------------------------------------------------------------------
com.management.remote.RemoteJMXDispatcher logged : "could not register to event queue:
javax.jms.JMSException: Failed to create session factory
at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:605)
at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:119)
at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:114)
....
....
....
Caused by: HornetQException[errorCode=2 message=Cannot connect to server(s). Tried with all available servers.]
at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:784)
at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:601)
... 11 more"
com.platform.model.connection.ServerLink logged : "could not connect:
java.lang.RuntimeException: javax.jms.JMSException: Failed to create session factory
...
...
...
Caused by: javax.jms.JMSException: Failed to create session factory
at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:605)
at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:119)
at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:114)
...
...
... 7 more
Caused by: HornetQException[errorCode=2 message=Cannot connect to server(s). Tried with all available servers.]
at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:784)
at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:601)
... 11 more"
----------------------------------------------------------------------------------------------------------------------------------------------------------
hornetq:versions:
<hornetq.version>2.2.20.EAP.GA</hornetq.version>
<netty.version>3.2.3.Final</netty.version>
<hornetq.integration.version>2.2.21.Final</hornetq.integration.version>
------------------------------------------------------------------------------------------------------------------------------------------------------
Can anyone let me know how shall I resolve this and connect my remote jms client to ssl enabled hornetq jboss server?
Is any version upgrade required to resolve the above?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks.