You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Niklas Gustavsson (JIRA)" <ji...@apache.org> on 2011/07/04 23:07:21 UTC

[jira] [Closed] (VYSPER-188) java.security.KeyStoreException running XMPPServer with Apache Harmony

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

Niklas Gustavsson closed VYSPER-188.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.8
         Assignee: Niklas Gustavsson

Configuring the keystore type now support in rev r1142793. 

> java.security.KeyStoreException running XMPPServer with Apache Harmony
> ----------------------------------------------------------------------
>
>                 Key: VYSPER-188
>                 URL: https://issues.apache.org/jira/browse/VYSPER-188
>             Project: VYSPER
>          Issue Type: Bug
>          Components: authentication
>         Environment: Ubuntu 9.10
> Apache Harmony harmony 5.0 M12a
>            Reporter: Jean-Sebastien Delfino
>            Assignee: Niklas Gustavsson
>             Fix For: 0.8
>
>
> Running XMPPServer on Apache Harmony 5.0 M12a causes this exception:
> java.lang.RuntimeException: java.security.KeyStoreException: KeyStore JKS implementation not found
>     at org.apache.vysper.xmpp.server.DefaultServerRuntimeContext.setTlsContextFactory(DefaultServerRuntimeContext.java:204)
>     at org.apache.vysper.xmpp.server.XMPPServer.start(XMPPServer.java:117)
>     at test.TestVysperServer.main(TestVysperServer.java:60)
> Caused by: java.security.KeyStoreException: KeyStore JKS implementation not found
>     at java.security.KeyStore.getInstance(KeyStore.java:120)
>     at org.apache.vysper.xmpp.cryptography.AbstractTLSContextFactory.createSSLContext(AbstractTLSContextFactory.java:76)
>     at org.apache.vysper.xmpp.cryptography.AbstractTLSContextFactory.getSSLContext(AbstractTLSContextFactory.java:70)
>     at org.apache.vysper.xmpp.server.DefaultServerRuntimeContext.setTlsContextFactory(DefaultServerRuntimeContext.java:202)
>     at org.apache.vysper.xmpp.server.XMPPServer.start(XMPPServer.java:117)
>     ... 1 more
> The same test [1] runs OK with other JDKs.
> Vysper currently hardcodes the Keystore type to JKS [2], which is not supported by Harmony [3] There should be a way to make this configurable and support another Keystore type like Bouncy Castle BKS (perhaps a setter method on AbstractTLSContextFactory and allow for injecting a TLSContextFactory into XMPPServer.)
> [1] http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/components/chat/test/TestVysperServer.java
> [2] http://svn.apache.org/repos/asf/mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/cryptography/AbstractTLSContextFactory.java
> [3] http://issues.apache.org/jira/browse/HARMONY-6098

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira