java.lang.AssertionError: null

Java.net JIRA | Libor Kramolis | 3 years ago
  1. 0

    Test expects {{SocketTimeoutException}} is thrown but on some hudson servers it throws {{NoRouteToHostException}}. {code} java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.fail(Assert.java:95) at org.glassfish.jersey.jetty.connector.TimeoutTest.testUnknownHost(TimeoutTest.java:142) Standard Error javax.ws.rs.ProcessingException: java.util.concurrent.ExecutionException: java.net.NoRouteToHostException: No route to host at org.glassfish.jersey.jetty.connector.JettyConnector.apply(JettyConnector.java:249) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:217) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:655) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:652) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:422) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:652) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:387) at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:291) at org.glassfish.jersey.jetty.connector.TimeoutTest.testUnknownHost(TimeoutTest.java:138) ... Caused by: java.util.concurrent.ExecutionException: java.net.NoRouteToHostException: No route to host at org.eclipse.jetty.client.util.FutureResponseListener.getResult(FutureResponseListener.java:118) at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:101) at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:470) at org.glassfish.jersey.jetty.connector.JettyConnector.apply(JettyConnector.java:234) ... 42 more Caused by: java.net.NoRouteToHostException: No route to host at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:735) at org.eclipse.jetty.io.SelectorManager.finishConnect(SelectorManager.java:260) at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processConnect(SelectorManager.java:532) at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processKey(SelectorManager.java:505) at org.eclipse.jetty.io.SelectorManager$ManagedSelector.select(SelectorManager.java:458) at org.eclipse.jetty.io.SelectorManager$ManagedSelector.run(SelectorManager.java:423) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532) at java.lang.Thread.run(Thread.java:724) {code}

    Java.net JIRA | 3 years ago | Libor Kramolis
    java.lang.AssertionError: null
  2. 0

    Test expects {{SocketTimeoutException}} is thrown but on some hudson servers it throws {{NoRouteToHostException}}. {code} java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.fail(Assert.java:95) at org.glassfish.jersey.jetty.connector.TimeoutTest.testUnknownHost(TimeoutTest.java:142) Standard Error javax.ws.rs.ProcessingException: java.util.concurrent.ExecutionException: java.net.NoRouteToHostException: No route to host at org.glassfish.jersey.jetty.connector.JettyConnector.apply(JettyConnector.java:249) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:217) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:655) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:652) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:422) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:652) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:387) at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:291) at org.glassfish.jersey.jetty.connector.TimeoutTest.testUnknownHost(TimeoutTest.java:138) ... Caused by: java.util.concurrent.ExecutionException: java.net.NoRouteToHostException: No route to host at org.eclipse.jetty.client.util.FutureResponseListener.getResult(FutureResponseListener.java:118) at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:101) at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:470) at org.glassfish.jersey.jetty.connector.JettyConnector.apply(JettyConnector.java:234) ... 42 more Caused by: java.net.NoRouteToHostException: No route to host at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:735) at org.eclipse.jetty.io.SelectorManager.finishConnect(SelectorManager.java:260) at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processConnect(SelectorManager.java:532) at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processKey(SelectorManager.java:505) at org.eclipse.jetty.io.SelectorManager$ManagedSelector.select(SelectorManager.java:458) at org.eclipse.jetty.io.SelectorManager$ManagedSelector.run(SelectorManager.java:423) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532) at java.lang.Thread.run(Thread.java:724) {code}

    Java.net JIRA | 3 years ago | Libor Kramolis
    java.lang.AssertionError: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. andyglick 7 times, last 3 months ago
  2. tfr 4 times, last 5 months ago
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.AssertionError

    null

    at org.junit.Assert.fail()
  2. JUnit
    Assert.fail
    1. org.junit.Assert.fail(Assert.java:86)
    2. org.junit.Assert.fail(Assert.java:95)
    2 frames
  3. org.glassfish.jersey
    TimeoutTest.testUnknownHost
    1. org.glassfish.jersey.jetty.connector.TimeoutTest.testUnknownHost(TimeoutTest.java:142)
    1 frame