java.util.concurrent.ExecutionException: java.lang.NullPointerException

Apache's JIRA Issue Tracker | Jorge Vaquero | 5 years ago
  1. 0

    When invoking several different web services asynchronously a NullPointerException is raised. The web services were invoked firstly in parallel later sequentially. The issue occurs more frequently when the web services are executed in parallel. Apparently the issue is at ClientImpl line 715 in version 2.4.4. I've debugged the issue and in some executions bus is null on method onMessage: public void onMessage(Message message) { Endpoint endpoint = message.getExchange().getEndpoint(); if (endpoint == null) { // in this case correlation will occur outside the transport, // however there's a possibility that the endpoint may have been // rebased in the meantime, so that the response will be mediated // via a set of in interceptors provided by a *different* endpoint // endpoint = getConduitSelector().getEndpoint(); message.getExchange().put(Endpoint.class, endpoint); } message = endpoint.getBinding().createMessage(message); message.getExchange().setInMessage(message); message.put(Message.REQUESTOR_ROLE, Boolean.TRUE); message.put(Message.INBOUND_MESSAGE, Boolean.TRUE); ===> PhaseManager pm = bus.getExtension(PhaseManager.class); This is the exception raised: GRAVE: ExecutionException java.util.concurrent.ExecutionException: java.lang.NullPointerException at org.apache.cxf.endpoint.ClientCallback.get( at org.apache.cxf.jaxws.JaxwsResponseCallback.get( at at at org.ensure.configLayer.test.planningLayer.PreservationPlanOptimizer.tester.Tester.main( Caused by: java.lang.NullPointerException at org.apache.cxf.endpoint.ClientImpl.onMessage( at org.apache.cxf.endpoint.ClientImpl$1.onMessage( at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal( at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$ at Source) Kind regards, Jorge.

    Apache's JIRA Issue Tracker | 5 years ago | Jorge Vaquero
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 10 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.NullPointerException

      No message provided

      at org.apache.cxf.endpoint.ClientImpl.onMessage()
    2. Apache CXF Core
      1. org.apache.cxf.endpoint.ClientImpl.onMessage(
      2. org.apache.cxf.endpoint.ClientImpl$1.onMessage(
      2 frames
    3. Apache CXF Runtime HTTP Transport
      1. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(
      2. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$
      2 frames
    4. Java RT
      1. Source)
      1 frame