在Corda 3中,运行runNodes时获取Quasar ClassReader异常

时间:2018-03-22 10:41:38

标签: corda

当我运行runNodes任务以启动Corda 3中的节点时,我得到以下异常:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by Capsule (file:/D:/Code/LearnBlockChain/cordapp-template-kotlin/build/nodes/PartyB/corda-webserver.jar) to field com.sun.jmx.mbeanserver.JmxMBeanServer.mbsInterceptor
WARNING: Please consider reporting this to the maintainers of Capsule
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
Listening for transport dt_socket at address: 5009
[quasar] ERROR: while transforming jdk/internal/vm/PostVMInitHook: null
java.lang.IllegalArgumentException
       at co.paralleluniverse.asm.ClassReader.<init>(Unknown Source)
       at co.paralleluniverse.asm.ClassReader.<init>(Unknown Source)
       at co.paralleluniverse.fibers.instrument.QuasarInstrumentor.instrumentClass(QuasarInstrumentor.java:120)
       at co.paralleluniverse.fibers.instrument.QuasarInstrumentor.instrumentClass(QuasarInstrumentor.java:94)
       at co.paralleluniverse.fibers.instrument.JavaAgent$Transformer.transform(JavaAgent.java:209)
       at java.instrument/java.lang.instrument.ClassFileTransformer.transform(Unknown Source)
       at java.instrument/sun.instrument.TransformerManager.transform(Unknown Source)
       at java.instrument/sun.instrument.InstrumentationImpl.transform(Unknown Source)
[quasar] ERROR: while transforming jdk/internal/math/FloatingDecimal: null
java.lang.IllegalArgumentException

如何解决此问题?

1 个答案:

答案 0 :(得分:1)

如果使用错误版本的Oracle JDK,您将看到此问题。 Corda需要Oracle JDK 8 JVM,支持的最低版本为8u131。