简体   繁体   English

存储过程运行中的异常

[英]Exception in stored procedure running

I am gettinig this error while populating the tables through stored procedure. 通过存储过程填充表时,我收到此错误。 stored procedure picks data from one table and move it to other. 存储过程从一个表中选择数据,然后将其移动到另一个表中。 What might be the issue? 可能是什么问题? I am unable to get it. 我无法得到它。

In progress .. 
****ERROR****
 [2015-03-26 16:36:35.426]org.springframework.jdbc.UncategorizedSQLException: StatementCallback; uncategorized SQLException for SQL [call publish_data()]; SQL state [HY000]; error code [1366]; Incorrect decimal value: '' for column 'JOB_SUPPORTED_BY_CLIENT_BUSINESS' at row 1356; nested exception is java.sql.SQLException: Incorrect decimal value: '' for column 'JOB_SUPPORTED_BY_CLIENT_BUSINESS' at row 1356
    at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
    at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
    at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:407)
    at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:519)
    at dao.report.list.ReportDAOImpl.publishData(ReportDAOImpl.java:460)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
    at com.sun.proxy.$Proxy74.publishData(Unknown Source)
    at proc.ActivityStartupThread.run(ActivityStartupThread.java:32)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: Incorrect decimal value: '' for column 'JOB_SUPPORTED_BY_CLIENT_BUSINESS' at row 1356
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4096)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4028)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2490)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2651)
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2728)
    at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1811)
    at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1725)
    at org.apache.commons.dbcp2.DelegatingStatement.executeUpdate(DelegatingStatement.java:234)
    at org.apache.commons.dbcp2.DelegatingStatement.executeUpdate(DelegatingStatement.java:234)
    at org.springframework.jdbc.core.JdbcTemplate$1UpdateStatementCallback.doInStatement(JdbcTemplate.java:509)
    at org.springframework.jdbc.core.JdbcTemplate$1UpdateStatementCallback.doInStatement(JdbcTemplate.java:507)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:396)
    ... 11 more

value for 'JOB_SUPPORTED_BY_CLIENT_BUSINESS' is '' (ie null ) “ JOB_SUPPORTED_BY_CLIENT_BUSINESS”的值是“”(即null)

The SQL exception seems quite clear; SQL异常似乎很清楚。

Incorrect decimal value: '' for column 'JOB_SUPPORTED_BY_CLIENT_BUSINESS' at row 1356 错误的十进制值:''1356行的'JOB_SUPPORTED_BY_CLIENT_BUSINESS'列

This is not a generic SQL error, it is being thrown by the code with a RAISERROR or THROW. 这不是一般的SQL错误,它是由带有RAISERROR或THROW的代码引发的。 See the stored procedure for further details about when this error will occur. 有关何时将发生此错误的更多详细信息,请参见存储过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM