{"record":{"id":"bdad0aca5b8be99a","repo":"jruby/jruby","slug":"unknown-bundle-symbolicname","errorCode":null,"errorMessage":"unknown bundle: ${symbolicName}","messagePattern":"unknown bundle: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/org/jruby/embed/osgi/OSGiIsolatedScriptingContainer.java","lineNumber":64,"sourceCode":"\n    public OSGiIsolatedScriptingContainer( LocalContextScope scope,\n                                           LocalVariableBehavior behavior,\n                                           boolean lazy )\n    {\n        super(scope, behavior, lazy);\n    }\n\n    private Bundle toBundle(String symbolicName) {\n        BundleContext context = FrameworkUtil.getBundle(getClass()).getBundleContext();\n        Bundle bundle = null;\n        for (Bundle b : context.getBundles()) {\n            if (b.getSymbolicName().equals(symbolicName)) {\n                bundle = b;\n                break;\n            }\n        }\n        if (bundle == null ) {\n            throw new RuntimeException(\"unknown bundle: \" + symbolicName);\n        }\n        return bundle;\n    }\n\n    /**\n     * add the classloader from the given bundle to the LOAD_PATH and the GEM_PATH\n     * using the bundle symbolic name\n     * @param symbolicName\n     */\n    public void addBundle(String symbolicName) {\n        addBundle(toBundle(symbolicName));\n    }\n\n    /**\n     * add the classloader from the given bundle to the LOAD_PATH and the GEM_PATH\n     * @param bundle\n     */\n    public void addBundle(Bundle bundle) {","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/jruby/jruby/blob/fb650c13e02b5a600fa66384655069d5ec30c362/core/src/main/java/org/jruby/embed/osgi/OSGiIsolatedScriptingContainer.java#L46-L82","documentation":"Error \"unknown bundle: ${symbolicName}\" thrown in jruby/jruby.","triggerScenarios":"Thrown at core/src/main/java/org/jruby/embed/osgi/OSGiIsolatedScriptingContainer.java:64 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The OSGi bundle with the given symbolic name is not installed or not resolved in the framework. Install/start the bundle and verify the symbolic name matches Bundle-SymbolicName."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fb650c13e02b5a600fa66384655069d5ec30c362","analyzedAt":"2026-08-23T07:18:57.479Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}