java.lang.AssertionError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check your pattern declaration or check your assert declaration.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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}
    via by Libor Kramolis,
  • 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}
    via by Libor Kramolis,
  • GitHub comment 55#267642645
    via GitHub by KaplanAlexander
    ,
  • GitHub comment 55#267672583
    via GitHub by KaplanAlexander
    ,
  • GitHub comment 55#267678726
    via GitHub by KaplanAlexander
    ,
    • 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    rsprangemeijerrsprangemeijer
    1 times, last one,
    Andreas HäberAndreas Häber
    8 times, last one,
    osvzsosvzs
    2 times, last one,
    CasperCasper
    2 times, last one,
    95 more bugmates