Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3450

NPE when using SSL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2, 0.9.3
    • Fix Version/s: 0.10.0
    • Component/s: Java - Library
    • Labels:
      None
    • Environment:

      Linux

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nsuke Nobuaki Sukegawa
                Reporter:
                pedwards Paul Edwards
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: