[ 
https://issues.apache.org/jira/browse/SCB-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Willem Jiang reassigned SCB-381:
--------------------------------

    Assignee: Willem Jiang  (was: Yang Bo)

> Fix foudation-vertx UT failure on linux
> ---------------------------------------
>
>                 Key: SCB-381
>                 URL: https://issues.apache.org/jira/browse/SCB-381
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>            Reporter: Yang Bo
>            Assignee: Willem Jiang
>            Priority: Major
>             Fix For: java-chassis-1.0.0-m2
>
>
> The foudation-vertx's UT would fail on some linux platforms.
> Environment:
> 1.
> OS: Ubuntu 16.04.4 LTS 64 bit
> JDK: jdk1.8.0_151 64 bit
> 2.
> OS: Centos 7 64 bit
> JDK: jdk1.8.0_161 64 bit
> Errors:
> TestAbstractTcpClientPoolFactory.createClientPool:45 » NullPointer
>  TestTcpClientConnection.send_inWorkingStatus:103 NullPointer
> Here are the stack trace that we got:
>  Running 
> org.apache.servicecomb.foundation.vertx.client.tcp.TestAbstractTcpClientPoolFactory
> {code:java}
> java.lang.NullPointerException
>         at io.vertx.core.net.TCPSSLOptions.equals(TCPSSLOptions.java:685)
>         at 
> io.vertx.core.net.ClientOptionsBase.equals(ClientOptionsBase.java:363)
>         at 
> io.vertx.core.net.NetClientOptions.equals(NetClientOptions.java:356)
>         at 
> mockit.internal.expectations.argumentMatching.EqualityMatcher.areEqualWhenNonNull(EqualityMatcher.java:49)
>         at 
> mockit.internal.expectations.invocation.ArgumentValuesAndMatchers.isNotEqual(ArgumentValuesAndMatchers.java:79)
>         at 
> mockit.internal.expectations.invocation.ArgumentValuesAndMatchers.areEqual(ArgumentValuesAndMatchers.java:64)
>         at 
> mockit.internal.expectations.invocation.ArgumentValuesAndMatchersWithoutVarargs.isMatch(ArgumentValuesAndMatchersWithoutVarargs.java:23)
>         at 
> mockit.internal.expectations.invocation.InvocationArguments.isMatch(InvocationArguments.java:71)
>         at 
> mockit.internal.expectations.PhasedExecutionState.findNotStrictExpectation(PhasedExecutionState.java:210)
>         at 
> mockit.internal.expectations.ReplayPhase.handleInvocation(ReplayPhase.java:63)
>         at 
> mockit.internal.expectations.RecordAndReplayExecution.recordOrReplay(RecordAndReplayExecution.java:198)
>         at io.vertx.core.$Impl_Vertx.createNetClient(Unknown Source)
>         at 
> org.apache.servicecomb.foundation.vertx.client.tcp.NetClientWrapper.<init>(NetClientWrapper.java:42)
>         at 
> org.apache.servicecomb.foundation.vertx.client.tcp.AbstractTcpClientPoolFactory.createClientPool(AbstractTcpClientPoolFactory.java:39)
>         at 
> org.apache.servicecomb.foundation.vertx.client.tcp.TestAbstractTcpClientPoolFactory.createClientPool(TestAbstractTcpClientPoolFactory.java:48)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>         at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>         at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>         at 
> mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.executeTestMethod(JUnit4TestRunnerDecorator.java:162)
>         at 
> mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:71)
>         at 
> mockit.integration.junit4.internal.MockFrameworkMethod.invokeExplosively(MockFrameworkMethod.java:37)
>         at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java)
>         at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>         at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>         at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> {code}
> Running org.apache.servicecomb.foundation.vertx.client.TestClientPoolManager
> {code:java}
> java.lang.NullPointerException
>         at mockit.internal.state.MockClasses.getMock(MockClasses.java:114)
>         at mockit.internal.state.TestRun.getMock(TestRun.java:147)
>         at mockit.internal.state.TestRun.updateMockState(TestRun.java:131)
>         at io.vertx.core.$Impl_Context.runOnContext(Unknown Source)
>         at 
> org.apache.servicecomb.foundation.vertx.tcp.TcpConnection.scheduleWrite(TcpConnection.java:97)
>         at 
> org.apache.servicecomb.foundation.vertx.tcp.TcpConnection.write(TcpConnection.java:91)
>         at 
> org.apache.servicecomb.foundation.vertx.client.tcp.TcpClientConnection.writeToBufferQueue(TcpClientConnection.java:138)
>         at 
> org.apache.servicecomb.foundation.vertx.client.tcp.TcpClientConnection.send(TcpClientConnection.java:108)
>         at 
> org.apache.servicecomb.foundation.vertx.client.tcp.TestTcpClientConnection.send_inWorkingStatus(TestTcpClientConnection.java:103)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>         at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>         at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>         at 
> mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.executeTestMethod(JUnit4TestRunnerDecorator.java:162)
>         at 
> mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:71)
>         at 
> mockit.integration.junit4.internal.MockFrameworkMethod.invokeExplosively(MockFrameworkMethod.java:37)
>         at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java)
> {code}



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

Reply via email to