You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "li xiang (JIRA)" <ji...@apache.org> on 2015/01/13 07:51:34 UTC

[jira] [Created] (FLUME-2587) Unit test TestHTTPSource failed with IBM JDK 7.1.2

li xiang created FLUME-2587:
-------------------------------

             Summary: Unit test TestHTTPSource failed with IBM JDK 7.1.2
                 Key: FLUME-2587
                 URL: https://issues.apache.org/jira/browse/FLUME-2587
             Project: Flume
          Issue Type: Bug
          Components: Sinks+Sources, Test
    Affects Versions: v1.6.0, v1.5.2
         Environment: IBM JDK 7.1.2(V7R1-SR2)
            Reporter: li xiang
            Assignee: li xiang
            Priority: Minor
             Fix For: v1.6.0, v1.5.2


testHttpsSSLv3() in TestHTTPSource.java (under flume-ng-core/src/test/java/org/apache/flume/source/http) failed when using IBM JDK 7.1.2, not IBM JDK 7.1.1 and previous ones. Oracle JDK does not have this issue.

git commit -m "task 85506: Update TestHTTPSource.java to enable SSL v3 by setting com.ibm.jsse2.disableSSLv3 to false"


java.lang.Exception: Unexpected exception, expected<javax.net.ssl.SSLHandshakeException> but was<java.lang.IllegalArgumentException>
        at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:31)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
        at java.lang.reflect.Method.invoke(Method.java:620)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.lang.IllegalArgumentException: Only SSLv3 was enabled while com.ibm.jsse2.disableSSLv3 is set to true
        at com.ibm.jsse2.pb.a(pb.java:17)
        at com.ibm.jsse2.pb.<init>(pb.java:7)
        at com.ibm.jsse2.qc.setEnabledProtocols(qc.java:689)
        at org.apache.flume.source.http.TestHTTPSource$DisabledProtocolsSocketFactory.createSocket(TestHTTPSource.java:528)
        at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:7)
        at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:9)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1103)
        at com.ibm.net.ssl.www2.protocol.https.b.getOutputStream(b.java:84)
        at org.apache.flume.source.http.TestHTTPSource.doTestHttps(TestHTTPSource.java:406)
        at org.apache.flume.source.http.TestHTTPSource.testHttpsSSLv3(TestHTTPSource.java:335)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
        at java.lang.reflect.Method.invoke(Method.java:620)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:22)
        ... 24 more



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