tWebService Input and WSDL2Java - Generate Java Files Failed.

One Star

tWebService Input and WSDL2Java - Generate Java Files Failed.

Hi,
We have a WSDL that we are trying to talk to with Talend.
I do the following:
* Add tWebServiceInput
* Under the tWebServiceInput basic settings:
** Set the WSDL field to the URL of the web service
* Under the tWebServiceInput advanced settings:
** Tick the 'Advanced Use' checkbox
** Click the 'WSDL2Java' button
This gives the following error:
Generate Java Files Failed.
java.lang.NullPointerException :
Is there any way to debug this further?
Is there any logging that Talend does?
Any help is greatly appreciated.
Thanks in advance.
One Star

Re: tWebService Input and WSDL2Java - Generate Java Files Failed.

I have also tested the WSDL with Apache Axis' native wsdl2java.sh stub generator and that completed without error.
One Star

Re: tWebService Input and WSDL2Java - Generate Java Files Failed.

I checked the .metadata/.log file in my workspace, and I see this:

!ENTRY org.talend.platform.logging 4 0 2012-02-06 13:41:57.860
!MESSAGE 2012-02-06 13:41:57,859 ERROR org.talend.commons.exception.CommonExceptionHandler -
!STACK 0
java.lang.NullPointerException
at org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.getAsFieldName(JavaBeanHelperWriter.java:435)
at org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeMetaData(JavaBeanHelperWriter.java:325)
at org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeFileBody(JavaBeanHelperWriter.java:183)
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileBody(JavaBeanWriter.java:257)
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
at org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1405)
at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
at java.lang.Thread.run(Thread.java:680)
Hope this helps...
One Star

Re: tWebService Input and WSDL2Java - Generate Java Files Failed.

It is now also a bug in Talend's jira...
Link here: http://jira.talendforge.org/browse/TDI-19624