ebi-pf-team / interproscan

Genome-scale protein function classification
Apache License 2.0
303 stars 67 forks source link

which java version? Incompatible magic value 4294967295 in class file #299

Closed ejblom closed 6 months ago

ejblom commented 2 years ago

Hi

I am trying to run InterProscan in a Docker container. I tried with the latest openjdk-11 image, which is the minimum Java requirement. I was getting these errors:

Exception in thread "Thread-0" java.lang.ClassFormatError: Incompatible magic value 4294967295 in class file java/util/WeakHashMap$KeyIterator
        at java.base/java.util.WeakHashMap$KeySet.iterator(WeakHashMap.java:880)
        at org.h2.engine.OnExitDatabaseCloser.onShutdown(OnExitDatabaseCloser.java:83)
        at org.h2.engine.OnExitDatabaseCloser.run(OnExitDatabaseCloser.java:114)

so I decided to go with an ubuntu 20.04 base image and install openjdk 17 (the latest LTS version). However for 100 analyses, around 30-40 get this error. Is there a specific Java JDK used? Or perhaps some other suggestions?

matthiasblum commented 1 year ago

Works fine with OpenJDK 17:

$ java -version
openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)
OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)

I don't think this error comes from the version of Java. Do you run all your jobs on the same host?