oracle异常错误断点,错误提示:SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; e
Tomcat提示错误如下:
INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
INFO [org.springframework.jdbc.support.SQLErrorCodesFactory] - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [17004];
--- The error occurred in sqlmap-mapping-operate.xml.
--- The error occurred while applying a parameter map.
--- Check the logSave-InlineParameterMap.
--- Check the parameter mapping for the 'coclorFlag' property.
---Cause:java.lang.NullPointerException
最后检查入参时,发现:
Map map = new Hash();
map.put("coclorFlag", '1');
---java代码中, 对于常量值应该用双引号(" ") 来使用, 单引号(' ')无用;