3 Replies Latest reply on Aug 14, 2009 3:36 AM by Mahesh Sankaran

    Null Pointer Exception when multiple parameters are passed

    abdul khaliq gaffar Newbie

      Hi,

       

      I have created webservice with multiple input parameters . When i run the webervice in designer mode i get the following exception.But with single parameter there seems to be no issue.

       

      Any help on this would be apperciated.

       

      Regards,

      Khaliq

       

       

      WARNING: Interceptor has thrown exception, unwinding now

      org.apache.cxf.interceptor.Fault

           at org.apache.camel.component.cxf.CamelInvoker.invoke(CamelInvoker.java:200)

           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.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:186)

           at org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:78)

           at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:126)

           at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:111)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:80)

           at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:189)

           at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:133)

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:115)

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:89)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)

           at org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)

           at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)

           at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)

           at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)

           at org.apache.camel.component.cxf.CamelInvoker.invoke(CamelInvoker.java:185)

           ... 22 more