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

HMIPServer not starting anymore #2470

Closed
jens-maus opened this issue Oct 16, 2023 · 0 comments
Closed

HMIPServer not starting anymore #2470

jens-maus opened this issue Oct 16, 2023 · 0 comments
Labels
🐛 bug-report Something isn't working 🏷️ HmIPServer This refs the HmIPServer component 👍 important This is an important issue/ticket with high priority

Comments

@jens-maus
Copy link
Owner

Describe the issue you are experiencing

Since Version 3.71.12.20231014 monit seems to constantly trying to restart HMIPServer because it crashes with Exceptions during startup.

Here are some log output snippets point at problems with the Java environment:

2023-10-15 13:45:24,095 de.eq3.cbcs.util.EQ3LoggerOutputStream ERROR [Thread-1] Exception in thread "Thread-1" java.lang.IllegalAccessError: class org.rrd4j.core.RrdNioBackend (in unnamed module @0x27d415d9) cannot access class sun.nio.ch.DirectBuffer (in module java.base) because module java.base does not export sun.nio.ch to unnamed module @0x27d415d9 
2023-10-16 09:31:55,103 de.eq3.cbcs.util.EQ3LoggerOutputStream ERROR [Thread-1] Exception in thread "Thread-1" java.lang.NoSuchMethodError: 'sun.misc.Cleaner sun.nio.ch.DirectBuffer.cleaner()' 

After some short investigation it seems that the first Exception cannot access class sun.nio.ch.DirectBuffer can be worked around via addition of --add-opens java.base/sun.nio.ch=ALL-UNNAMED (cf. c618a97). However, the second issue seems to point at an incompatibility of the HMIPServer sources with Java version newer than version 8 (see https://stackoverflow.com/questions/73104986/chronicle-with-corretto-jdk17-java-lang-nosuchmethoderror-sun-misc-cleaner-sun, apache/spark#22993)

Describe the behavior you expected

HMIPServer should start normally.

Steps to reproduce the issue

  1. Make sure your CCU is using the embedded diagram functionality
  2. Try to update to 3.71.12.20231014
  3. Note, that the startup takes a very long time and that HMIPServer alarm messages appear suggesting that HMIPServer isn't starting properly
  4. Take a look into /var/log/hmipserver.log and have a look for the mentioned Java exceptions.

What is the version this bug report is based on?

3.71.12.20231014

Which base platform are you running?

ova (Open Virtual Infrastructure)

Which HomeMatic/homematicIP radio module are you using?

n/a

Anything in the logs that might be useful for us?

n/a

Additional information

Issue has been first reported here:
https://homematic-forum.de/forum/viewtopic.php?f=65&t=80179&start=40#p780734
https://homematic-forum.de/forum/viewtopic.php?f=65&t=80179&p=780760#p780759

@jens-maus jens-maus added 🐛 bug-report Something isn't working 🏷️ HmIPServer This refs the HmIPServer component labels Oct 16, 2023
@jens-maus jens-maus added this to the next release milestone Oct 16, 2023
@jens-maus jens-maus added the 👍 important This is an important issue/ticket with high priority label Oct 16, 2023
jens-maus added a commit that referenced this issue Oct 16, 2023
incompatibilities in HMIPServer to run with Java versions > 8
(see #2470)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug-report Something isn't working 🏷️ HmIPServer This refs the HmIPServer component 👍 important This is an important issue/ticket with high priority
Projects
None yet
Development

No branches or pull requests

1 participant