{"record":{"id":"56e36d9e8e40d316","repo":"pinpoint-apm/pinpoint","slug":"access-fail-caused-by","errorCode":null,"errorMessage":"access fail Caused by:","messagePattern":"access 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":88,"sourceCode":"\n\n    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) {","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/classloader/J9BootLoader.java#L70-L106","documentation":"Generic guard in J9BootLoader.getMethod: reflection lookup of a bootstrap ClassLoader method (e.g. getResources) via getDeclaredMethod failed with NoSuchMethodException, meaning the IBM J9/JDK VM does not expose the expected method; the message is a sentinel wrapping the underlying cause.","triggerScenarios":"Thrown at agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/classloader/J9BootLoader.java:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the JDK vendor/version: J9BootLoader targets IBM J9 JVMs whose bootstrap ClassLoader API differs","Check the method name string passed to getDeclaredMethod for typos or wrong parameter types","If the JDK is unsupported, use a different BootLoader implementation (e.g. LauncherBootLoader) compatible with the JVM","Inspect the chained NoSuchMethodException message to identify which method lookup failed"],"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"}