4 Replies Latest reply on Jul 3, 2008 6:40 AM by deleted user

    NullPointerException when running java first demo inside Fuse ESB.

    Gerard Loughnane Newbie

      Hi All, I'm getting a NullPointerException inside FuseESB when I run a java first demo i've put together. I've included some of the servicemix output below. Has anybody any ideas of whats wrong here? I've included the demo itself, just to make things clearer

       

      file:///C:/OpenSourceIssues/demo1.zip

       

      DEBUG - SedaQueue                      - org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@11d7bd5

      dequeued exchange: InOut[

        id: ID:10.5.1.80-11adf47e865-3:0

        status: Error

        role: consumer

        interface: HelloWorldImplPortType

        service: HelloWorldImplService

        endpoint: HelloWorldImplPort

        operation: sayHi

        in: <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/w

      sdl-11-wrapper" xmlns:msg="http://server.hw.demo/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmln

      s:xsi="http://www.w3.org/2001/XMLSchema-instance" name="sayHi" type="msg:sayHi" version="1.0"><jbi:p

      art><ser:sayHi xmlns:ser="http://server.hw.demo/">

               <!Optional:>

               <ser:text xmlns:ser="http://server.hw.demo/">?</ser:text>

            </ser:sayHi></jbi:part></jbi:message>

        error: java.lang.NullPointerException

      ]

      DEBUG - DeliveryChannelImpl            - Notifying exchange ID:10.5.1.80-11adf47e865-3:0(1f2867) in

      DeliveryChannel{servicemix-cxf-bc} from processInboundSynchronousExchange

      DEBUG - DeliveryChannelImpl            - Notified: ID:10.5.1.80-11adf47e865-3:0(1f2867) in DeliveryC

      hannel{servicemix-cxf-bc} from sendSync

      01-Jul-2008 16:42:16 org.apache.cxf.phase.PhaseInterceptorChain doIntercept

      INFO: Interceptor has thrown exception, unwinding now

      org.apache.cxf.interceptor.Fault

              at org.apache.servicemix.cxfbc.CxfBcConsumer$JbiPostInvokerInterceptor.handleMessage(CxfBcCo

      nsumer.java:549)

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)

              at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:198)

              at org.apache.servicemix.cxfbc.CxfBcConsumer.process(CxfBcConsumer.java:199)

              at org.apache.servicemix.cxfbc.CxfBcConsumer$JbiInvokerInterceptor.handleMessage(CxfBcConsum

      er.java:525)

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)

              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:7

      7)

              at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestinat

      ion.java:280)

              at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.j

      ava:254)

              at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)

              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)

              at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:2

      06)

              at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)

              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

              at org.mortbay.jetty.Server.handle(Server.java:324)

              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

              at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)

              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)

              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

              at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

      Caused by: java.lang.NullPointerException