[ 
https://issues.apache.org/jira/browse/THRIFT-3450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029329#comment-15029329
 ] 

ASF GitHub Bot commented on THRIFT-3450:
----------------------------------------

GitHub user nsuke opened a pull request:

    https://github.com/apache/thrift/pull/717

    THRIFT-3450 NPE when using SSL

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nsuke/thrift THRIFT-3450

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/thrift/pull/717.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #717
    
----
commit e479143d2c52d3ec7fdbca0112b554288b597f77
Author: Nobuaki Sukegawa <ns...@apache.org>
Date:   2015-11-27T00:46:15Z

    THRIFT-3450 NPE when using SSL

----


> NPE when using SSL
> ------------------
>
>                 Key: THRIFT-3450
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3450
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.9.2, 0.9.3
>         Environment: Linux
>            Reporter: Paul Edwards
>
> When running version 0.9.2 or 0.9.3 of libthrift to access cassandra, I'm 
> getting a NPE:
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.thrift.transport.TSSLTransportFactory$TSSLTransportParameters.<init>(TSSLTransportFactory.java:312)
>       at 
> org.apache.thrift.transport.TSSLTransportFactory$TSSLTransportParameters.<init>(TSSLTransportFactory.java:297)
>       at 
> me.prettyprint.cassandra.connection.security.SSLHelper.getTSSLTransportParameters(SSLHelper.java:36)
>       at 
> me.prettyprint.cassandra.connection.factory.HThriftClientFactoryImpl.createClient(HThriftClientFactoryImpl.java:28)
>       at 
> me.prettyprint.cassandra.connection.ConcurrentHClientPool.createClient(ConcurrentHClientPool.java:173)
>       at 
> me.prettyprint.cassandra.connection.ConcurrentHClientPool.<init>(ConcurrentHClientPool.java:58)
>       at 
> me.prettyprint.cassandra.connection.RoundRobinBalancingPolicy.createConnection(RoundRobinBalancingPolicy.java:68)
>       at 
> me.prettyprint.cassandra.connection.HConnectionManager.<init>(HConnectionManager.java:68)
>       at 
> me.prettyprint.cassandra.service.AbstractCluster.<init>(AbstractCluster.java:67)
>       at 
> me.prettyprint.cassandra.service.ThriftCluster.<init>(ThriftCluster.java:21)
>       at 
> me.prettyprint.hector.api.factory.HFactory.createCluster(HFactory.java:197)
>       at 
> me.prettyprint.hector.api.factory.HFactory.getOrCreateCluster(HFactory.java:144)
>       at 
> com.contextspace.dao.impl.TransactionManager.afterPropertiesSet(TransactionManager.java:62)
>       at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
>       at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
>       ... 114 more
> If I downgrade libthrift to version 0.9.1 then it all happily connects. I was 
> wondering whether this was related to: 
> https://issues.apache.org/jira/browse/THRIFT-2122 but I can't see any reason 
> it should be. 



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

Reply via email to