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

QQ登录

只需一步,快速开始

查看: 3095|回复: 2

[结贴] 通过X机制怎么重载action,覆盖原来的action

[复制链接]

1014

主题

4373

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
10985
QQ
发表于 2020-8-28 08:45:56 | 显示全部楼层 |阅读模式
通过如下操作,报错
1、覆盖自带的saveOPPersonAction;
2、新建文件/BIZ/SA_X/OPM/logic/action/org.action.m;
3、在org.action.m中添加saveOPPersonAction;
4、运行/UI2/SA/OPM/organization/mainActivity.w功能报错,报错信息如下
  1. 2020-08-28 08:45:24 开始-WINDOW生成中间文件: /UI2/SA/OPM/organization/mainActivity.w
  2. 2020-08-28 08:45:24 编码: JUSTEP191056; 提示: 解析Data(orgListData)定义失败,Can not be loaded in the model [/SA/OPM/logic/action] action [queryOPOrgAction]
  3. javax.servlet.ServletException: com.justep.ui.system.SystemComponentException: 编码: JUSTEP191056; 提示: 解析Data(orgListData)定义失败,Can not be loaded in the model [/SA/OPM/logic/action] action [queryOPOrgAction]
  4.         at com.justep.ui.servlet.MainServlet.service(Unknown Source)
  5.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
  6.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  7.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  8.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  9.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  10.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  11.         at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
  12.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  13.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  14.         at com.justep.ui.filter.MicroServiceAdminFilter.doFilter(Unknown Source)
  15.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  16.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  17.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  18.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  19.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
  20.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  21.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  22.         at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
  23.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  24.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  25.         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
  26.         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  27.         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
  28.         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626)
  29.         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  30.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  31.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  32.         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  33.         at java.lang.Thread.run(Thread.java:745)
  34. Caused by: com.justep.ui.system.SystemComponentException: 编码: JUSTEP191056; 提示: 解析Data(orgListData)定义失败,Can not be loaded in the model [/SA/OPM/logic/action] action [queryOPOrgAction]
  35.         at com.justep.ui.system.SystemComponentException.create(SystemComponentException.java:42)
  36.         at BizData.createDataDef(BizData.java:35)
  37.         at Data.execute(Data.java:42)
  38.         at com.justep.ui.component.ComponentEngine.processServerTemplate(Unknown Source)
  39.         at com.justep.ui.component.ComponentEngine.parser(Unknown Source)
  40.         at com.justep.ui.component.ComponentEngine.parser(Unknown Source)
  41.         at com.justep.ui.component.ComponentEngine.parser(Unknown Source)
  42.         at com.justep.ui.component.ComponentEngine.execute(Unknown Source)
  43.         at com.justep.ui.WindowCompiler2.w2Middle(Unknown Source)
  44.         at com.justep.ui.WindowCompiler2.compile(Unknown Source)
  45.         at com.justep.ui.WindowServer2.compileWindow(Unknown Source)
  46.         at com.justep.ui.WindowServer2.service(Unknown Source)
  47.         ... 30 more
  48. Caused by: com.justep.xbl.runtime.XBLException: Can not be loaded in the model [/SA/OPM/logic/action] action [queryOPOrgAction]
  49.         at com.justep.ui2.system.component.data.bizdata.BizDataDef.loadBizActionModel(Native Method)
  50.         at com.justep.ui2.system.component.data.bizdata.BizDataDef.<init>(Unknown Source)
  51.         at BizData.createDataDef(BizData.java:32)
  52.         ... 40 more
  53. 八月 28, 2020 8:45:24 上午 org.apache.catalina.core.StandardWrapperValve invoke
  54. 严重: 在路径为/x5的上下文中,Servlet[main-servlet]的Servlet.service()引发了具有根本原因的异常com.justep.ui.system.SystemComponentException: 编码: JUSTEP191056; 提示: 解析Data(orgListData)定义失败,Can not be loaded in the model [/SA/OPM/logic/action] action [queryOPOrgAction]
  55. com.justep.xbl.runtime.XBLException: Can not be loaded in the model [/SA/OPM/logic/action] action [queryOPOrgAction]
  56.         at com.justep.ui2.system.component.data.bizdata.BizDataDef.loadBizActionModel(Native Method)
  57.         at com.justep.ui2.system.component.data.bizdata.BizDataDef.<init>(Unknown Source)
  58.         at BizData.createDataDef(BizData.java:32)
  59.         at Data.execute(Data.java:42)
  60.         at com.justep.ui.component.ComponentEngine.processServerTemplate(Unknown Source)
  61.         at com.justep.ui.component.ComponentEngine.parser(Unknown Source)
  62.         at com.justep.ui.component.ComponentEngine.parser(Unknown Source)
  63.         at com.justep.ui.component.ComponentEngine.parser(Unknown Source)
  64.         at com.justep.ui.component.ComponentEngine.execute(Unknown Source)
  65.         at com.justep.ui.WindowCompiler2.w2Middle(Unknown Source)
  66.         at com.justep.ui.WindowCompiler2.compile(Unknown Source)
  67.         at com.justep.ui.WindowServer2.compileWindow(Unknown Source)
  68.         at com.justep.ui.WindowServer2.service(Unknown Source)
  69.         at com.justep.ui.servlet.MainServlet.service(Unknown Source)
  70.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
  71.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  72.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  73.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  74.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  75.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  76.         at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
  77.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  78.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  79.         at com.justep.ui.filter.MicroServiceAdminFilter.doFilter(Unknown Source)
  80.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  81.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  82.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  83.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  84.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
  85.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  86.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  87.         at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
  88.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  89.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  90.         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
  91.         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  92.         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
  93.         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626)
  94.         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  95.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  96.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  97.         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  98.         at java.lang.Thread.run(Thread.java:745)
复制代码


孤舟蓑笠翁,独钓寒江雪。
X5牛刀交流民间第一群:30057529
提供有偿服务,联系WX:18332024
bex5疑难问题解决方案

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2020-8-28 09:19:10 | 显示全部楼层
跟平台默认一样的文件,要直接把平台默认的文件拷贝过来去修改
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

1014

主题

4373

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
10985
QQ
 楼主| 发表于 2020-8-28 09:31:29 | 显示全部楼层
收到,结贴。
孤舟蓑笠翁,独钓寒江雪。
X5牛刀交流民间第一群:30057529
提供有偿服务,联系WX:18332024
bex5疑难问题解决方案
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 15:55 , Processed in 0.057413 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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