Skip to content
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

Exception on setting docLocale #34

Open
tanvi-zwei opened this issue May 22, 2021 · 2 comments
Open

Exception on setting docLocale #34

tanvi-zwei opened this issue May 22, 2021 · 2 comments

Comments

@tanvi-zwei
Copy link

Dear all,
Could you please help.
When I set the docLocale I get an exception on running xjcGenerate:

A failure occurred while executing org.unbrokendome.gradle.plugins.xjc.work.xjc23.XjcGeneratorWorkAction
Could not serialize unit of work.
> java.lang.NullPointerException (no error message)

It happens both when I set in sourceSets.main as xjc.docLocale = Locale.US
Or when I set it in gradle.properties as xjc.docLocale=en ( as it is in example)
Without this setting files are generated perfectly.
Please suggest.
Thank you

@robertoschwald
Copy link

Same here.

xjc {
 docLocale.set(Locale.ENGLISH)
}

causes

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':api:xjcGenerate'.
> A failure occurred while executing org.unbrokendome.gradle.plugins.xjc.work.xjc23.XjcGeneratorWorkAction
   > Could not serialize unit of work.
      > Cannot invoke "org.gradle.internal.hash.HashCode.toByteArray()" because the return value of "org.gradle.internal.snapshot.impl.IsolatedSerializedValueSnapshot.getImplementationHash()" is null

OS: macOS 12.2.1 (Apple Silicon)
Gradle Version: 7.3.3
Java Version: 17.0.2 (Azul Systems, Inc. 17.0.2+8-LTS) (aarch64)

@dlmiles
Copy link

dlmiles commented Mar 25, 2023

All the matters reported here should be addressed in PR #47 with commit a43ca22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants