This message was deleted.
# community-support
s
This message was deleted.
1
v
Could you still supply the output? That you don't see more useful information doesn't mean someone else also does not see useful information. 😉 Can you m3aybe even provide a build scan?
Hm, if the stacktrace of the NPE really is missing, that reminds me about the strange feature to omit stacktraces in certain situations. Try to add
-XX:-OmitStackTraceInFastThrow
to the daemon args to get it back if that is really that thing I remember.
l
Thanks, indeed with the option I get a stacktrace for the NPE:
Copy code
Caused by: java.lang.NullPointerException
        at org.gradle.api.internal.artifacts.dependencies.DefaultImmutableVersionConstraint.of(DefaultImmutableVersionConstraint.java:118)
        at org.gradle.internal.component.external.model.DefaultModuleComponentSelector.newSelector(DefaultModuleComponentSelector.java:172)
...
Also I managed to attach a debugger to the build and caught the NPE, turns out I had a typo in the platform definition
Copy code
api("org.apache.xmlgraphics:batik-transcoder.1.14")
vs.
api("org.apache.xmlgraphics:batik-transcoder:1.14")
Correcting that it works just fine 🎉 Thanks for the pointers 🙏
v
yw, but you should probably nevertheless report it. Imho every NPE is a bug. A message "cannot parse 'org.apache.xmlgraphics:batik-transcoder.1.14'" or whatever would have been much more helpful :-)
2
l
You're right, of course 😉 filed https://github.com/gradle/gradle/issues/20527
👌 1