Wsdl2java fails when no wsdl:types element in wsdl
--------------------------------------------------
Key: MUSE-292
URL: https://issues.apache.org/jira/browse/MUSE-292
Project: Muse
Issue Type: Bug
Components: Tooling - Code Generation
Affects Versions: 2.2.0
Environment: Linux hloeblich-laptop 2.6.24-19-generic #1 SMP Fri Jul
11 21:01:46 UTC 2008 x86_64 GNU/Linux
Reporter: Hans Loeblich
Assignee: Dan Jemiolo
When running wsdl2java, was getting the following error message:
SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see the exception
information below.
An exception was caught: [ID = 'OneServicePerWSDL'] The resource inspector
can only process WSDLs with one service element.
Since this message wasn't much help, I tried stepping though muse code in a
debugger, and I think I found the issue.
In WsdUtils.java:802
Element types = XmlUtils.getElement(root, TYPES_QNAME);
This line returns null when checking for the wsdl:types element that does not
exist. This null value get passed to a method in the next line 803:
Element[] schemas = XmlUtils.getElements(types, XsdUtils.SCHEMA_QNAME);
Which tries to use the value, and gets a NullPointerException.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]