起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3084|回复: 2

[结贴] 编码: JUSTEP150210; 提示: 执行KSQL出错

[复制链接]

21

主题

122

帖子

442

积分

中级会员

Rank: 3Rank: 3

积分
442
QQ
发表于 2017-5-4 19:27:48 | 显示全部楼层 |阅读模式
版本: BeX5V3.5 小版本号:
数据库: MS SQLServer 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 7 浏览器: Chrome
编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: select sContent as sContent from SA_Task where SA_Task='E9342ACC1AE041C9BF75E5E124FDD22D'
--> sql:
--> binds: []

[url=]隐藏详细[/url]
java.lang.reflect.InvocationTargetException 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:497) 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: java.lang.reflect.InvocationTargetException 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:497) at com.justep.system.action.Engine.invokeAction(Native Method) at com.justep.system.action.Engine.invokeAction(Unknown Source) at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source) at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source) at com.justep.system.action.ActionUtils.invokeAction(Unknown Source) at com.justep.system.process.ProcessUtils.advanceProcess(Unknown Source) at ExternalProcessProcedure.advanceProcess(ExternalProcessProcedure.java:30) ... 27 more Caused by: java.lang.RuntimeException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: select sContent as sContent from SA_Task where SA_Task='E9342ACC1AE041C9BF75E5E124FDD22D' --> sql:  --> binds: [] at InboundProcess.applyAfterAdvance(InboundProcess.java:45) ... 38 more


请问,这个怎么解释?
源码
//申请环节结束时 ,把采购计划的意见填写到库表中
        public static void applyAfterAdvance() {
        try{
        String taskID=ProcessUtils.getProcessContext().getTask().getId();   //拿到当前流程ID
        String ksql="select sContent as sContent from SA_Task  where SA_Task='"+taskID+"'";
        com.justep.system.data.Table table=KSQL.select(ksql, null, "/DEMOERP/DEMOERP/data", null);//查出当前流程记录
          Iterator<Row> rows=table.iterator();                                                  //拿到操作者意见
          Row row=rows.next();
          String sContent=row.getString("sContent");
        //如果操作者留下了附言,将附言记录到库表中
        if(sContent!=null){
             String key=ProcessUtils.getProcessData1();
             String ksql1="UPDATE articleMove articleMove SET articleMove.fReportAdvice ='"+sContent+"' where articleMove='"+key+"'";
             KSQL.executeUpdate(ksql1, null, "/DEMOERP/DEMOERP/data", null);//将操作者意见存进库表中
             }
                }catch(Exception e){
                throw new RuntimeException(e.getMessage());
                }
        }


21

主题

122

帖子

442

积分

中级会员

Rank: 3Rank: 3

积分
442
QQ
 楼主| 发表于 2017-5-4 19:56:53 | 显示全部楼层
        public static void applyAfterAdvance() {
        try{
        String taskID=ProcessUtils.getProcessContext().getTask().getId();   //拿到当前流程ID
        String ksql = "select SA_Task.sContent as sContent from SA_Task SA_Task where SA_Task='"+taskID+"'";
        //String ksql = "select SA_Task.sContent as sContent from SA_Task SA_Task where SA_Task='"+taskID+"'";
        com.justep.system.data.Table table=KSQL.select(ksql, null, "/DEMOERP/DEMOERP/data", null);//查出当前流程记录
          Iterator<Row> rows=table.iterator();                                                  //拿到操作者意见
          Row row=rows.next();
          String sContent=row.getString("sContent");
        //如果操作者留下了附言,将附言记录到库表中
        if(sContent!=null){
             String key=ProcessUtils.getProcessData1();
             String ksql1="UPDATE articleMove articleMove SET articleMove.fReportAdvice ='"+sContent+"' where articleMove='"+key+"'";
             KSQL.executeUpdate(ksql1, null, "/DEMOERP/DEMOERP/data", null);//将操作者意见存进库表中
             }
                }catch(Exception e){
                throw new RuntimeException(e.getMessage());
                }
        }

我将KSQL里概念加了别名还是报错。
编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: select SA_Task.sContent as sContent from SA_Task SA_Task where SA_Task='8B84C9D00D084E4B8DF35E616F29CD10'
回复 支持 反对

使用道具 举报

21

主题

122

帖子

442

积分

中级会员

Rank: 3Rank: 3

积分
442
QQ
 楼主| 发表于 2017-5-4 23:23:58 | 显示全部楼层
已经解决了。就是将com.justep.system.data.Table table=KSQL.select(ksql, null, "/DEMOERP/DEMOERP/data", null);//查出当前流程记录  里的"/DEMOERP/DEMOERP/data"换成"/system/data".就好了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-24 09:32 , Processed in 0.052622 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表