Sorry, I shouldn't be pushy. Not sure if the bottom has any other
side-effects, not understanding entirely how getPackageName is being used in
the Request/Response methods. It works, though. :)

Index:
rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
===================================================================
---
rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
(revision 543359)
+++
rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
(working copy)
@@ -517,6 +517,8 @@
    }

    private static String getPackageName(Method method) {
+               if (null == method.getDeclaringClass().getPackage())
+                       return "";
        return method.getDeclaringClass().getPackage().getName();
    }



On 5/31/07, Brice Ruth <[EMAIL PROTECTED]> wrote:

Fixed?

On 5/31/07, Dan Diephouse <[EMAIL PROTECTED]> wrote:
>
> I see the issue - Class.getPackage() is allowed to return null (which
> happens in a lot of cases) and whoever wrote the code didn't realize
> that.
> We'll fix this up for you right away and report back... I'll do this
> tomorrow unless someone gets to it before I wake up again :-)
>
> - Dan
>
> On 5/30/07, Brice Ruth <[EMAIL PROTECTED]> wrote:
> >
> > I can't seem to pass in a proxied class as my serviceBean for the
> jaxws
> > endpoint. When the processing hits line 488 of
> JaxWsServiceConfiguration,
> > it
> > invokes getPackageName() on the proxy, which throws an NPE at line
> 505.
> >
> > I would imagine that it would be common to receive a proxy for the
> > serviceBean if AOP is being used, for instance for declarative
> > transactions.
> >
> > Maybe I'm not on the right track, though - please let me know!
> >
> > --
> > Brice Ruth, FCD
> > Software Engineer, Madison WI
> >
>
>
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>



--
Brice Ruth, FCD
Software Engineer, Madison WI




--
Brice Ruth, FCD
Software Engineer, Madison WI

Reply via email to