|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
public static Table deptmanager(Table table){
String ksql = "select sOrgName from SA_OPManagement where SA_OPManagement.sManageOrgName=:CurrentDeptName()";//需要查询数据的ksql
Table table1 = KSQL.select(ksql, null, "/Office/ManagementSystem/data", null);//调用平台提供的API执行sql,并返回table
return table1;
}
报错:
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 com.justep.micro.service.MicroServiceFilter.doFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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 sOrgName from SA_OPManagement where SA_OPManagement.sManageOrgName=:CurrentDeptName() --> 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 ManagementSystem.deptmanager(ManagementSystem.java:11) ... 30 more Caused by: com.justep.exception.KSQLException: 编码: JUSTEP154115; 提示: KSQL语法错误, A_OPManagement ^^where SA_OPMana中未找到需要的元素, 位置37期望是<Identifier> at com.justep.exception.KSQLException.create(Unknown Source) at com.justep.system.ksql.token.TokenManager.matchToken(Unknown Source) at com.justep.system.ksql.token.TokenManager.match(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.conceptDeclare(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.joinedExpression(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.fromNode(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.selectSentenceNode(Unknown Source) at com.justep.system.ksql.parser.QueryParser.start(Unknown Source) at com.justep.system.ksql.parser.QueryParser.start(Unknown Source) at com.justep.system.ksql.parser.AbstractParser.parse(Unknown Source) ... 35 more
|
|