## Error updating database. Cause: java.sql.SQLException: ORA-00936: 缺失表达式
### The error may involve org.haze.bpsms.balance.model.StatementReversal.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO BPSMS_SETT_REVE_ORDER (ID,CUSTOMERID,TEMPLATEID,STATUSKEY,SETTLEMENTKEY,PRODUCTKEY,DOCDATE,DEPARTMENTID,USERID,STATEMENTID,DOCUMENTCODE ) VALUES (?,?,?,?, ?,?,?,,?, ?,?,?)
### Cause: java.sql.SQLException: ORA-00936: 缺失表达式
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:154)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:141)
at org.haze.base.mybatis.BaseMyBatisDao$SqlSessionTemplate$1.doInSession(BaseMyBatisDao.java:146)
at org.haze.base.mybatis.BaseMyBatisDao$SqlSessionTemplate.execute(BaseMyBatisDao.java:131)
at org.haze.base.mybatis.BaseMyBatisDao$SqlSessionTemplate.insert(BaseMyBatisDao.java:144)
at org.haze.base.dao.AbsDao.insert(AbsDao.java:94)
at org.haze.base.service.AbsService.insert(AbsService.java:22)
at org.haze.bpsms.balance.StatementReversalServiceTest.testInsert(StatementReversalServiceTest.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.sql.SQLException: ORA-00936: 缺失表达式
IDEA开发JAVA,inserttest过程中,出现以上错误:
解决办法:
ID,CUSTOMERID,TEMPLATEID,STATUSKEY,SETTLEMENTKEY,PRODUCTKEY,DOCDATE,DEPARTMENTID,USERID,STATEMENTID,DOCUMENTCODE ) VALUES (?,?,?,?, ?,?,?,,?, ?,?,?)删除DOCUMENTCODE后的空格