Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Lanagerservi

Source: Internet
Author: User

Org.springframework.jdbc.BadSqlGrammarException:SqlMapClient operation; Bad SQL Grammar []; Nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
---The error occurred while applying a parameter map.
---Check the lanagervo.ibatorgenerated_insertselective-inlineparametermap.
---Check the statement (update failed).
---Cause:com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:You have an error in your SQL syntax;         Check the manual that corresponds to your MySQL server version for the right syntax to use near ' INDEX, Statue, Create_date ' at line 1
At Org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate ( sqlerrorcodesqlexceptiontranslator.java:233)
At Org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate ( ABSTRACTFALLBACKSQLEXCEPTIONTRANSLATOR.JAVA:72)
At Org.springframework.orm.ibatis.SqlMapClientTemplate.execute (sqlmapclienttemplate.java:203)
At Org.springframework.orm.ibatis.SqlMapClientTemplate.insert (sqlmapclienttemplate.java:364)
At Com.yauuu.dragon.common.dao.BaseDAO.insertSelective (basedao.java:88)
At Com.yauuu.dragon.common.service.BaseService.insertSelective (baseservice.java:32)
At Com.yauuu.dragon.base.service.LanagerServiceTest.testInsertSelective (lanagerservicetest.java:68)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:39)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:25)
At Java.lang.reflect.Method.invoke (method.java:585)
At Org.junit.internal.runners.TestMethodRunner.executeMethodBody (testmethodrunner.java:99)
At org.junit.internal.runners.TestMethodRunner.runUnprotected (testmethodrunner.java:81)
At org.junit.internal.runners.BeforeAndAfterRunner.runProtected (beforeandafterrunner.java:34)
At Org.junit.internal.runners.TestMethodRunner.runMethod (testmethodrunner.java:75)
At Org.junit.internal.runners.TestMethodRunner.run (testmethodrunner.java:45)
At Org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod (testclassmethodsrunner.java:66)
At Org.junit.internal.runners.TestClassMethodsRunner.run (testclassmethodsrunner.java:35)
At org.junit.internal.runners.testclassrunner$1.rununprotected (testclassrunner.java:42)
At org.junit.internal.runners.BeforeAndAfterRunner.runProtected (beforeandafterrunner.java:34)
At Org.junit.internal.runners.TestClassRunner.run (testclassrunner.java:52)
At Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (junit4testreference.java:50)
At Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197)
Caused by:com.ibatis.common.jdbc.exception.NestedSQLException:
---The error occurred while applying a parameter map.
---Check the lanagervo.ibatorgenerated_insertselective-inlineparametermap.
---Check the statement (update failed).
---Cause:com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:You have an error in your SQL syntax;         Check the manual that corresponds to your MySQL server version for the right syntax to use near ' INDEX, Statue, Create_date ' at line 1
At Com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate (mappedstatement.java:107)
At Com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert (sqlmapexecutordelegate.java:393)
At Com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert (sqlmapsessionimpl.java:82)
At Org.springframework.orm.ibatis.sqlmapclienttemplate$8.doinsqlmapclient (sqlmapclienttemplate.java:366)
At Org.springframework.orm.ibatis.SqlMapClientTemplate.execute (sqlmapclienttemplate.java:200)
... More
caused By:com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:You have a error in your SQL syntax;         Check the manual that corresponds to your MySQL server version for the right syntax to use near ' INDEX, Statue, Create_date ' at line 1
At Com.mysql.jdbc.SQLError.createSQLException (sqlerror.java:1049)
At Com.mysql.jdbc.MysqlIO.checkErrorPacket (mysqlio.java:3597)
At Com.mysql.jdbc.MysqlIO.checkErrorPacket (mysqlio.java:3529)
At Com.mysql.jdbc.MysqlIO.sendCommand (mysqlio.java:1990)
At Com.mysql.jdbc.MysqlIO.sqlQueryDirect (mysqlio.java:2151)
At Com.mysql.jdbc.ConnectionImpl.execSQL (connectionimpl.java:2625)
At Com.mysql.jdbc.PreparedStatement.executeInternal (preparedstatement.java:2119)
At Com.mysql.jdbc.PreparedStatement.execute (preparedstatement.java:1362)
At Com.ibatis.sqlmap.engine.execution.SqlExecutor.executeUpdate (sqlexecutor.java:80)
At Com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteUpdate (mappedstatement.java:216)
At Com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate (mappedstatement.java:94)
... More

Bug reason, the error occurred while applying a parameter map.   Check The statement (update failed). The problem should be SQL error.

But look over the fields are all right, and then put the SQL in MySQL to execute or error

See the Index field, may be the reason for the keyword, so the field name changed, and then execute SQL, successful

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.