You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Chris Twiner (JIRA)" <ji...@apache.org> on 2008/12/15 13:39:44 UTC
[jira] Assigned: (MUSE-292) Wsdl2java fails when no wsdl:types
element in wsdl
[ https://issues.apache.org/jira/browse/MUSE-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Twiner reassigned MUSE-292:
---------------------------------
Assignee: Chris Twiner (was: Dan Jemiolo)
> 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: Chris Twiner
>
> 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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org