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

WSDL generation at WS-RM endpoint leads to NPE in the server's log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.7, 2.7.8, 2.7.9, 3.0.0-milestone2, 2.7.10
    • 2.7.11, 3.0
    • WS-* Components
    • None
    • Unknown

    Description

      Retrieving the wsdl file from an WS-RM endpoint will lead to an NPE at the server side log, although the wsdl document itself will be returned to the calling client.

      java.lang.NullPointerException
      at org.apache.cxf.ws.rm.RMManager.getReliableEndpoint(RMManager.java:381)
      at org.apache.cxf.ws.rm.RMManager.getDestination(RMManager.java:398)
      at org.apache.cxf.ws.rm.RMDeliveryInterceptor.handle(RMDeliveryInterceptor.java:48)
      at org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:83)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
      at org.apache.cxf.phase.PhaseInterceptorChain.doInterceptStartingAt(PhaseInterceptorChain.java:456)
      at org.apache.cxf.frontend.WSDLGetInterceptor.handleMessage(WSDLGetInterceptor.java:93)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:241)
      at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:259)
      at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      at org.eclipse.jetty.server.Server.handle(Server.java:370)
      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
      at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
      at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      at java.lang.Thread.run(Thread.java:744)

      More details in
      http://cxf.547215.n5.nabble.com/WS-RM-and-WSDLGetInInterceptor-td5740962.html

      This is a regression from CXF-5151 and affects CXF versions 2.7.7 to 2.7.10.

      Attachments

        Issue Links

          Activity

            People

              ay Akitoshi Yoshida
              ay Akitoshi Yoshida
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: