ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "binh nguyen" <linhtinh0...@gmail.com>
Subject Re: Error when invoke Web service from BPEL
Date Fri, 31 Oct 2008 01:21:17 GMT
Hi Matthieu,

When using Invoke a Web service that does not have Input (Output only), it
works well.
But when I add an Input (even though with simple types such as Int or
String), it does not work.

Look at the error message:

java.lang.NullPointerException
        at
NewWS.NewWebServiceFromWSDL.reverse(NewWebServiceFromWSDL.java:21)

it seems that Invoke can not tranfer the Input to called Web service.
I don't  think that it is an error of ODE engine, but do you have any idea
about the reason of this error?

Thank you so much!
Binh.


2008/10/30 Matthieu Riou <matthieu@offthelip.org>

> On Tue, Oct 28, 2008 at 1:27 PM, binh nguyen <linhtinh0274@gmail.com>
> wrote:
>
> > Hi everyone,
> > I have a Web Service having the operation *reverse* to reverse a string.
> > This WS works well when tried with a Java program client, but when
> invoked
> > from a BPEL,
> > I encounter the following error (I use ODE 1.2 for BPEL Engine run in
> > Tomcat
> > 5.5;
> > I tried to deploy the Web service in both Tomcat 5.5 and 6 but the same
> > error):
> >
>
> This error seems to be happening in your code
> (NewWS.NewWebServiceFromWSDL.reverse), I would try to see what's wrong with
> the message you receive. Enabling httpclient debug logging could help:
>
> *log4j*.*category*.org.apache.commons.*httpclient* = DEBUG
>
> Matthieu
>
>
> > Oct 29, 2008 7:12:25 AM com.sun.xml.ws.server.sei.EndpointMethodHandler
> > invoke
> > SEVERE: null
> > java.lang.NullPointerException
> >        at
> > NewWS.NewWebServiceFromWSDL.reverse(NewWebServiceFromWSDL.java:21)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >        at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> >
> >
> com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
> >        at
> com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
> >        at
> >
> >
> com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
> >        at
> >
> >
> com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
> >        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
> >        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
> >        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
> >        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
> >        at
> > com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
> >        at
> >
> >
> com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
> >        at
> > com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
> >        at
> >
> >
> com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
> >        at
> >
> >
> com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
> >        at
> >
> >
> com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
> >        at
> > com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >        at
> >
> >
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >        at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >        at
> >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >        at
> >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> >        at
> >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >        at
> >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >        at
> >
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >        at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >        at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> >        at
> >
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >        at
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >        at java.lang.Thread.run(Thread.java:619)
> >
> > Any one have any idea about the reason of this error, please let me know.
> > Thank you!
> > Binh.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message