{"record":{"id":"a23965ce20425147","repo":"pinpoint-apm/pinpoint","slug":"access-fail","errorCode":null,"errorMessage":"() access fail ","messagePattern":"\\(\\) access fail ","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/classloader/LauncherBootLoader.java","lineNumber":95,"sourceCode":"    private static URLClassPath getBootstrapClassPath() {\n        return Launcher.getBootstrapClassPath();\n    }\n\n    @Override\n    public URL findResource(String name) {\n        final Resource res = bootstrapClassPath.getResource(name);\n        if (res == null) {\n            return null;\n        }\n        return res.getURL();\n    }\n\n    @Override\n    public Class<?> findBootstrapClassOrNull(ClassLoader classLoader, String name) {\n        try {\n            return (Class<?>) FIND_BOOTSTRAP_CLASS_OR_NULL.invoke(classLoader, name);\n        } catch (IllegalAccessException ex) {\n            throw new IllegalStateException(FIND_BOOTSTRAP_CLASS_OR_NULL.getName() + \"() access fail \" + ex.getMessage(), ex);\n        } catch (InvocationTargetException ex) {\n            final Throwable cause = ex.getCause();\n            if (cause instanceof ClassNotFoundException) {\n                // fix openjdk6\n                return null;\n            }\n            throw new IllegalStateException(FIND_BOOTSTRAP_CLASS_OR_NULL.getName() + \"() internal error \" + ex.getMessage(), ex);\n        }\n    }\n\n    @Override\n    public Enumeration<URL> findResources(String name) throws IOException {\n        final Enumeration<Resource> enumeration = bootstrapClassPath.getResources(name);\n        return new URLEnumeration(enumeration);\n    }\n\n    private static class URLEnumeration implements Enumeration<URL> {\n        private final Enumeration<Resource> enumeration;","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/classloader/LauncherBootLoader.java#L77-L113","documentation":"Guard in LauncherBootLoader.findBootstrapClassOrNull: reflective invocation of FIND_BOOTSTRAP_CLASS_OR_NULL threw IllegalAccessException — the cached Method object is not accessible from the caller (setAccessible failed or access was revoked), so the bootstrap class load is aborted.","triggerScenarios":"Thrown at agent-module/bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/classloader/LauncherBootLoader.java:95 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure findBootstrapClassOrNull.setAccessible(true) succeeded when the Method was cached","Check for a SecurityManager or module access rules denying reflective access to java.lang.ClassLoader privates","Use a JDK version where this private API is accessible, or upgrade the agent"],"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"}