Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4149

org.apache.cxf.endpoint.ClientImpl raises

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4.4, 2.4.6, 2.5.2
    • Fix Version/s: 2.3.10, 2.4.7, 2.5.3
    • Component/s: Bus
    • Labels:
      None
    • Environment:

      Eclipse Helios, Tomcat 6, JDK 1.6, Windows 7

    • Estimated Complexity:
      Unknown

      Description

      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(ClientCallback.java:147)
      at org.apache.cxf.jaxws.JaxwsResponseCallback.get(JaxwsResponseCallback.java:49)
      at org.ensure.configLayer.planningLayer.services.PreservationPlanOptimizer.PreservationPlanOptimizer.invokeAnalysisModules(PreservationPlanOptimizer.java:382)
      at org.ensure.configLayer.planningLayer.services.PreservationPlanOptimizer.PreservationPlanOptimizer.getOptimizedGlobalPreservationPlans(PreservationPlanOptimizer.java:166)
      at org.ensure.configLayer.test.planningLayer.PreservationPlanOptimizer.tester.Tester.main(Tester.java:37)
      Caused by: java.lang.NullPointerException
      at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:715)
      at org.apache.cxf.endpoint.ClientImpl$1.onMessage(ClientImpl.java:890)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1626)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$1.run(HTTPConduit.java:1498)
      at java.lang.Thread.run(Unknown Source)

      Kind regards,

      Jorge.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              jorgevs Jorge Vaquero
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: