{"record":{"id":"4002a08bb27416ca","repo":"pinpoint-apm/pinpoint","slug":"invoke-fail-caused-by-4002a0","errorCode":null,"errorMessage":"invoke fail Caused by:","messagePattern":"invoke fail Caused by:","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/classloader/J9BootLoader.java","lineNumber":90,"sourceCode":"    private static Method getMethod(Class<?> bootstrapClassLoader, String methodName, Class<?>... parameterTypes) {\n        try {\n            Method declaredMethod = bootstrapClassLoader.getDeclaredMethod(methodName, parameterTypes);\n            declaredMethod.setAccessible(true);\n            return declaredMethod;\n        } catch (NoSuchMethodException e) {\n            throw new IllegalStateException(methodName + \" not found Caused by:\" + e.getMessage(), e);\n        }\n\n    }\n\n    @Override\n    public Enumeration<URL> findResources(String name) throws IOException {\n        try {\n            return (Enumeration<URL>) findResources.invoke(bootstrapClassLoader, name);\n        } catch (IllegalAccessException e) {\n            throw new IllegalStateException(\"access fail Caused by:\" + e.getMessage(), e);\n        } catch (InvocationTargetException e) {\n            throw new IllegalStateException(\"invoke fail Caused by:\" + e.getMessage(), e);\n        }\n    }\n\n    @Override\n    public URL findResource(String name) {\n        try {\n            return (URL) findResource.invoke(bootstrapClassLoader, name);\n        } catch (IllegalAccessException e) {\n            throw new IllegalStateException(\"access fail Caused by:\" + e.getMessage(), e);\n        } catch (InvocationTargetException e) {\n            throw new IllegalStateException(\"invoke fail Caused by:\" + e.getMessage(), e);\n        }\n    }\n\n    @Override\n    public Class<?> findBootstrapClassOrNull(ClassLoader classLoader, String name) {\n        try {\n            return bootstrapClassLoader.loadClass(name);","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/classloader/J9BootLoader.java#L72-L108","documentation":"Generic sentinel from J9BootLoader reflective dispatch: an invoke on a bootstrap ClassLoader method failed (the 'invoke fail Caused by:' text prefixes the underlying InvocationTargetException/IllegalAccessException cause). It fires when the reflective call inside findResources throws on this J9 VM.","triggerScenarios":"Thrown at agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/classloader/J9BootLoader.java:90 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the chained cause exception to see the actual reflective invocation failure","Confirm the target method signature still matches on the installed J9 JDK","Ensure setAccessible(true) succeeded (no module/JPMS restrictions)","Fall back to a non-reflective resource lookup if the J9 API is incompatible"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"744c3d3075e595656abb1ae331ad2c0e4c9eb996","analyzedAt":"2026-09-07T18:48:45.289Z","contentChangedAt":"2026-09-07T18:48:45.289Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}