hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15787) [JDK11] TestIPC.testRTEDuringConnectionSetup fails
Date Tue, 25 Sep 2018 04:14:00 GMT

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

Akira Ajisaka commented on HADOOP-15787:
----------------------------------------

The error log:
{noformat}
Caused by: org.mockito.exceptions.base.MockitoException: 
Mockito cannot mock this class: class sun.nio.ch.SocketAdaptor
Mockito can only mock visible & non-final classes.
If you're not sure why you're getting this error, please report to the mailing list.
        at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:647)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:794)
        ... 15 more
Caused by: org.mockito.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
        at org.mockito.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:238)
        at org.mockito.cglib.proxy.Enhancer.createHelper(Enhancer.java:378)
        at org.mockito.cglib.proxy.Enhancer.createClass(Enhancer.java:318)
        at org.mockito.internal.creation.jmock.ClassImposterizer.createProxyClass(ClassImposterizer.java:93)
        at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:50)
        at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:54)
        at org.mockito.internal.MockitoCore.mock(MockitoCore.java:45)
        at org.mockito.Mockito.spy(Mockito.java:991)
{noformat}

> [JDK11] TestIPC.testRTEDuringConnectionSetup fails
> --------------------------------------------------
>
>                 Key: HADOOP-15787
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15787
>             Project: Hadoop Common
>          Issue Type: Sub-task
>         Environment: Java 11+28, CentOS 7.5
>            Reporter: Akira Ajisaka
>            Priority: Major
>
> {noformat}
> [INFO] Running org.apache.hadoop.ipc.TestIPC
> [ERROR] Tests run: 40, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 82.577 s <<<
FAILURE! - in org.apache.hadoop.ipc.TestIPC
> [ERROR] testRTEDuringConnectionSetup(org.apache.hadoop.ipc.TestIPC)  Time elapsed: 0.462
s  <<< FAILURE!
> java.lang.AssertionError
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertTrue(Assert.java:52)
> 	at org.apache.hadoop.ipc.TestIPC.testRTEDuringConnectionSetup(TestIPC.java:625)
> 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message