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

QQ登录

只需一步,快速开始

查看: 6412|回复: 15

[结贴] js调用ksqlQueryAction报错!

[复制链接]

31

主题

104

帖子

204

积分

中级会员

Rank: 3Rank: 3

积分
204
QQ
发表于 2017-7-12 08:44:20 | 显示全部楼层 |阅读模式
版本: 其它(帖子中说明) 小版本号: 3.6
数据库: MySQL 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 7 浏览器: Chrome
BeX5 3.6
通过Js端调用ksqlQueryAction,报错!代码,报错信息如图所示:

1.png
2.png

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-7-12 11:23:59 | 显示全部楼层
发一下tomcat控制台完整的错误信息
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

31

主题

104

帖子

204

积分

中级会员

Rank: 3Rank: 3

积分
204
QQ
 楼主| 发表于 2017-7-12 13:18:24 | 显示全部楼层
控制台信息如下:
2017-07-12 13:17:05 excute stream action, params:{"actions":[{"accept":"application/json","action":"ksqlQueryAction","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"dataModel":"/COMS/sw/data","ksql":"select fSN from Coms_sw sw where sw.fSN = 'SW-2017-217'"},"process":"/COMS/sw/process/approval/approvalProcess"},{"accept":"application/json","action":"saveComs_swAction","actionFlag":"__action_1__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"table":{"@type":"table","rows":[{"fAmount":{"changed":"1","value":"22"},"fAmountUnit":{"changed":"1","value":"万元"},"fArchiveDate":{"changed":"1","value":"2017-07-12"},"fArchiveMan":{"changed":"1"},"fArchiveStatus":{"changed":"1"},"fBidDate":{"changed":"1"},"fCity":{"changed":"1"},"fComment":{"changed":"1"},"fConstructor":{"changed":"1","value":"22"},"fContactInformation":{"changed":"1"},"fContractAttach":{"changed":"1","value":"[{\"docID\":\"C799DE83671000012A90134E47001771\",\"docName\":\"chrome.exe\",\"size\":\"976216\",\"docPath\":\"/defaultDocNameSpace\",\"fileID\":\"5-defaultDocNameSpace\",\"time\":\"2017-07-12T13:17:05.051Z\"}]"},"fContractCopy":{"changed":"1","value":"22"},"fContractLevel":{"changed":"1","value":"SW_CONTRACT_LEVEL_1"},"fContractLevelLabel":{"changed":"1","value":"小于等于50万分包"},"fContractName":{"changed":"1","value":"22"},"fCurrency":{"changed":"1","value":"SW_CURRENCY_CNY"},"fCurrencyLabel":{"changed":"1","value":"人民币"},"fDistrict":{"changed":"1"},"fEndDate":{"changed":"1"},"fFactDay":{"changed":"1"},"fFounder":{"changed":"1","value":"吕永涛"},"fIsPlan":{"changed":"1","value":"否"},"fLinkman":{"changed":"1"},"fMainDpt":{"changed":"1","value":"管理员组"},"fMainDptID":{"changed":"1","value":"JDSEutJaQA6I5XqEd5P"},"fOtherAttach":{"changed":"1"},"fPartner":{"changed":"1"},"fPartnerID":{"changed":"1"},"fPlanDay":{"changed":"1"},"fProcessActivity":{"changed":"1"},"fProcessStatus":{"changed":"1","value":"编制中"},"fProvince":{"changed":"1"},"fRegister":{"changed":"1","value":"吕永涛"},"fRegisterDate":{"changed":"1","value":"2017-07-12"},"fSN":{"changed":"1","value":"SW-2017-217"},"fSN1":{"changed":"1","value":""},"fSN2":{"changed":"1","value":"SW"},"fSN3":{"changed":"1","value":"2017"},"fSN4":{"changed":"1","value":"217"},"fSXID":{"changed":"1","value":"SF-2017-020"},"fSXName":{"changed":"1","value":"测试合同1"},"fSecondDpt":{"changed":"1"},"fSecondDptIDs":{"changed":"1"},"fSignDate":{"changed":"1"},"fStampDate":{"changed":"1","value":"2017-07-12"},"fStampMan":{"changed":"1"},"fStampStatus":{"changed":"1"},"fThirdDptIDs":{"changed":"1"},"fThirdDpts":{"changed":"1"},"userdata":{"id":{"value":"9F35E586177E46B7B3C58AD4D3775050"},"isModified":true,"recordState":"new"},"version":{"changed":"1","value":0}}],"userdata":{"idColumnDefine":"Coms_sw","idColumnName":"Coms_sw","idColumnType":"String","model":"/COMS/sw/data","relationAlias":"fAmount,fAmountUnit,fArchiveDate,fArchiveMan,fArchiveStatus,fBidDate,fCity,fComment,fConstructor,fContactInformation,fContractAttach,fContractCopy,fContractLevel,fContractLevelLabel,fContractName,fCurrency,fCurrencyLabel,fDistrict,fEndDate,fFactDay,fFounder,fIsPlan,fLinkman,fMainDpt,fMainDptID,fOtherAttach,fPartner,fPartnerID,fPlanDay,fProcessActivity,fProcessStatus,fProvince,fRegister,fRegisterDate,fSN,fSN1,fSN2,fSN3,fSN4,fSXID,fSXName,fSecondDpt,fSecondDptIDs,fSignDate,fStampDate,fStampMan,fStampStatus,fThirdDptIDs,fThirdDpts,version","relationTypes":"Decimal,String,Date,String,String,Date,String,String,String,String,Text,Integer,String,String,String,String,String,String,Date,Integer,String,String,String,String,String,Text,String,String,Integer,String,String,String,String,Date,String,String,String,String,String,String,String,String,String,Date,Date,String,String,String,String,Integer","relations":"Coms_sw.fAmount,Coms_sw.fAmountUnit,Coms_sw.fArchiveDate,Coms_sw.fArchiveMan,Coms_sw.fArchiveStatus,Coms_sw.fBidDate,Coms_sw.fCity,Coms_sw.fComment,Coms_sw.fConstructor,Coms_sw.fContactInformation,Coms_sw.fContractAttach,Coms_sw.fContractCopy,Coms_sw.fContractLevel,Coms_sw.fContractLevelLabel,Coms_sw.fContractName,Coms_sw.fCurrency,Coms_sw.fCurrencyLabel,Coms_sw.fDistrict,Coms_sw.fEndDate,Coms_sw.fFactDay,Coms_sw.fFounder,Coms_sw.fIsPlan,Coms_sw.fLinkman,Coms_sw.fMainDpt,Coms_sw.fMainDptID,Coms_sw.fOtherAttach,Coms_sw.fPartner,Coms_sw.fPartnerID,Coms_sw.fPlanDay,Coms_sw.fProcessActivity,Coms_sw.fProcessStatus,Coms_sw.fProvince,Coms_sw.fRegister,Coms_sw.fRegisterDate,Coms_sw.fSN,Coms_sw.fSN1,Coms_sw.fSN2,Coms_sw.fSN3,Coms_sw.fSN4,Coms_sw.fSXID,Coms_sw.fSXName,Coms_sw.fSecondDpt,Coms_sw.fSecondDptIDs,Coms_sw.fSignDate,Coms_sw.fStampDate,Coms_sw.fStampMan,Coms_sw.fStampStatus,Coms_sw.fThirdDptIDs,Coms_sw.fThirdDpts,Coms_sw.version","sys.rowid":"Coms_sw","updateMode":"whereVersion"}}},"process":"/COMS/sw/process/approval/approvalProcess"},{"accept":"application/json","action":"externalStartProcessAction","actionFlag":"__action_2__","activity":"mainActivity","contentType":"application/json","executeContext":"","executor":"","parameters":{"attributes":{"sData1":"9F35E586177E46B7B3C58AD4D3775050"},"executor":"","process":"/COMS/sw/process/approval/approvalProcess"},"process":"/COMS/sw/process/approval/approvalProcess"},{"accept":"application/json","action":"saveAttachAction","actionFlag":"__action_3__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"changeLog":"{\"items\":[{\"operation_type\":\"new\",\"process\":\"/COMS/sw/process/approval/approvalProcess\",\"activity\":\"mainActivity\",\"person\":\"/ORG01.ogn/JDSEutJaQA6I5XqEd5P.dpt/3C0x3nEnIK6rrkL83kv.dpt/8PTHHW8eC4ktM1XTUHc@3C0x3nEnIK6rrkL83kv.psm\",\"person_name\":\"吕永涛\",\"dept_name\":\"开发管理员\",\"bill_id\":\"9F35E586177E46B7B3C58AD4D3775050\",\"doc_id\":\"C799DE83671000012A90134E47001771\",\"version\":\"0\",\"file_id\":\"5-defaultDocNameSpace\",\"doc_version_id\":1,\"doc_name\":\"chrome.exe\",\"kind\":\"application/octet-stream\",\"size\":\"976216\",\"parent_id\":\"defaultDocNameSpace\",\"doc_path\":\"/defaultDocNameSpace\",\"doc_display_path\":\"/文档中心\",\"description\":\"\",\"classification\":\"\",\"keywords\":\"\",\"finish_time\":\"\",\"serial_number\":\"\",\"doc_type\":\"attach\",\"cache_name\":\"12-DOC\",\"revision_cache_name\":\"\",\"comment_file_content\":\"\",\"link_id\":\"C799DE8368700001B67C1CA062F011DA\",\"access_record_id\":\"C799DE8368700001C1381DB9D0E02640\"}],\"createVersionLogs\":[],\"operate\":\"saveDoc\",\"url\":\"\",\"process\":\"/COMS/sw/process/approval/approvalProcess\",\"activity\":\"mainActivity\",\"isHttps\":false}","isSaveDocLink":false},"process":"/SA/doc/system/systemProcess"},{"accept":"application/json","action":"saveAttachAction","actionFlag":"__action_4__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"changeLog":"{\"items\":[],\"createVersionLogs\":[],\"operate\":\"saveDoc\",\"url\":\"\",\"process\":\"/COMS/sw/process/approval/approvalProcess\",\"activity\":\"mainActivity\",\"isHttps\":false}","isSaveDocLink":false},"process":"/SA/doc/system/systemProcess"}]}
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: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: select fSN from Coms_sw sw where sw.fSN = 'SW-2017-217'
--> sql:
--> binds: []
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
        at com.justep.system.data.KSQL.select(Unknown Source)
        at KSQLProcedure.query(KSQLProcedure.java:17)
