On Tue February 10 2009 2:05:11 pm Will Gomes wrote: > I attached a patch to the JIRA issue. Not sure, if this satisfies the > "Client side still needs quite a bit of work." mentioned in the JIRA. > However it should no longer throw the error i was seeing.
Close enough. I added a loop to check public getter/setter methods as well which should be enough to close off the issue. Thanks! Dan > > dkulp wrote: > > I believe this is a symptom of: > > https://issues.apache.org/jira/browse/CXF-973 > > > > Patches to fix this would be great. Basically, around line 152 of > > ClientFaultConverter, if the constructor is null (update it to not throw > > the > > exception or similar), use reflection to copy all the fields from the > > bean to > > the exception. > > > > Dan > > > > On Wed February 4 2009 2:46:14 pm Will Gomes wrote: > >> I have a set of exceptions in package org.foo.exceptions which I'm using > >> in > >> a Service residing in package org.foo.bar.Service. > >> > >> I generated exception beans and placed them in package > >> org.foo.exceptions.jaxws. When I use the @WebFaultAnnotation to point to > >> these fault beans, cxf throws the following error: > >> > >> org.apache.cxf.interceptor.ClientFaultConverter - Exception occurred > >> while > >> creating exception: > >> org.foo.exceptions.DoesNotExistException.<init>(java.lang.String, > >> org.foo..exceptions.jaxws.DoesNotExistExceptionBean) > >> java.lang.NoSuchMethodException: > >> org.foo.exceptions.DoesNotExistException.<init>(java.lang.String, > >> org.foo.exceptions.jaxws.DoesNotExistExceptionBean) > >> > >> I don't understand why this constructor is necessary in the exception > >> class? > >> > >> Using @WebFault with jaxws metro implementation did not require this > >> constructor. If I get rid of the @WebFault, CXF is happy. Metro, > >> however, > >> dynamically generates org.foo.bar.jaxws.DoesNotExistExceptionBean rather > >> than using org.foo.exceptions.jaxws.DoesNotExistExceptionBean. I could > >> not > >> determine if CXF was also dynamically generating an exception bean in > >> this > >> scenario. > > > > -- > > Daniel Kulp > > [email protected] > > http://www.dankulp.com/blog -- Daniel Kulp [email protected] http://www.dankulp.com/blog
