This content has been marked as final.
Show 2 replies
-
1. Re: WSException: String passed is null
apfeuti May 19, 2006 10:13 AM (in response to apfeuti)There was a problem with the xml-snippets, here again:
Hi
I'm using jboss-4.0.4.GA and generate WebService-Artefacts with wstools (ant-task). As input I use a wsdl.
If I declare a exception in the section of a wsdl like this:<element name="CronServiceExceptionType"> <complexType> <sequence> <element name="message" type="string"/> </sequence> </complexType> </element>
I get this exception from wstools:
org.jboss.ws.WSException: String passed is null
[wstools] at org.jboss.ws.metadata.wsdl.WSDLUtils.firstLetterUpperCase(WSDLUtils.java:453)
[wstools] at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:137)
[wstools] at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:113)
[wstools] at org.jboss.ws.tools.WSDLToJava.generateJavaSourceForException(WSDLToJava.java:504)
[wstools] at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:307)
[wstools] at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:333)
[wstools] at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:355)
[wstools] at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:174)
[wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:326)
[wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
[wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
[wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
[wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
But when I declare the exception like this everything works fine:<complexType name="CronServiceExceptionType"> <sequence> <element name="message" type="string"/> </sequence> </complexType> <element name="CronServiceExceptionType" type="tns:CronServiceExceptionType"/>
Is there an explanation for this or is that a bug?
Regards,
Andreas