You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Harry Metske (JIRA)" <ji...@apache.org> on 2013/06/15 15:31:20 UTC

[jira] [Updated] (CASSANDRA-5644) Exception swallowing in ..net.MessagingService

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

Harry Metske updated CASSANDRA-5644:
------------------------------------

    Attachment: CASSANDRA-5644.patch
    
> Exception swallowing in ..net.MessagingService
> ----------------------------------------------
>
>                 Key: CASSANDRA-5644
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5644
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Config
>    Affects Versions: 2.0
>         Environment: RedHat Linux, OpenJDK 7
>            Reporter: Harry Metske
>            Priority: Minor
>         Attachments: CASSANDRA-5644.patch
>
>
> While I was trying to setup internode encryption, I spent too much time finding out that the name of my keystore was wrong.
> Main reason was the org/apache/cassandra/net/MessagingService.java swallowing the exception and just spitting out:
> {noformat}
> ERROR [main] 2013-06-15 12:49:43,758 CassandraDaemon.java (line 358) Fatal configuration error
> org.apache.cassandra.exceptions.ConfigurationException: Unable to create ssl socket
> 	at org.apache.cassandra.net.MessagingService.getServerSocket(MessagingService.java:432)
> 	at org.apache.cassandra.net.MessagingService.listen(MessagingService.java:412)
> 	at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:564)
> 	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:529)
> 	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:428)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:354)
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:453)
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:496)
> Unable to create ssl socket
> {noformat}
> I will attach a minor patch, that shows just a bit more:
> {noformat}
> ERROR [main] 2013-06-15 12:58:44,979 CassandraDaemon.java (line 358) Fatal configuration error
> org.apache.cassandra.exceptions.ConfigurationException: Unable to create ssl socket
> 	at org.apache.cassandra.net.MessagingService.getServerSocket(MessagingService.java:432)
> 	at org.apache.cassandra.net.MessagingService.listen(MessagingService.java:412)
> 	at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:564)
> 	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:529)
> 	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:428)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:354)
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:453)
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:496)
> Caused by: java.io.IOException: Error creating the initializing the SSL Context
> 	at org.apache.cassandra.security.SSLFactory.createSSLContext(SSLFactory.java:124)
> 	at org.apache.cassandra.security.SSLFactory.getServerSocket(SSLFactory.java:53)
> 	at org.apache.cassandra.net.MessagingService.getServerSocket(MessagingService.java:428)
> 	... 7 more
> Caused by: java.io.FileNotFoundException: conf/oeps-wrong-truststore.jks (No such file or directory)
> 	at java.io.FileInputStream.open(Native Method)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:138)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:97)
> 	at org.apache.cassandra.security.SSLFactory.createSSLContext(SSLFactory.java:105)
> 	... 9 more
> Unable to create ssl socket
> {noformat}
> kind regards,
> Harry

--
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