pinpoint-apm/pinpoint · error · OracleConnectionStringException
parse error. token is null. Expected token=')
Error message
parse error. token is null. Expected token=')
What it means
Parser guard in the tokenizer's token-check helpers: the token stream was exhausted (nextToken returned null) while the parser expected the closing ')' token of the descriptor. Fires on a truncated Oracle connection descriptor that ends before its closing parenthesis.
Solutions
- Balance all parentheses in the Oracle JDBC URL descriptor
- Check for a truncated or cut-off connection string
- Verify the full (DESCRIPTION=...) block is present in the JDBC URL
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at agent-module/plugins/oracle-jdbc/src/main/java/com/navercorp/pinpoint/plugin/jdbc/oracle/parser/OracleNetConnectionDescriptorTokenizer.java:205 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of pinpoint-apm/pinpoint@744c3d3075 (2026-09-07).
Data as JSON: /api/errors/c2773709d13164ac.
Report an issue: GitHub.
Appendix: source
Thrown at agent-module/plugins/oracle-jdbc/src/main/java/com/navercorp/pinpoint/plugin/jdbc/oracle/parser/OracleNetConnectionDescriptorTokenizer.java:205
throw new OracleConnectionStringException("syntax error. Expected token='(' :" + token.getToken());
}
}
public void checkEqualToken() {
Token token = this.nextToken();
if (token == null) {
throw new OracleConnectionStringException("parse error. token is null. Expected token='='");
}
// We can check by == because the token object is singleton.
if (!(token == TOKEN_EQUAL_OBJECT)) {
throw new OracleConnectionStringException("Syntax error. Expected token='=' :" + token.getToken());
}
}
public void checkEndToken() {
Token token = this.nextToken();
if (token == null) {
throw new OracleConnectionStringException("parse error. token is null. Expected token=')");
}
// We can check by == because the token object is singleton.
if (!(token == TOKEN_KEY_END_OBJECT)) {
throw new OracleConnectionStringException("Syntax error. Expected token=')' :" + token.getToken());
}
}
public Token getLiteralToken() {
Token token = this.nextToken();
if (token == null) {
throw new OracleConnectionStringException("parse error. token is null. Expected token='LITERAL'");
}
// We can check by == because the token object is singleton.
if (!(token.getType() == TYPE_LITERAL)) {
throw new OracleConnectionStringException("Syntax error. Expected token='LITERAL'' :" + token.getToken());
}
return token;
}View on GitHub (pinned to 744c3d3075)