-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<jaxb:globalBindings optionalProperty="primitive"> causes NullPointerException #43
Comments
Thanks for this report. I quick look at this, can you confirm if you see a root cause exception from the XJC tool itself, or only the NPE, so the NPE is blocking the real root cause from your view ? If you can only see the NPE then please report the Java version, XJB version in use when it occurred. A quick test of this on here and maybe the NPE matter is fixed (indirectly) from the updated plugin using the patches from #47 However this issue report does highlight that better diagnostic output to the user is needed if an exception is thrown from XJB through doExecute() in the plugin. To accept this as a bug report for the plugin to address you need to prove the command line tool XJC can be run with the same configuration without throwing the exception and producing expected output results for your use case. This is because I believe the NPE matter to be fixed via PR #47 as I could no recreate it but I know little of the environment you used to see the error. Please provide a ZIP file mini-project test case (using the XJB command line tool directly, without gradle or this plugin) to validate the processing you request from XJC works without the plugin, also confirm JVM, XJC and classpath JARs needed so it can be reproduced. I believe the issue is a problem with the XJC tool and/or misconfiguration as the root cause shown here when I perform the test your request (edit samples/**/basic/**/book.xsd and run
|
When i add
xsd:annotation
block with<jaxb:globalBindings optionalProperty="primitive">
, exception occurs:example of modified Books.xsd:
The text was updated successfully, but these errors were encountered: