As soon as I add an argument of type java.lang.Throwable to one of
my service methods, I get an error upon activation:
WARNUNG: Exception while generating WSDL for CurrencyConverter/CurrencyConverter
14.09.2010 00:11:23
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator
SCHWERWIEGEND: Exception thrown was: org.osoa.sca.ServiceRuntimeException:
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of
IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
this problem is related to the following location:
at java.lang.StackTraceElement
at public java.lang.StackTraceElement[]
java.lang.Throwable.getStackTrace()
at java.lang.ThrowableThis
This is really bad. Where is this documented? Does every nested property of
every method
argument have to have a no-arg constructor?
This makes the implementation of an SCA LogService in Tuscany 1.6 practically
impossible, if
one cannot even pass in an exception object.
-- Sebastian