Hello Martin,

I'm glad to hear you found the cause of the error.
Please do not hesitate to open a JIRA bug with your suggestion and a patch.

Regards,
Dies


Martin Atkins wrote:
Dies Koper wrote:
Hello Martin,

Judging from your stacktrace the NPE occurs in the following line:

        URL[] urls = new URL[names.length];

"names" is an array of strings that should contain the path entries in your classpath. I do not know under what circumstances it could be null, but you could try tweaking your classpath setting (-X classes/). Maybe it's the slash?


Your message prompted me to go for a little look through the source code myself. It turns out that this error is caused by including a space between the -X and the classpath value.

I'd like to politely suggest that either this create a more sensible error (by checking if option.getArgument() is null at about line 491 of Java2WSDL.java?) or ideally the tool support the space, for consistency with most other utilities which have single-letter options.


Reply via email to