0

在解决了我最初的 properties-local.xml 问题后,我转向了另一个问题。我最初遇到了一个命名上下文错误,我通过将 的值更改为与 JBoss 的资源定义匹配oxf.fr.persistence.provider.*.*.*来解决该错误。db

现在,当保存表单定义时,我会收到带有消息的错误对话框。

There was an error communicating with the database. 
Please contact the application administrator.

当我检查 server.log 时,我注意到在输入新的表单名称、标题和描述后单击继续后发生了第一个异常。

例外是:

21:41:26,312 ERROR [org.orbeon.oxf.controller.PageFlowControllerProcessor] (http--127.0.0.1-8080-8) error caught {controller: "oxf:/apps/fr/page-flow.xml", method: "GET", path: "/fr/service/persistence/crud/orbeon/library/form/form.xhtml"}
21:41:26,406 ERROR [org.orbeon.oxf.controller.PageFlowControllerProcessor] (http--127.0.0.1-8080-8) 
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.common.ValidationException: line 18, column 47 of oxf:/apps/fr/persistence/proxy.xpl (executing process|
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/apps/fr/page-flow.xml                                                        |reading page model data output|  18|
|······················································································································|
|element=<service path="/fr/service/persistence/.*" model="persistence/proxy.xpl"/>                                    |
|model  =persistence/proxy.xpl                                                                                         |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/apps/fr/persistence/proxy.xpl                                                |executing processor           |  18|
|······················································································································|
|element=<p:processor name="fr:persistence-proxy"/>                                                                    |
|name   ={http://orbeon.org/oxf/xml/form-runner}persistence-proxy                                                      |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: java.lang.NullPointerException                                                                             |

我假设我的 properties-local.xml 需要一些工作。以下是内容:

<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:oxf="http://www.orbeon.com/oxf/processors">
  <property as="xs:string" name="oxf.fr.persistence.provider.*.*.*" value="db"/>
  <property as="xs:string" name="oxf.fr.persistence.mysql.datasource" value="db"/>
</properties>

没有第二个属性我有同样的错误。

4

0 回答 0