回复 支持 反对

使用道具 举报

31

主题

104

帖子

204

积分

中级会员

Rank: 3Rank: 3

积分
204
QQ
 楼主| 发表于 2017-7-12 13:19:35 | 显示全部楼层
Caused by: java.lang.NullPointerException
        at com.justep.system.ksql.visitor.QueryVisitor.createInfo(Unknown Source)
        at com.justep.system.ksql.visitor.QueryVisitor.visit(Unknown Source)
        at com.justep.system.ksql.node.SelectListNode.accept(Unknown Source)
        at com.justep.system.ksql.visitor.SQLVisitor.visitChildren(Unknown Source)
        at com.justep.system.ksql.visitor.SQLVisitor.visit(Unknown Source)
        at com.justep.system.ksql.node.SelectSentenceNode.accept(Unknown Source)
        at com.justep.system.ksql.visitor.SQLVisitor.visitChildren(Unknown Source)
        at com.justep.system.ksql.visitor.QueryVisitor.visit(Unknown Source)
        at com.justep.system.ksql.node.QuerySentence.accept(Unknown Source)
        ... 32 more
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-7-12 15:18:17 | 显示全部楼层
select fSN from Coms_sw sw where sw.fSN = 'SW-2017-217'
改为

select sw.fSN from Coms_sw sw where sw.fSN = 'SW-2017-217'看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

31

主题

104

帖子

204

积分

中级会员

Rank: 3Rank: 3

积分
204
QQ
 楼主| 发表于 2017-7-12 16:42:56 | 显示全部楼层
不报错,后台,前台都不报错,但是没有数据返回,数据库有这个数据
1.png
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-7-12 17:20:56 | 显示全部楼层
到ksqlQueryAction的java代码中看看table中是否有数据
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

31

主题

104

帖子

204

积分

中级会员

Rank: 3Rank: 3

积分
204
QQ
 楼主| 发表于 2017-7-13 08:07:30 | 显示全部楼层
哪里可以找到ksqQueryAction对应的Java代码?
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-7-13 09:47:58 | 显示全部楼层
/BIZ/system/logic/code/dsrc/KSQLProcedure.java
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

31

主题

104

帖子

204

积分

中级会员

Rank: 3Rank: 3

积分
204
QQ
 楼主| 发表于 2017-7-13 11:54:45 | 显示全部楼层
打断点不管用。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 10:05 , Processed in 0.083788 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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