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

WSDL2Java -allowElementReferences causes fatal errors in operation dispatching

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.2.3, 2.3
    • 2.1.7, 2.2.4
    • None
    • None
    • Advanced

    Description

      If I make use of local element references in WSDL, and run WSDL2Java passing the -allowElementReferences flag, the code all gets properly generated with appropriate unwrapping, however, the service does not work as the exchange is unable to locate the appropriate method in the implementation. The following error is generated whenever a method using element references is invokved:

      Sep 2, 2009 11:04:57 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
      WARNING: Application has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: null while invoking <null> with params [oster].
      at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:152)
      at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:83)
      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:126)
      at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)
      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:98)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)
      at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:302)
      at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:266)
      at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:326)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
      at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
      Caused by: java.lang.NullPointerException
      at org.apache.cxf.service.invoker.AbstractInvoker.insertExchange(AbstractInvoker.java:171)
      at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:160)
      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:82)
      ... 24 more

      Attachments

        1. common_build.xml
          14 kB
          Scott Oster
        2. wsdl_first_element_ref_noflag.zip
          64 kB
          Scott Oster
        3. wsdl_first_element_ref_withflag.zip
          52 kB
          Scott Oster

        Activity

          People

            dkulp Daniel Kulp
            ostersc Scott Oster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: