{"record":{"id":"e1bc9829190b085a","repo":"pinpoint-apm/pinpoint","slug":"syntax-error-expected-token-token-e1bc98","errorCode":null,"errorMessage":"Syntax error. Expected token=')' :<token>","messagePattern":"Syntax error\\. Expected token='\\)' :<token>","errorType":"validation","errorClass":"OracleConnectionStringException","httpStatus":null,"severity":"error","filePath":"agent-module/plugins/oracle-jdbc/src/main/java/com/navercorp/pinpoint/plugin/jdbc/oracle/parser/OracleNetConnectionDescriptorTokenizer.java","lineNumber":209,"sourceCode":"    public void checkEqualToken() {\n        Token token = this.nextToken();\n        if (token == null) {\n            throw new OracleConnectionStringException(\"parse error. token is null. Expected token='='\");\n        }\n        // We can check by == because the token object is singleton.\n        if (!(token == TOKEN_EQUAL_OBJECT)) {\n            throw new OracleConnectionStringException(\"Syntax error. Expected token='=' :\" + token.getToken());\n        }\n    }\n\n    public void checkEndToken() {\n        Token token = this.nextToken();\n        if (token == null) {\n            throw new OracleConnectionStringException(\"parse error. token is null. Expected token=')\");\n        }\n        // We can check by == because the token object is singleton.\n        if (!(token == TOKEN_KEY_END_OBJECT)) {\n            throw new OracleConnectionStringException(\"Syntax error. Expected token=')' :\" + token.getToken());\n        }\n    }\n\n    public Token getLiteralToken() {\n        Token token = this.nextToken();\n        if (token == null) {\n            throw new OracleConnectionStringException(\"parse error. token is null. Expected token='LITERAL'\");\n        }\n        // We can check by == because the token object is singleton.\n        if (!(token.getType() == TYPE_LITERAL)) {\n            throw new OracleConnectionStringException(\"Syntax error. Expected token='LITERAL'' :\" + token.getToken());\n        }\n        return token;\n    }\n\n    public Token getLiteralToken(String expectedValue) {\n        Token token = this.nextToken();\n        if (token == null) {","sourceCodeStart":191,"sourceCodeEnd":227,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/agent-module/plugins/oracle-jdbc/src/main/java/com/navercorp/pinpoint/plugin/jdbc/oracle/parser/OracleNetConnectionDescriptorTokenizer.java#L191-L227","documentation":"Parser guard in checkEndToken: the next token read from the Oracle connection descriptor was not the singleton ')' end-object token, i.e. extra or unexpected content appears where the closing parenthesis of an address/description block should be.","triggerScenarios":"Thrown at agent-module/plugins/oracle-jdbc/src/main/java/com/navercorp/pinpoint/plugin/jdbc/oracle/parser/OracleNetConnectionDescriptorTokenizer.java:209 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the descriptor so each (KEY=VALUE) block closes with ')' exactly where the grammar requires","Remove stray tokens or misplaced keywords before the closing parenthesis"],"exampleFix":null,"handlingStrategy":"validation","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"}