4 Replies Latest reply: Jul 25, 2012 1:03 PM by Marco Gralike RSS

    java.sql.SQLException: ORA-00911: invalid character

    912973
      HI
      iam facing one more issue like when i try to execute following SQL query from java iam getting following exception
      java.sql.SQLException: ORA-00911: invalid character


      String queryForPLdamessage = "select xmlquery('/MDMUpdates/Instrument' passing messagetext returning content) from pl_da_message where class = '1255340';"

      ResultSet rset = stmt.executeQuery(queryForPLdamessage);

      Error o/p:
      java.sql.SQLException: ORA-00911: invalid character

           at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
           at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
           at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
           at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
           at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:785)
           at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:860)
           at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
           at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
           at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)

      any clue for the exception /