如何从控制台中删除 Web 服务的 404 错误?

How to remove 404 errors of the web service from the console?

提问人:Lebki 提问时间:12/14/2017 最后编辑:mrogal.skiLebki 更新时间:12/14/2017 访问量:105

问:

如何从控制台的 Web 服务中删除 404 错误

我设法通过添加条件(如果 Web 服务参数不为 null)从 Web 服务中删除 404。 但是,如果该字段属于可重复的部分,则我无法做到这一点(如果我放置其参数的条件,则Web服务在其他迭代中不起作用)。

此外,在保存表单期间,我注意到 Web 服务中存在多个 404 错误。 这是发生错误时的堆栈跟踪:

> +----------------------------------------------------------------------------------------------------------------------+"}
2017-12-13 11:37:30,835 ERROR XFormsServer  - xforms-submit-error - setting throwable {throwable: "
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|xf:submission for submission id: getStatutGestion-submission, error code received when submitting instance: 404       |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer                   |XFormsModelSubmission.java    | 722|
|rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        | 108|
|rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        |  78|
|org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.scala          |  89|
|org.orbeon.oxf.xforms.submission.RegularSubmission |connect                       |RegularSubmission.java        | 131|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit                      |XFormsModelSubmission.java    | 453|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction          |XFormsModelSubmission.java    | 283|
|ch$$anonfun$dispatchEvent$1$$anonfun$apply$mcV$sp$1|apply$mcV$sp                  |Dispatch.scala                | 130|
|ch$$anonfun$dispatchEvent$1$$anonfun$apply$mcV$sp$1|apply                         |Dispatch.scala                |  79|
|ch$$anonfun$dispatchEvent$1$$anonfun$apply$mcV$sp$1|apply                         |Dispatch.scala                |  79|
|org.orbeon.oxf.util.Logging$class                  |withDebug                     |Logging.scala                 |  50|
|org.orbeon.oxf.xforms.event.Dispatch$              |withDebug                     |Dispatch.scala                |  28|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp                  |Dispatch.scala                |  79|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  78|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  78|
|org.orbeon.oxf.xforms.event.Dispatch$              |withEvent$1                   |Dispatch.scala                |  43|
|org.orbeon.oxf.xforms.event.Dispatch$              |dispatchEvent                 |Dispatch.scala                |  77|
|g.orbeon.oxf.xforms.action.actions.XFormsSendAction|execute                       |XFormsSendAction.scala        |  51|
|org.orbeon.oxf.xforms.action.XFormsAction          |execute                       |XFormsAction.scala            |  34|
|rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runSingleIteration            |XFormsActionInterpreter.java  | 221|
|rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runAction                     |XFormsActionInterpreter.java  | 157|
|ction.actions.XFormsActionAction$$anonfun$execute$2|apply                         |XFormsActionAction.scala      |  79|
|ction.actions.XFormsActionAction$$anonfun$execute$2|apply                         |XFormsActionAction.scala      |  67|
|scala.collection.Iterator$class                    |foreach                       |Iterator.scala                | 893|
|scala.collection.AbstractIterator                  |foreach                       |Iterator.scala                |1336|
|scala.collection.IterableLike$class                |foreach                       |IterableLike.scala            |  72|
|scala.collection.AbstractIterable                  |foreach                       |Iterable.scala                |  54|
|orbeon.oxf.xforms.action.actions.XFormsActionAction|execute                       |XFormsActionAction.scala      |  67|
|rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runSingleIteration            |XFormsActionInterpreter.java  | 221|
|rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runAction                     |XFormsActionInterpreter.java  | 157|
|forms.event.EventHandlerImpl$$anonfun$handleEvent$1|apply$mcV$sp                  |EventHandlerImpl.scala        | 256|
|forms.event.EventHandlerImpl$$anonfun$handleEvent$1|apply                         |EventHandlerImpl.scala        | 256|
|forms.event.EventHandlerImpl$$anonfun$handleEvent$1|apply                         |EventHandlerImpl.scala        | 256|
|org.orbeon.oxf.util.DynamicVariable                |withValue                     |DynamicVariable.scala         |  42|
|org.orbeon.oxf.xforms.action.XFormsAPI$            |withScalaAction               |XFormsAPI.scala               |  47|
|org.orbeon.oxf.xforms.event.EventHandlerImpl       |handleEvent                   |EventHandlerImpl.scala        | 255|
|$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$1|apply$mcV$sp                  |Dispatch.scala                |  98|
|$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$1|apply                         |Dispatch.scala                |  97|
|$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$1|apply                         |Dispatch.scala                |  97|
|org.orbeon.oxf.util.Logging$class                  |withDebug                     |Logging.scala                 |  50|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 305|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 210|
|org.apache.tomcat.websocket.server.WsFilter        |doFilter                      |WsFilter.java                 |  51|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 243|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 210|
|org.apache.catalina.filters.CorsFilter             |handleSimpleCORS              |CorsFilter.java               | 302|
|org.apache.catalina.filters.CorsFilter             |doFilter                      |CorsFilter.java               | 170|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 243|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 210|
|org.orbeon.oxf.servlet.FormRunnerAuthFilter        |doFilter                      |FormRunnerAuthFilter.scala    |  26|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 243|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 210|
|doFilter$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1|apply$mcV$sp                  |LimiterFilter.scala           |  85|
|doFilter$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1|apply                         |LimiterFilter.scala           |  85|
|doFilter$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1|apply                         |LimiterFilter.scala           |  85|
|org.orbeon.oxf.logging.LifecycleLogger$            |withEvent                     |LifecycleLogger.scala         | 124|
|.LimiterFilter$$anonfun$doFilter$1$$anonfun$apply$1|apply$mcV$sp                  |LimiterFilter.scala           |  84|
|.LimiterFilter$$anonfun$doFilter$1$$anonfun$apply$1|apply                         |LimiterFilter.scala           |  78|
|.LimiterFilter$$anonfun$doFilter$1$$anonfun$apply$1|apply                         |LimiterFilter.scala           |  78|
|org.orbeon.oxf.logging.LifecycleLogger$            |withEvent                     |LifecycleLogger.scala         | 124|
|rbeon.oxf.servlet.LimiterFilter$$anonfun$doFilter$1|apply                         |LimiterFilter.scala           |  78|
|rbeon.oxf.servlet.LimiterFilter$$anonfun$doFilter$1|apply                         |LimiterFilter.scala           |  72|
|scala.Option                                       |foreach                       |Option.scala                  | 257|
|org.orbeon.oxf.servlet.LimiterFilter               |doFilter                      |LimiterFilter.scala           |  72|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 243|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 210|
|org.apache.catalina.core.StandardWrapperValve      |invoke                        |StandardWrapperValve.java     | 222|
|org.apache.catalina.core.StandardContextValve      |invoke                        |StandardContextValve.java     | 123|
|org.apache.catalina.authenticator.AuthenticatorBase|invoke                        |AuthenticatorBase.java        | 502|
|org.apache.catalina.core.StandardHostValve         |invoke                        |StandardHostValve.java        | 171|
|org.apache.catalina.valves.ErrorReportValve        |invoke                        |ErrorReportValve.java         | 100|
|org.apache.catalina.valves.AccessLogValve          |invoke                        |AccessLogValve.java           | 953|
|org.apache.catalina.core.StandardEngineValve       |invoke                        |StandardEngineValve.java      | 118|
|org.apache.catalina.connector.CoyoteAdapter        |service                       |CoyoteAdapter.java            | 408|
|org.apache.coyote.http11.AbstractHttp11Processor   |process                       |AbstractHttp11Processor.java  |1041|
|e.coyote.AbstractProtocol$AbstractConnectionHandler|process                       |AbstractProtocol.java         | 603|
|.apache.tomcat.util.net.JIoEndpoint$SocketProcessor|run                           |JIoEndpoint.java              | 312|
|java.util.concurrent.ThreadPoolExecutor            |runWorker                     |ThreadPoolExecutor.java       |1142|
|java.util.concurrent.ThreadPoolExecutor$Worker     |run                           |ThreadPoolExecutor.java       | 617|
|java.lang.Thread                                   |run                           |Thread.java                   | 745|
表单 错误处理 xhtml http-status-code-404 orbeon

评论

0赞 avernet 12/15/2017
您正在呼叫您提供的服务,对吗?为什么该服务返回 404?我想它不应该,对吧?或者你是说你的服务返回 404 没问题,只是希望错误不显示在控制台中?
0赞 Lebki 12/15/2017
打开表单时,Orbeon 会调用此表单的服务,并且有些服务带有参数,它们在打开时是空的,这就是为什么它们显示错误 404 的原因,但我想让这些服务的条件仅在满足参数的情况下才起作用,这种在控制台中出现异常的服务加载会使表单打开的加载更加繁琐。
0赞 Lebki 12/15/2017
对于可重复的部分,我如何在属于此部分的字段上设置条件,因为我输入了字段的名称,但该服务仅在第一次迭代中起作用。此外,在注册表格时,orbeon 将调用服务并返回 404。
0赞 avernet 12/16/2017
与其不显示错误,不如不发生错误。因此,我收集到有时您的表单加载了参数,有时没有,如果参数不存在,则服务将返回 404。如果参数不存在,则在表单加载时未调用服务,它是否适合您?
0赞 avernet 12/22/2017
Lebki,只是检查:你有没有解决这个问题,或者这不再是优先事项?

答: 暂无答案