cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conrad O'Dea" <>
Subject cannot implement service using Provider<DataSource>
Date Wed, 20 Jun 2007 10:23:24 GMT

I'm trying to create a service with Provider<DataSource> which is
published using XML/HTTP.  I can publish the endpoint without problem
but invoking on the service does not work.

My Provider is declared as follows:

@WebServiceProvider(serviceName = "FooProvider")
@ServiceMode(value = Service.Mode.MESSAGE)
@BindingType(value = "")
public class FooProvider implements Provider<DataSource> {
  public DataSource invoke(DataSource msg) {
When my client invokes on this endpoint (as simple GET will do), I get
the NPE below.  I've debugged through this and when CXF is building
the InterfaceInfo bean for the service, it is not recognizing the
invoke method of the Provider implementation.  This is because
JaxWsServiceFactoryBean.isValid calls
WebServiceProviderConfiguration.isOperation which (amongst other
things) checks:

       || SOAPMessage.class.isAssignableFrom(method.getParameterTypes()[0])

so it looks like DataSource is not supported.  This is something that
worked previously. Is there anything else I need to do to re-enable


INFO: Interceptor has thrown exception, unwinding now


	at org.apache.cxf.frontend.SimpleMethodDispatcher.getMethod(

	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(

	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$

	at org.apache.cxf.workqueue.SynchronousExecutor.execute(

	at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(

	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(

	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(

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

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

	at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(

	at org.mortbay.jetty.handler.ContextHandler.handle(

	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(

	at org.mortbay.jetty.handler.HandlerWrapper.handle(

	at org.mortbay.jetty.Server.handle(

	at org.mortbay.jetty.HttpConnection.handleRequest(

	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(

	at org.mortbay.jetty.HttpParser.parseNext(

	at org.mortbay.jetty.HttpParser.parseAvailable(

	at org.mortbay.jetty.HttpConnection.handle(


	at org.mortbay.thread.BoundedThreadPool$

View raw message