|
请帮忙看看,是哪里语法错误?请指点。谢谢!一.js的调用语法:
biz.Request.sendBizRequest({
"context" :this.Context,
"action": "SM_Melsec_execAction",
"parameters": params,
"callback": function(callbackData) {
callbackData.ignoreError = false;
if (callbackData.state) {
alert("调用成功");
}else {
alert("调用失败");
}
}
});
二.传参信息:可正常获取;
三.错误信息:
Uncaught Error: __justepServerErrorStart__{"message":"参数\"fullName\"不允许为空","reason":"","code":"JUSTEP050006","stack":"com.justep.exception.BusinessException: 编码: JUSTEP050006; 提示: 参数\"fullName\"不允许为空\r\n\tat com.justep.exception.BusinessException.create(Unknown Source)\r\n\tat com.justep.util.Utils.check(Unknown Source)\r\n\tat com.justep.model.ModelUtils.getModelObjectByFullName(Unknown Source)\r\n\tat com.justep.system.action.Engine.invokeActions(Native Method)\r\n\tat com.justep.system.action.Engine.invokeActions(Unknown Source)\r\n\tat com.justep.business.server.BusinessServer.doAction(Unknown Source)\r\n\tat com.justep.business.server.BusinessServer.doExcute(Unknown Source)\r\n\tat com.justep.business.server.BusinessServer.excute(Unknown Source)\r\n\tat com.justep.business.server.BusinessServer.excute(Unknown Source)\r\n\tat com.justep.business.server.BusinessServerServlet.execService(Unknown Source)\r\n\tat com.justep.business.server.BusinessServerServlet.service(Unknown Source)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:723)\r\n\tat com.justep.x.bs.BusinessServerServlet.service(Unknown Source)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:723)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat com.justep.micro.service.MicroServiceFilter.doFilter(Unknown Source)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)\r\n\tat org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)\r\n\tat org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)\r\n\tat org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n","messages":["编码: JUSTEP050006; 提示: 参数\"fullName\"不允许为空"],"url":"http://localhost:8080/BusinessServer/business-action","param":{"contentType":"json","accept":"application/json","actionFlag":"__action_0__","action":"SM_Melsec_execAction","parameters":{"ipAddress":"192.168.1.10","port":"6001"},"translateParameter":null}}__justepServerErrorEnd__
at Object.create (core.min.js:71)
at Object.Request.errorMessage (biz.common.min.js:12)
at Object.h (biz.common.min.js:12)
at f (core.min.js:71)
at Object.add (core.min.js:71)
at _sendRequest (biz.common.min.js:12)
at Object.Request.sendRequest (biz.common.min.js:12)
at Object.$var._sendBizRequest (eval at __actionFinish (biz.common.min.js:12), <anonymous>:1:579)
at Object.Request.sendBizRequest (biz.common.min.js:12)
at n.Model.MelsecMCbutton1Click (PLCmainActivity.js:36)
create @ core.min.js:71
Request.errorMessage @ biz.common.min.js:12
h @ biz.common.min.js:12
f @ core.min.js:71
add @ core.min.js:71
_sendRequest @ biz.common.min.js:12
Request.sendRequest @ biz.common.min.js:12
$var._sendBizRequest @ VM6663:1
Request.sendBizRequest @ biz.common.min.js:12
Model.MelsecMCbutton1Click @ PLCmainActivity.js:36
fire @ core.min.js:71
fireEvent @ core.min.js:71
callParent @ core.min.js:71
fireEvent @ common.min.js:15
_doClick @ comp.min.js:144
i @ core.min.js:71
dispatch @ core.min.js:71
g.handle @ core.min.js:71
|
|