I was working on part-five to a longer tutorial using Camel and CXF
I have a handcrafted .wsdl which I use the wsdl2java tool to generate source code.
I was getting this error reported from wsdl2java
So I was messing a bit with the .wsdl to see what was wrong
How to reproduce
1) Download the .zip from: http://cwiki.apache.org/confluence/display/CAMEL/Tutorial-Example-ReportIncident-Part5
2) Unzip to a folder
3) Run: mvn test it should run fine
4) Edit the file: src/main/resources/report_incident.wsdl
5) Change from
to remove the type attribute (yes I was being a bit mean), so its
7) Run: mvn test again and see the error
The problem is the NPE doesnt give you any hint what was wrong. What if the .wsdl was very large and you didn't have a clue what was wrong with it.