If the log content has the "'",then I can't insert into database. for example: log.info("hello'world"); then the error information: log4j:ERROR Failed to excute sql java.sql.SQLException: ORA-00917: 缺失逗号 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:330) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:287) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:742) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:206) at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:945) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1167) at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1613) at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1578) at org.apache.log4j.jdbc.JDBCAppender.execute(ESBJDBCAppender.java:92)
Use the jars: classes12.jar apache-log4j-1.2.16.jar commons-logging-1.1.1.jar