{"record":{"id":"b4fcefd0879953dc","repo":"t8y2/dbx","slug":"object-source-is-not-supported-b4fcef","errorCode":null,"errorMessage":"Object source is not supported","messagePattern":"Object source is not supported","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"warning","filePath":"agents/common/src/main/java/com/dbx/agent/ConfiguredJdbcAgent.java","lineNumber":108,"sourceCode":"            configuredDatabase,\n            schema,\n            constraints\n        );\n    }\n\n    @Override\n    public List<String> listDataTypes() {\n        return StandardJdbcMetadata.INSTANCE.listDataTypes(requireConnection());\n    }\n\n    @Override\n    public CompletionAssistantResponse completionAssistantSearch(CompletionAssistantRequest request) {\n        return StandardJdbcMetadata.INSTANCE.completionAssistantSearch(requireConnection(), profile, configuredDatabase, request);\n    }\n\n    @Override\n    public ObjectSource getObjectSource(String schema, String name, String objectType) {\n        throw new UnsupportedOperationException(\"Object source is not supported\");\n    }\n\n    @Override\n    public List<ColumnInfo> getColumns(String schema, String table) {\n        return StandardJdbcMetadata.INSTANCE.getColumns(requireConnection(), profile, configuredDatabase, schema, table);\n    }\n\n    @Override\n    public List<IndexInfo> listIndexes(String schema, String table) {\n        return StandardJdbcMetadata.INSTANCE.listIndexes(requireConnection(), profile, configuredDatabase, schema, table);\n    }\n\n    @Override\n    public List<ForeignKeyInfo> listForeignKeys(String schema, String table) {\n        return StandardJdbcMetadata.INSTANCE.listForeignKeys(requireConnection(), schema, table);\n    }\n\n    @Override","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/t8y2/dbx/blob/c0390bff16418b651f4728520d99adf8ce48829a/agents/common/src/main/java/com/dbx/agent/ConfiguredJdbcAgent.java#L90-L126","documentation":"ConfiguredJdbcAgent, despite being a configured JDBC agent, explicitly does not implement getObjectSource and throws UnsupportedOperationException. Retrieving object source/DDL text is unsupported for this agent configuration.","triggerScenarios":"Calling getObjectSource(schema, name, objectType) directly on ConfiguredJdbcAgent (or through generic tooling dispatching to it).","commonSituations":"Metadata/DDL export tools assuming all JDBC agents expose object source; code paths previously targeting a specialized agent switched to ConfiguredJdbcAgent.","solutions":["Use getTableDdl or other supported DDL accessors on the agent instead","Route getObjectSource calls to an agent that implements it","Catch UnsupportedOperationException and fall back to a null/empty source","Implement DDL extraction via the driver's catalog metadata in your own code"],"exampleFix":"// before\nObjectSource src = configuredAgent.getObjectSource(schema, name, type); // throws\n// after\nObjectSource src;\ntry {\n    src = configuredAgent.getObjectSource(schema, name, type);\n} catch (UnsupportedOperationException e) {\n    src = null; // or use configuredAgent.getTableDdl(schema, name)\n}","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n    ObjectSource src = agent.getObjectSource(schema, name, type);\n} catch (UnsupportedOperationException e) {\n    ObjectSource src = null; // fall back to getTableDdl or skip\n}","preventionTips":["Use getTableDdl for table DDL instead of getObjectSource on ConfiguredJdbcAgent","Catch UnsupportedOperationException at dispatch boundaries when fanning out to multiple agents","Consult the agent's supported-capability surface before generic metadata calls","Return an explicit 'unsupported' result to callers rather than failing hard"],"tags":["jdbc","unsupported-operation","metadata"],"backgroundTag":"unsupported-operation","analyzedSha":"c0390bff16418b651f4728520d99adf8ce48829a","analyzedAt":"2026-09-05T23:05:10.900Z","contentChangedAt":"2026-09-05T23:05:10.900Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}