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

Java and Groovy error while first time using JAFFA version 2.3 #91

Open
hkoseoglu opened this issue Apr 13, 2023 · 3 comments
Open

Java and Groovy error while first time using JAFFA version 2.3 #91

hkoseoglu opened this issue Apr 13, 2023 · 3 comments

Comments

@hkoseoglu
Copy link

hkoseoglu commented Apr 13, 2023

Dear JAFFA Developer,

I encountered a java.lang.ExceptionInInitializerError with the following stack trace:

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131) Caused by: groovy.lang.MissingMethodException: No signature of method: static java.util.logging.Logger.getLogger() is applicable for argument types: (java.lang.String) values: [bpipe.Runner] at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1500) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1486) at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:53) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at bpipe.Runner.<clinit>(Runner.groovy:52) ... 6 more
I used this code to use JAFFA:

./tools/bin/bpipe run JAFFA_assembly.groovy example/MiSeqSim_1.fastq.gz example/MiSeqSim_2.fastq.gz

Versionf of java and groovy

groovy --version Groovy Version: 4.0.11 JVM: 17.0.6 Vendor: Private Build OS: Linux

java --version openjdk 17.0.6 2023-01-17 OpenJDK Runtime Environment (build 17.0.6+10-Ubuntu-0ubuntu120.04.1) OpenJDK 64-Bit Server VM (build 17.0.6+10-Ubuntu-0ubuntu120.04.1, mixed mode, sharing)

I believe this error is related to a missing method in the java.util.logging.Logger class being called with an argument of type java.lang.String in the bpipe.Runner class. Can you please provide guidance on how to resolve this issue?

Thank you for your attention.
Huseyin

@nadiadavidson
Copy link
Member

Hi Huseyin,

Sorry for the very slow reply to this message! I've only just seen it now.

This looks like an issue related to bpipe, so I think your best option might be to try to install bpipe manually (see https://docs.bpipe.org/) until you know it is working and then run JAFFA like:
run JAFFA_assembly.groovy example/MiSeqSim_1.fastq.gz example/MiSeqSim_2.fastq.gz

If this fails you may be able to get some assistance from the bpipe author, @ssadedin

Cheers,
Nadia.

@ssadedin
Copy link

ssadedin commented May 2, 2023

hi @hkoseoglu unfortunately this problem is related to Java version 17. Older versions of Bpipe require Java 8 or older, newer versions can run with Java 11. Could you try installing one of those versions and seeing if that helps?

@RDorney
Copy link

RDorney commented Jan 8, 2024

Hello, I have run into a similar issue with JAFFAL.
And found the above solutions work also solve this issue :)

/opt/JAFFA-version-2.3/tools/bin/bpipe run -n 1 -p exclude="NoSupport,PotentialReadThrough" -p jaffa_output="jaf
fal_results_SGNex_MCF/" /opt/JAFFA-version-2.3/JAFFAL.groovy SGNex_MCF7_cDNA_replicate1_run3.fastq.gz

Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
java.lang.ExceptionInInitializerError
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109)
        at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131)
Caused by: groovy.lang.MissingMethodException: No signature of method: static java.util.logging.Logger.getLogger() is applicable for argument types: (java.lang.String) values: [bpipe.Runner]
        at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1500)
        at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1486)
        at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:53)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
        at bpipe.Runner.<clinit>(Runner.groovy:52)
        ... 6 more

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

4 participants