tags:

views:

441

answers:

1

I have a web service built using Apache CXF 2.1.3. One of the web params is a java.lang.Throwable. When I call JaxWsServerFactoryBean.setServiceBean, I get an IllegalAnnotationException as java.lang.StackTraceElement doesn't have a no-arg constructor.

The JIRA bug report here claims to have fixed the problem, but I am still getting the exception. Any ideas?

I am using java 1.6.0_11.

+1  A: 

Have you tried updating to CXF 2.1.5?

Daniel Kulp
CXF 2.1.5 and 2.2.1 give the same problem. java.lang.StackTraceElement does not have a no-arg default constructor.
Bala
Dan, since when can you pass a throwable in an SEI at all?
bmargulies
Good point. Throwable isn't mappable into a JAXB type and thus isn't usable as a parameter or return value.
Daniel Kulp