We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Richard Mcfriend • 10 months ago

Exception in thread "main" java.lang.IllegalArgumentException: Could not find option with name inspect.

I have

implementation 'http://org.graalvm.tools:chromeinspector:23.0.8'

in my build.gradle.

Adam Ruka • 10 months ago

I assume the "http://" part is just some crap Disqus added? 🙂

Does the 23.0.8 version match the GraalVM version you're running this under?

Richard Mcfriend • 10 months ago

I've resolved it. The issue was because polygot was unable to resolve the classes correctly because I was building an uber jar.

Richard Mcfriend • 10 months ago

My GraalVM version is 24.2.0

Richard Mcfriend • 10 months ago

Yeah. The "http://" part is Disqus.

That's still the highest version. The other one on Maven is org.graalvm.tools:chromeinspector-tool:24.1.1 which causes the following panic whenever I set the inspect option.

Exception in thread "main" org.graalvm.polyglot.PolyglotException: java.lang.NullPointerException: Cannot invoke "com.oracle.truffle.api.InstrumentInfo.getPolyglotInstrument()" because "info" is null
at com.oracle.truffle.api.LanguageAccessor$LanguageImpl.getPolyglotInstrument(LanguageAccessor.java:146)
at com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.lookup(TruffleInstrument.java:692)
at com.oracle.truffle.tools.chromeinspector.InspectorDebugger.startSession(InspectorDebugger.java:168)
at com.oracle.truffle.tools.chromeinspector.InspectorDebugger.<init>(InspectorDebugger.java:154)
at com.oracle.truffle.tools.chromeinspector.server.InspectServerSession.create(InspectServerSession.java:86)
at com.oracle.truffle.tools.chromeinspector.instrument.InspectorInstrument$Server.<init>(InspectorInstrument.java:422)
at com.oracle.truffle.tools.chromeinspector.instrument.InspectorInstrument.onCreate(InspectorInstrument.java:227)
at com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.onCreate(TruffleInstrument.java:734)
at com.oracle.truffle.api.instrumentation.InstrumentationHandler$InstrumentClientInstrumenter.create(InstrumentationHandler.java:2266)
at com.oracle.truffle.api.instrumentation.InstrumentationHandler.createInstrument(InstrumentationHandler.java:268)
at com.oracle.truffle.api.instrumentation.InstrumentAccessor$InstrumentImpl.createInstrument(InstrumentAccessor.java:124)
at com.oracle.truffle.polyglot.PolyglotInstrument.ensureCreated(PolyglotInstrument.java:200)
at com.oracle.truffle.polyglot.PolyglotEngineImpl.ensureInstrumentsCreated(PolyglotEngineImpl.java:788)
at com.oracle.truffle.polyglot.PolyglotEngineImpl.createInstruments(PolyglotEngineImpl.java:782)
at com.oracle.truffle.polyglot.PolyglotEngineImpl.<init>(PolyglotEngineImpl.java:363)
at com.oracle.truffle.polyglot.PolyglotImpl.buildEngine(PolyglotImpl.java:342)
at org.graalvm.polyglot.Engine$Builder.build(Engine.java:771)
at org.nimbus.Main.main(Main.java:34)
Suppressed: Attached Guest Language Frames (0)
Internal GraalVM error, please report at https://github.com/oracle/graal/issues/.