SQL [ ]; SQL state [null]; error code [17004]; 无效的列类型; nested exception is java.sql.SQLException: 无效
2017-05-26 11:34
1651 查看
HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [
]; SQL state [null]; error code [17004]; 无效的列类型; nested exception is java.sql.SQLException: 无效的列类型。
又了一个犯低级[b]错误,把[/b]
Map<String, Object> mapList =
simpleJdbcTemplate.queryForMap(sql.toString(),param);
改成
[b]Map<String, Object> mapList = [/b]
simpleJdbcTemplate.queryForMap(sql.toString(),[b]param.toArray());[/b]
[b]即可[/b]
]; SQL state [null]; error code [17004]; 无效的列类型; nested exception is java.sql.SQLException: 无效的列类型。
又了一个犯低级[b]错误,把[/b]
Map<String, Object> mapList =
simpleJdbcTemplate.queryForMap(sql.toString(),param);
改成
[b]Map<String, Object> mapList = [/b]
simpleJdbcTemplate.queryForMap(sql.toString(),[b]param.toArray());[/b]
[b]即可[/b]
相关文章推荐
- mybatis uncategorized SQLException for SQL []; SQL state [null]; error code [17004]; 无效的列类型
- 1111; nested exception is java.sql.SQLException: 无效的列类型: 1111
- 报错SQL state [null]; error code [17027]; 流已被关闭; nested exception is java.sql.SQLException: 流已被关闭
- 报错SQL state [null]; error code [17027]; 流已被关闭; nested exception is java.sql.SQLException: 流已被关闭
- 1uncategorized SQLException for SQL []; SQL state [99999]; error code [17004]; 无效的列类型: 1111;
- 错误提示:SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [17004];
- 解决bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- mybatis3.3@sqlprovider nested exception is java.lang.NumberFormatException: null
- nested exception is java.sql.SQLException: Unknown type '246 in column 1 of 3 in binary-encoded result set. 问题
- nested exception is java.sql.SQLException: Data truncated for column 'update
- java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
- Request processing failed; nested exception is java.lang.NullPointerException] with root cause
- HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException
- Spring 整合 Flex (BlazeDS)无法从as对象 到 Java对象转换的异常:org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.Date' to required type 'java.sql.Timestamp' for property 'wfsj'; nested exception is java.lang.Ill
- SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];
- 异常:SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];
- spring-data-redis用配置类连接时,抛异常Cannot get Jedis connection; nested exception is java.lang.NullPointerEx
- Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Connectio
- Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: socket creation error