OtterMind/Chat2DB · error · IllegalArgumentException

Unsupported Oracle ${description}: ${value}

Error message

Unsupported Oracle ${description}: ${value}

What it means

Error "Unsupported Oracle ${description}: ${value}" thrown in OtterMind/Chat2DB.

Source

Thrown at chat2db-community-server/chat2db-community-plugins/chat2db-community-oracle/src/main/java/ai/chat2db/plugin/oracle/OracleSqlGuards.java:101

            return null;
        }
        String candidate = value.startsWith("0x") ? value.substring(2) : value;
        if (isHex(candidate)) {
            return candidate;
        }
        if (fallbackHex != null && isHex(fallbackHex)) {
            return fallbackHex;
        }
        throw new IllegalArgumentException("Invalid Oracle RAW/BLOB hex value");
    }

    public static String requireKeyword(String description, String value, String... allowedValues) {
        for (String allowedValue : allowedValues) {
            if (allowedValue.equalsIgnoreCase(StringUtils.trimToEmpty(value))) {
                return allowedValue;
            }
        }
        throw new IllegalArgumentException("Unsupported Oracle " + description + ": " + value);
    }

    private static void scanExpression(String expression, boolean typeExpression, String description) {
        Deque<Character> delimiters = new ArrayDeque<>();
        List<String> topLevelWords = new ArrayList<>();
        boolean sawToken = false;

        for (int i = 0; i < expression.length(); i++) {
            char c = expression.charAt(i);
            if (Character.isWhitespace(c)) {
                continue;
            }
            sawToken = true;

            if (isAlternativeQuoteStart(expression, i)) {
                if (typeExpression) {
                    throw invalid(description, expression);
                }

View on GitHub (pinned to 5ee1e990e7)

Solutions

  1. Replace the unsupported Oracle element noted in the message with a supported alternative.
  2. Check the plugin documentation for the allowed values of this construct.

When it happens

Trigger: The Oracle SQL guard rejected a value for a construct it does not support.

Common situations: See trigger scenarios.


AI-assisted analysis of OtterMind/Chat2DB@5ee1e990e7 (2026-08-14). Data as JSON: /api/errors/09423219145a5979. Report an issue: GitHub.