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

Crash with Java 17 #272

Closed
slachiewicz opened this issue Dec 15, 2020 · 3 comments
Closed

Crash with Java 17 #272

slachiewicz opened this issue Dec 15, 2020 · 3 comments
Milestone

Comments

@slachiewicz
Copy link
Member

Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.mvndaemon.mvnd.common.MavenDaemon.main(MavenDaemon.java:75)
Caused by: java.lang.IllegalAccessError: class org.mvndaemon.mvnd.common.DaemonRegistry (in unnamed module @0x38e79ae3) cannot access class sun.nio.ch.DirectBuffer (in module java.base) because module java.base does not export sun.nio.ch to unnamed module @0x38e79ae3
at org.mvndaemon.mvnd.common.DaemonRegistry.compareAndSwapLong(DaemonRegistry.java:473)
at org.mvndaemon.mvnd.common.DaemonRegistry.tryLockNanos8a(DaemonRegistry.java:419)
at org.mvndaemon.mvnd.common.DaemonRegistry.tryLockNanosLong(DaemonRegistry.java:377)
at org.mvndaemon.mvnd.common.DaemonRegistry.busyLockLong(DaemonRegistry.java:346)
at org.mvndaemon.mvnd.common.DaemonRegistry.doUpdate(DaemonRegistry.java:231)
at org.mvndaemon.mvnd.common.DaemonRegistry.update(DaemonRegistry.java:223)
at org.mvndaemon.mvnd.common.DaemonRegistry.store(DaemonRegistry.java:208)
at org.mvndaemon.mvnd.daemon.Server.(Server.java:139)
... 6 more

@ppalaga
Copy link
Contributor

ppalaga commented Dec 16, 2020

Interesting, thanks for the report. We have recently changed how the registry is locked. Would you plz try to reproduce with a recent CI build, e.g. this one? https://github.com/mvndaemon/mvnd/actions/runs/423338455#artifacts

@slachiewicz
Copy link
Member Author

Yes, it works correctly - thx for fixing.

@ppalaga
Copy link
Contributor

ppalaga commented Jan 7, 2021

For the record, this should have been fixed by 73dec36 available in mvnd version 0.2.0

@ppalaga ppalaga added this to the 0.2.0 milestone Jan 7, 2021
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

2 participants