Chronon throws NoClassDefFoundError: javax/transaction/xa/Xid exception

Not able to use the Chronon plugin with Intellij 2017.2 & Java 9.

Steps:

1) Install Intellij Ultimate 2017.2

2) Install the Chronon plugin from the repository

3) Try to run simple hello-world program with Chronon.

4) It'll fail with 'NoClassDefFoundError: javax/transaction/xa/Xid'.

 

Note: I'm using Java 9 but not with modulepath (i.e i don't have module-info.java in my project).

"

/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/java "-javaagent:/Users/sriram/Library/Application Support/IntelliJIdea2017.2/chronon/lib/recorder/recorder-3.70.0.200.jar=/Users/sriram/Library/Caches/IntelliJIdea2017.2/chronon-recordings/2017_10_19_Main/config.txt" "-agentpath:/Users/sriram/Library/Application Support/IntelliJIdea2017.2/chronon/lib/recorder/native/librecorderagent-3.0.7.jnilib" -noverify "-javaagent:/Users/sriram/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.4343.14/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=52546:/Users/sriram/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.4343.14/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath /Users/sriram/Projects/chronon-test/out/production/chronon-test Main
Chronon: Warning - Nothing to record. At least 1 'include' statement should be specified.
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:500)
    at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:512)
Caused by: java.lang.NoClassDefFoundError: javax/transaction/xa/Xid
    at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3110)
    at java.base/java.lang.Class.getConstructor0(Class.java:3315)
    at java.base/java.lang.Class.getConstructor(Class.java:2108)
    at java.com.chronon.sb.db.core.g.a.b.<init>(Unknown Source)
    at java.com.chronon.sb.db.core.g.a.k.<init>(Unknown Source)
    at java.com.chronon.sb.db.core.g.u.<clinit>(Unknown Source)
    at java.com.chronon.sb.db.core.b.l.a(Unknown Source)
    at java.com.chronon.sb.db.core.b.l.e(Unknown Source)
    at java.com.chronon.sb.db.core.h.g.a(Unknown Source)
    at java.com.chronon.sb.db.core.b.l.a(Unknown Source)
    at java.com.chronon.sb.db.core.b.e.a(Unknown Source)
    at java.com.chronon.sb.db.core.k.a(Unknown Source)
    at java.com.chronon.sb.db.core.k.<init>(Unknown Source)
    at java.com.chronon.sb.db.core.k.<init>(Unknown Source)
    at java.com.chronon3.sb.recorder.runtime.persistance.a.b.a(SourceFile:51)
    at java.com.chronon3.sb.recorder.runtime.persistance.a.a.a(SourceFile:67)
    at java.com.chronon3.sb.recorder.runtime.persistance.a.a.<init>(SourceFile:53)
    at java.com.chronon3.sb.recorder.state.b.a(SourceFile:42)
    at java.com.chronon3.sb.recorder.state.b.a(SourceFile:30)
    at java.com.chronon3.sb.recorder.state.a.b(SourceFile:174)
    at java.com.chronon3.sb.recorder.state.a.a(SourceFile:116)
    at java.com.chronon3.sb.recorder.RecorderMain.a(SourceFile:68)
    at java.com.chronon3.sb.recorder.RecorderMain.premain(SourceFile:33)
    ... 6 more
FATAL ERROR in native method: processing of -javaagent failed

"

 

0

Sorry, chronon does not support java 9

1
Avatar
Permanently deleted user

Oh, that's sad. I hope that project is still active.

0

请先登录再写评论。