Hmmm...   Tracing through that stack trace, the only way to get a NPE there is 
the "return null" in:

    private Method getDeclaredMethod(Class<?> endpointClass, Method method) {
        if (!method.getDeclaringClass().equals(endpointClass)) {
            try {
                method = endpointClass.getMethod(method.getName(), 
(Class[])method.getParameterTypes());
            } catch (SecurityException e) {
                throw new ServiceConstructionException(e);
            } catch (NoSuchMethodException e) {
                return null;
            }
        }
        return method;
    }

What this looks like is that there is a method on your Impl that doesn't have 
a corresponding method on the SEI interface.   That said, this should have 
been detected earlier.   I'd have to double check the spec though.  It's 
possible that that "return null" should be "return method;".

Dan



On Wednesday 20 August 2008 12:06:50 pm Ryan Moquin wrote:
> I have a WSDL that worked fine with 2.0.7.  I upgraded to cxf
> 2.1.3-SNAPSHOT (so I could upgrade to Servicemix 3.3-SNAPSHOT) and I was
> still able to generate my classes from my WSDL with it, but, I get an error
> at runtime when I try to send a request from my client.  The relevant part
> of the stack trace is:
>
> Caused by: java.lang.NullPointerException
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeClass
>Info(Ref lectionServiceFactoryBean.java:599)
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperatio
>n(JaxWsS erviceFactoryBean.java:234)
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLO
>peration s(ReflectionServiceFactoryBean.java:519)
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperatio
>ns(JaxWs ServiceFactoryBean.java:243)
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFro
>mWSDL(Re flectionServiceFactoryBean.java:313)
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServi
>ceModel( ReflectionServiceFactoryBean.java:403)
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflecti
>onServic eFactoryBean.java:188)
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFac
>toryBean .java:164)
>         at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(Abs
>tractWSD LBasedEndpointFactory.java:100)
>         at
> org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
>         at
> org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBea
>n.java:9 7)
>
> I'm not sure why the WSDL generates ok, but then gives me this error at
> runtime.  Does this stack trace ring a bell with anyone of where I might
> want to look?  I will double check I'm using the updated plugins for
> generating the WSDL, though that should all have been updated together.
>
> Thanks for any help!
> Ryan



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to