activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Earls (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-4600) NoSuchAlgorithmException received trying to use ssl with amqp/qpid client
Date Tue, 25 Jun 2013 15:36:20 GMT
Kevin Earls created AMQ-4600:
--------------------------------

             Summary: NoSuchAlgorithmException received trying to use ssl with amqp/qpid client
                 Key: AMQ-4600
                 URL: https://issues.apache.org/jira/browse/AMQ-4600
             Project: ActiveMQ
          Issue Type: Bug
            Reporter: Kevin Earls


I added a test case to the AmqpSslTest that started with the following code:

    ConnectionFactoryImpl factory = new ConnectionFactoryImpl("localhost", sslPort, null,
null, null, true);
    Connection connection = factory.createConnection("user", "userPassword");
    Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);

It gets the following on the createSession call:


javax.jms.JMSException: java.net.SocketException: java.security.NoSuchAlgorithmException:
Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at java.io.FileInputStream.<init>(FileInputStream.java:97)
	at sun.security.ssl.SSLContextImpl$DefaultSSLContext$2.run(SSLContextImpl.java:583)
	at sun.security.ssl.SSLContextImpl$DefaultSSLContext$2.run(SSLContextImpl.java:581)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.security.ssl.SSLContextImpl$DefaultSSLContext.getDefaultKeyManager(SSLContextImpl.java:580)
	at sun.security.ssl.SSLContextImpl$DefaultSSLContext.<init>(SSLContextImpl.java:495)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at java.lang.Class.newInstance0(Class.java:374)
	at java.lang.Class.newInstance(Class.java:327)
	at java.security.Provider$Service.newInstance(Provider.java:1238)
	at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
	at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
	at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
	at javax.net.ssl.SSLContext.getDefault(SSLContext.java:97)
	at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:121)
	at org.apache.qpid.amqp_1_0.client.Connection.<init>(Connection.java:154)
	at org.apache.qpid.amqp_1_0.client.Connection.<init>(Connection.java:135)
	at org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.connect(ConnectionImpl.java:100)
	at org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:155)
	at org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:144)
	at org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:31)
	at org.apache.activemq.transport.amqp.AmqpSslTest.testSendReceive(AmqpSslTest.java:58)


I'll attached the modified version of AmqpSslTest.java


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message