Hi
On 21/02/12 17:17, ceineke wrote:
Sergey Beryozkin-5 wrote
Can you post a sample bean class, similar to the one which is causing it
please ? How does a relevant method signature look like ?
Hello Sergey,
I tracked down the cause for the stack overflow. Here are the relevant
pieces of code. The method signature that's causing it is the following
(with type names changed to protected the innocent):
@GET @Path("/foo")
Foo foo(@QueryParam("") Foo foo);
Foo.java:
public class Foo extends com.foo.FooTO { ... }
FooTO.java:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
...
})
@XmlRootElement(name = "foo")
public class Foo
FooTO is generated by JAXB from an XSD which I reference in the
jaxrs:schemaLocations section of my bean configuration file. I replaced
FooPreview with void to rule it out as well.
Any ideas?
I've done a quick test by using a bean class which extends the other
bean class and it works, so obviously something in the classes you work
with causes it. It is definitely not JAXB annotations...
So we have
public class Foo extends com.foo.FooTO {
//....
}
public class FooTO {
//...
}
Something in Foo or FooTO causes the generator to recurse indefinitely...
Please post more concrete samples
Thanks, Sergey
--
View this message in context:
http://cxf.547215.n5.nabble.com/StackOverflowError-when-invoking-WADL-generator-tp5502689p5502833.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com