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
ProcessExecutor NoSuchFieldError: NULL_OUTPUT_STREAM #49
Comments
Please paste the full stacktrace here. I expect that detecting the caller class might not work with Groovy. However if you explicitly provide the Logger category class it should work fine. |
java.lang.NoSuchFieldError: NULL_OUTPUT_STREAM |
It's pretty simple field access: https://github.com/zeroturnaround/zt-exec/blob/master/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L487 Please try to just call NullOutputStream.NULL_OUTPUT_STREAM and see if it fails. |
Here's what I get when I just try to call that directly. |
So you have different version of the Commons IO library. zt-exec depends on version 1.4. You have probably an older version. |
That was it! I had another dependency that was providing the older version of Commons IO, so I just moved zt-exec to the top of my maven dependencies and everything worked great. Thank you!! |
You're welcome! |
When I try to call the below class, I get
java.lang.NoSuchFieldError: NULL_OUTPUT_STREAM
and I'm not sure why. I've tried the various versions of Slf4jStream.ofClass()/of(getClass()), etc. This is written in groovy, and it's being called from my test suite. I'd be grateful for any suggestions as to what might be going wrong.The text was updated successfully, but these errors were encountered: