{"record":{"id":"247334d01372a680","repo":"pinpoint-apm/pinpoint","slug":"service-access-fail-caused-by-ex-getmessage","errorCode":null,"errorMessage":"service access fail. Caused by:${ex.getMessage()}","messagePattern":"service access fail\\. Caused by:(.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"commons-profiler/src/main/java/com/navercorp/pinpoint/common/profiler/trace/StaticFieldLookUp.java","lineNumber":107,"sourceCode":"                if (filter.filter(type) == Filter.FILTERED) {\n                    continue;\n                }\n\n                lookup.add(type);\n            }\n        }\n        return lookup;\n    }\n\n    public List<T> lookup() {\n        return lookup(new BypassFilter<T>());\n    }\n\n    private Object getObject(Field field) {\n        try {\n            return field.get(findClazz);\n        } catch (IllegalAccessException ex) {\n            throw new RuntimeException(\"service access fail. Caused by:\" + ex.getMessage(), ex);\n        }\n    }\n\n\n\n}\n","sourceCodeStart":89,"sourceCodeEnd":114,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/commons-profiler/src/main/java/com/navercorp/pinpoint/common/profiler/trace/StaticFieldLookUp.java#L89-L114","documentation":"Wraps an IllegalAccessException from Field.get in StaticFieldLookUp.getObject: the JVM denied reflective access to a static field (Java module access rules or non-public field without setAccessible), so the traced service's static field could not be read.","triggerScenarios":"Thrown at commons-profiler/src/main/java/com/navercorp/pinpoint/common/profiler/trace/StaticFieldLookUp.java:107 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the required opens/add-opens JVM flags for the package containing the field","Verify the plugin declaring the lookup matches the target class's visibility rules","Catch and skip the lookup gracefully when the field is optional"],"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"}