orbeon pdf-url不会调用uri参数

时间:2014-08-07 20:42:31

标签: orbeon

Orbeon版本“Orbeon Forms 4.6.1.201407102219 PE”。

来自我的properties-local-dev.xml:

<!-- store acm form data (e.g. the form documents) by calling ACM services -->
<property as="xs:string"  
      name="oxf.fr.persistence.provider.acm.*.data"
      value="acmRestServices"/>
<property as="xs:anyURI"  
      name="oxf.fr.persistence.acmRestServices.uri"
      value="http://localhost:8080/acm/api/v1/forms"/>
<property as="xs:boolean"  
      name="oxf.fr.persistence.acmRestServices.autosave"
      value="true"/> 
<property
  as="xs:string"
  name="oxf.fr.detail.send.success.uri.*.*"
  value='http://localhost:8080/acm/api/v1/forms/pdf?acm_ticket={//acm_ticket}'/>


<property as="xs:string"  name="oxf.fr.detail.process.save-final.*.*">
   require-uploads
   then validate-all
   then save(query = "acm_ticket={//acm_ticket}")
   then send(content="pdf-url")
   then success-message("save-success")
   recover error-message("database-error")
 </property>

PDF服务(http://localhost:8080/acm/api/v1/forms/pdf)存在。 crud服务保存表单数据工作。 acm_ticket字段存在于表单中。

永远不会调用PDF服务。相反,在orbeon.log中,我看到下面的例外。如何使PDF URL生效?此问题将阻止我们使用Orbeon。

2014-08-07 16:16:59,692 INFO ProcessorService - /fr/service/acm/complaint-form/pdf/9ae097e8414e25a223edab3e1a935a9a45d99d39 - Received request 2014-08-07 16:16:59,885 INFO ProcessorService - /fr/service/persistence/crud/acm/complaint-form/form/form.xhtml - Received request 2014-08-07 16:16:59,915 INFO ProcessorService - /fr/service/oracle/crud/acm/complaint-form/form/form.xhtml - Received request 2014-08-07 16:16:59,944 INFO ProcessorService - /fr/service/oracle/crud/acm/complaint-form/form/form.xhtml - Timing: 29 2014-08-07 16:16:59,947 INFO ProcessorService - /fr/service/persistence/crud/acm/complaint-form/form/form.xhtml - Timing: 62 2014-08-07 16:16:59,961 INFO PageFlowControllerProcessor - not found {controller: "oxf:/apps/fr/page-flow.xml", method: "POST", path: "/fr/service/acm/complaint-form/pdf/9ae097e8414e25a223edab3e1a935a9a45d99d39", resource: "http://localhost:8888/orbeon/fr/service/persistence/crud/acm/complaint-form/form/form.xhtml?document=9ae097e8414e25a223edab3e1a935a9a45d99d39"} 2014-08-07 16:16:59,962 INFO ProcessorService - /fr/service/acm/complaint-form/pdf/9ae097e8414e25a223edab3e1a935a9a45d99d39 - Timing: 270 2014-08-07 16:16:59,982 ERROR XFormsServer - xforms-submit-error - setting throwable {throwable: " 2014-08-07 16:16:59,982 ERROR XFormsServer - +----------------------------------------------------------------------------------------------------------------------+ 2014-08-07 16:16:59,982 ERROR XFormsServer - |An Error has Occurred | 2014-08-07 16:16:59,982 ERROR XFormsServer - |----------------------------------------------------------------------------------------------------------------------| 2014-08-07 16:16:59,982 ERROR XFormsServer - |xf:submission for submission id: fr-pdf-service-submission, error code received when submitting instance: 404 | 2014-08-07 16:16:59,982 ERROR XFormsServer - |----------------------------------------------------------------------------------------------------------------------| 2014-08-07 16:16:59,982 ERROR XFormsServer - |Application Call Stack | 2014-08-07 16:16:59,982 ERROR XFormsServer - |----------------------------------------------------------------------------------------------------------------------| 2014-08-07 16:16:59,982 ERROR XFormsServer - |oxf:/apps/fr/includes/persistence/persistence-model.xml |processing submission response| 484| 2014-08-07 16:16:59,982 ERROR XFormsServer - |······················································································································| 2014-08-07 16:16:59,982 ERROR XFormsServer - |element=<xf:submission id="fr-pdf-service-submission" resource="/fr/service/{$app}/{$form}/pdf/{$document}?fr-language| 2014-08-07 16:16:59,983 ERROR XFormsServer - |----------------------------------------------------------------------------------------------------------------------| 2014-08-07 16:16:59,986 ERROR XFormsServer - |----------------------------------------------------------------------------------------------------------------------| 2014-08-07 16:16:59,987 ERROR XFormsServer - |Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException | 2014-08-07 16:16:59,989 ERROR XFormsServer - |----------------------------------------------------------------------------------------------------------------------| 2014-08-07 16:16:59,989 ERROR XFormsServer - |.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer |XFormsModelSubmission.java | 733| 2014-08-07 16:16:59,990 ERROR XFormsServer - |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call |RegularSubmission.java | 99| 2014-08-07 16:16:59,990 ERROR XFormsServer - |rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call |RegularSubmission.java | 69| 2014-08-07 16:16:59,990 ERROR XFormsServer - |org.orbeon.oxf.xforms.submission.BaseSubmission |submitCallable |BaseSubmission.java | 99| 2014-08-07 16:16:59,990 ERROR XFormsServer - |org.orbeon.oxf.xforms.submission.RegularSubmission |connect |RegularSubmission.java | 122| 2014-08-07 16:16:59,990 ERROR XFormsServer - |.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit |XFormsModelSubmission.java | 464| 2014-08-07 16:16:59,990 ERROR XFormsServer - |.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction |XFormsModelSubmission.java | 296| 2014-08-07 16:16:59,990 ERROR XFormsServer - |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp |Dispatch.scala | 137| 2014-08-07 16:16:59,990 ERROR XFormsServer - |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply |Dispatch.scala | 73| 2014-08-07 16:16:59,990 ERROR XFormsServer - |.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply |Dispatch.scala | 73| 2014-08-07 16:16:59,990 ERROR XFormsServer - |org.orbeon.oxf.xforms.event.Dispatch$ |withEvent$1 |Dispatch.scala | 38| 2014-08-07 16:16:59,990 ERROR XFormsServer - |org.orbeon.oxf.xforms.event.Dispatch$ |dispatchEvent |Dispatch.scala | 72| 2014-08-07 16:16:59,990 ERROR XFormsServer - |org.orbeon.oxf.xforms.action.XFormsAPI$ |send |XFormsAPI.scala | 261| 2014-08-07 16:16:59,990 ERROR XFormsServer - |org.orbeon.oxf.xforms.action.XFormsAPI$ |sendThrowOnError |XFormsAPI.scala | 278| 2014-08-07 16:16:59,991 ERROR XFormsServer - |s.FormRunnerActions$$anonfun$tryCreatePDFIfNeeded$1|apply |FormRunnerActions.scala | 379| 2014-08-07 16:16:59,991 ERROR XFormsServer - |scala.util.Try$ |apply |Try.scala | 161| 2014-08-07 16:16:59,991 ERROR XFormsServer - |org.orbeon.oxf.fr.process.FormRunnerActions$class |tryCreatePDFIfNeeded |FormRunnerActions.scala | 376| 2014-08-07 16:16:59,991 ERROR XFormsServer - |org.orbeon.oxf.fr.process.SimpleProcess$ |tryCreatePDFIfNeeded |SimpleProcess.scala | 34| 2014-08-07 16:16:59,991 ERROR XFormsServer - |oxf.fr.process.FormRunnerActions$$anonfun$trySend$1|apply |FormRunnerActions.scala | 220| 2014-08-07 16:16:59,991 ERROR XFormsServer - |oxf.fr.process.FormRunnerActions$$anonfun$trySend$1|apply |FormRunnerActions.scala | 180| 2014-08-07 16:16:59,993 ERROR XFormsServer - |---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---| 2014-08-07 16:16:59,993 ERROR XFormsServer - |javax.servlet.http.HttpServlet |service |HttpServlet.java | 727| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.core.ApplicationFilterChain |internalDoFilter |ApplicationFilterChain.java | 303| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.core.ApplicationFilterChain |doFilter |ApplicationFilterChain.java | 208| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.tomcat.websocket.server.WsFilter |doFilter |WsFilter.java | 52| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.core.ApplicationFilterChain |internalDoFilter |ApplicationFilterChain.java | 241| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.core.ApplicationFilterChain |doFilter |ApplicationFilterChain.java | 208| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.core.StandardWrapperValve |invoke |StandardWrapperValve.java | 220| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.core.StandardContextValve |invoke |StandardContextValve.java | 122| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.authenticator.AuthenticatorBase|invoke |AuthenticatorBase.java | 501| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.core.StandardHostValve |invoke |StandardHostValve.java | 170| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.valves.ErrorReportValve |invoke |ErrorReportValve.java | 98| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.valves.AccessLogValve |invoke |AccessLogValve.java | 950| 2014-08-07 16:16:59,993 ERROR XFormsServer - |org.apache.catalina.core.StandardEngineValve |invoke |StandardEngineValve.java | 116| 2014-08-07 16:16:59,994 ERROR XFormsServer - |org.apache.catalina.connector.CoyoteAdapter |service |CoyoteAdapter.java | 408| 2014-08-07 16:16:59,994 ERROR XFormsServer - |org.apache.coyote.http11.AbstractHttp11Processor |process |AbstractHttp11Processor.java |1040| 2014-08-07 16:16:59,994 ERROR XFormsServer - |e.coyote.AbstractProtocol$AbstractConnectionHandler|process |AbstractProtocol.java | 607| 2014-08-07 16:16:59,994 ERROR XFormsServer - |.apache.tomcat.util.net.JIoEndpoint$SocketProcessor|run |JIoEndpoint.java | 313| 2014-08-07 16:16:59,994 ERROR XFormsServer - |java.util.concurrent.ThreadPoolExecutor |runWorker |ThreadPoolExecutor.java |1145| 2014-08-07 16:16:59,994 ERROR XFormsServer - |java.util.concurrent.ThreadPoolExecutor$Worker |run |ThreadPoolExecutor.java | 615| 2014-08-07 16:16:59,994 ERROR XFormsServer - |java.lang.Thread |run |Thread.java | 744| 2014-08-07 16:16:59,994 ERROR XFormsServer - +----------------------------------------------------------------------------------------------------------------------+"} 2014-08-07 16:17:00,129 INFO ProcessorService - /xforms-server - Timing: 1049 2014-08-07 16:17:00,723 INFO ProcessorService - /xforms-server - Received request 2014-08-07 16:17:00,733 INFO ProcessorService - /xforms-server - Timing: 10

0 个答案:

没有答案