Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.4.0
-
None
-
None
-
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460sr12ifix-20130425_01(SR12+IV40469))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr12-20121024_126067 (JIT enabled, AOT enabled)
J9VM - 20121024_126067
JIT - r9_20120914_26057
GC - 20120928_AA)
JCL - 20121014_01java version "1.6.0" Java(TM) SE Runtime Environment (build pxa6460sr12ifix-20130425_01(SR12+IV40469)) IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr12-20121024_126067 (JIT enabled, AOT enabled) J9VM - 20121024_126067 JIT - r9_20120914_26057 GC - 20120928_AA) JCL - 20121014_01
Description
When using a non-Oracle Java and enabling SSL and setting trust-all-certs to false results in the following error:
2013-07-21 16:19:38,933 (SinkRunner-PollingRunner-DefaultSinkProcessor) [ERROR - org.apache.flume.api.NettyAvroRpcClient$SSLCompressionChannelFactory.newChannel(NettyAvroRpcClient.java:698)] Cannot create SSL channel
java.security.NoSuchAlgorithmException: SunX509 TrustManagerFactory not available
It appears SunX509 is hard coded on line 679 in NettyAvroRpcClient.java. I am no Java programmer but perhaps leaving it null will select the default or what is set in java..security. Or have it consult java.security for the proer algorithm.