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

Server cannot start because of in JDK10 class sun.misc.cleaner is missing #2

Open
arnosk opened this issue Apr 29, 2018 · 2 comments
Open

Comments

@arnosk
Copy link

arnosk commented Apr 29, 2018

Hello,
I tried to start the server on lubuntu18.04 with default-jdk installed. This is actually openJDK10.0.1
The wallet works normally but when starting the server an error is occuring because the class sun.misc.cleaner is not in openJDK10 anymore. Removing default-jdk and installing openjdk-8-jdk it runs good.

2018-04-29 11:31:45 [main] INFO c.h.bad.Fork_2_1_0_OrderMatchUpdate Initializing Fork_2_1_0_OrderMatchUpdate
"WARNING: An illegal reflective access operation has occurred"
"WARNING: Illegal reflective access by net.openhft.chronicle.core.Jvm (file:/home/arno/workspace/coins/heat/resources/heatledger/lib/chronicle-core-1.7.10.jar) to field java.nio.Bits.reservedMemory"
"WARNING: Please consider reporting this to the maintainers of net.openhft.chronicle.core.Jvm"
"WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations"
"WARNING: All illegal access operations will be denied in a future release"
2018-04-29 11:31:45 [main] INFO com.heatledger.persist.RestorableMap Attempt Fork_2_1_0_OrderMatchUpdate map recovery /home/arno/workspace/coins/heat/resources/heatledger/blockchain/Fork_2_1_0_OrderMatchUpdate
"Fatal error: java.lang.NoClassDefFoundError: sun/misc/Cleaner"
"ClassNotFoundException: sun.misc.Cleaner"
"Shutdown hook triggered, initiating HEAT 2.5.0 shutdown"
2018-04-29 11:31:46 [Thread-0] INFO com.heatledger.Heat Shutting down HEAT server 2.5.0
2018-04-29 11:31:46 [Thread-0] INFO com.heatledger.HeatProperties heat.enableAPIServer = "true"
2018-04-29 11:31:46 [Thread-0] INFO com.heatledger.HeatProperties heat.enableWebsockets = "false"
"Exception in thread "Thread-0" java.lang.NullPointerException"
"\tat com.heatledger.persist.Persist.close(Persist.java:244)"
"\tat com.heatledger.persist.Persist.shutdown(Persist.java:121)"
"\tat com.heatledger.Heat.shutdown(Heat.java:272)"
"\tat com.heatledger.Heat$1.run(Heat.java:155)"
"\tat java.base/java.lang.Thread.run(Thread.java:844)"
"[SPAWN] DONE!"

@dmdeklerk
Copy link
Member

Hi,

Thanks for the alert.

A quick look on the Chronicle component providers issue list shows Java 9 is likely not to work not as well but that they are working on updating their code. When they add support for java 9/10 HEAT will support that java version as well.

Dennis

@dmdeklerk
Copy link
Member

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