{"record":{"id":"f121ef13ee5cf8e0","repo":"prestodb/presto","slug":"runtimeexception-e-f121ef","errorCode":null,"errorMessage":"RuntimeException(e)","messagePattern":"RuntimeException\\(e\\)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"presto-prometheus/src/main/java/com/facebook/presto/plugin/prometheus/PrometheusConnectorFactory.java","lineNumber":65,"sourceCode":"    public Connector create(String catalogName, Map<String, String> config, ConnectorContext context)\n    {\n        requireNonNull(config, \"requiredConfig is null\");\n        try {\n            // A plugin is not required to use Guice; it is just very convenient\n            Bootstrap app = new Bootstrap(\n                    new JsonModule(),\n                    new PrometheusModule(context.getTypeManager()));\n\n            Injector injector = app\n                    .doNotInitializeLogging()\n                    .setRequiredConfigurationProperties(config)\n                    .initialize();\n\n            return injector.getInstance(PrometheusConnector.class);\n        }\n        catch (Exception e) {\n            throwIfUnchecked(e);\n            throw new RuntimeException(e);\n        }\n    }\n}\n","sourceCodeStart":47,"sourceCodeEnd":69,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-prometheus/src/main/java/com/facebook/presto/plugin/prometheus/PrometheusConnectorFactory.java#L47-L69","documentation":"Wrapper in PrometheusConnectorFactory.create: any exception thrown while bootstrapping/initializing the Guice injector for the connector (bad config, missing bindings) is rethrown as a plain RuntimeException with the cause attached, surfacing plugin startup failure to the connector manager.","triggerScenarios":"Thrown at presto-prometheus/src/main/java/com/facebook/presto/plugin/prometheus/PrometheusConnectorFactory.java:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the cause (e) for the actual configuration or Guice binding error","Fix invalid prometheus.* configuration properties","Ensure the plugin modules are wired correctly"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}