|
楼主 |
发表于 2015-8-18 09:12:31
|
显示全部楼层
还是不行,麻烦你给看一下
sql语句:
String sql = "insert into Cw_zskjpz b(b,b.PZLX) VALUES(select a,a.PZLX from Cw_zjkjpz a WHERE a='2742D5FD95554261A6B1836D1A0ED783')";
报错信息:
2015-08-18 09:06:45 excute stream action, params:{"accept":"application/json","action":"createVoucher","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","process":"/BJBusWYST/cw/process/makingVoucher/makingVoucherProcess"}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.justep.system.action.Engine.invokeActions(Native Method)
at com.justep.system.action.Engine.invokeActions(Unknown Source)
at com.justep.business.server.BusinessServer.doAction(Unknown Source)
at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
at com.justep.business.server.BusinessServer.excute(Unknown Source)
at com.justep.business.server.BusinessServer.excute(Unknown Source)
at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: insert into Cw_zskjpz b(b,b.PZLX) VALUES(select a,a.PZLX from Cw_zjkjpz a WHERE a='2742D5FD95554261A6B1836D1A0ED783')
at com.justep.exception.BusinessException.create(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlInsert(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlExecuteUpdate(Unknown Source)
at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
at Cw.createVoucher(Cw.java:22)
... 27 more
Caused by: com.justep.exception.KSQLException: 编码: JUSTEP154046; 提示: KSQL语法错误, b.PZLX) VALUES(^^select a,a.PZLX中未找到需要的元素, 位置41期望是以下元素之一:STRING, NUMBER, ONE_RELATION, IDENTIFER, VARIABLE
at com.justep.exception.KSQLException.create(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.constExpression(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.unaryExpression(Unknown Source)
at com.justep.system.ksql.parser.InsertParser.insertValues(Unknown Source)
at com.justep.system.ksql.parser.InsertParser.start(Unknown Source)
at com.justep.system.ksql.parser.InsertParser.start(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.parse(Unknown Source)
... 33 more
|
|