1

尝试查看表单的摘要页面或搜索表单时,我收到搜索错误并在日志中报告An Error has Occurred: Column 'username' not found.

4 个表 Orbeon_Form_Data、Orbeon_Form_Definition、Orbeon_Form_Data_Attach 和 Orbeon_Form_Definition_Attach 中的每一个都具有空的用户名列。我为这些字段添加了一个值以查看这是否重要(考虑可能是一个空问题),但我得到了同样的错误。

表单数据和定义似乎正确保存。我不确定 Orbeon 在哪里寻找用户名列。

这是 server.log 的摘录

09:56:11,984 WARN  [org.exist.http.Descriptor] (http--127.0.0.1-8080-1) Giving up unable to read descriptor file from C:\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\standalone\tmp\vfs\tempd072dcd37da36635\orbeon.war-8bd76bd2d270189a\WEB-INF\descriptor.xml
09:56:11,984 WARN  [org.exist.http.Descriptor] (http--127.0.0.1-8080-1) Giving up unable to read descriptor.xml file from classloader in package org.exist.http
09:56:12,875 INFO  [org.orbeon.oxf.webapp.ProcessorService] (http--127.0.0.1-8080-16) /fr/service/exist/form/test/test - Timing: 3782
09:56:12,890 INFO  [org.orbeon.oxf.webapp.ProcessorService] (http--127.0.0.1-8080-15) /fr/service/persistence/form/test/test - Timing: 4187
09:56:12,921 INFO  [org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer] (http--127.0.0.1-8080-14) *
09:56:12,968 ERROR [org.orbeon.oxf.controller.PageFlowControllerProcessor] (http--127.0.0.1-8080-14) error caught {controller: "oxf:/apps/fr/page-flow.xml", method: "POST", path: "/fr/service/mysql/search/test/test"}
09:56:13,078 ERROR [org.orbeon.oxf.controller.PageFlowControllerProcessor] (http--127.0.0.1-8080-14) 
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|Column 'username' not found.                                                                                          |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/apps/fr/page-flow.xml                                                        |reading page view data output |  59|
|······················································································································|
|element=<service path="/fr/service/mysql/search/([^/^.]+)/([^/^.]+)" view="persistence/mysql/search.xpl"/>            |
|view   =persistence/mysql/search.xpl                                                                                  |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/apps/fr/persistence/mysql/search.xpl                                         |reading processor output      | 390|
|······················································································································|
|element=<p:output name="data" ref="data"/>                                                                            |
|name   =data                                                                                                          |
|ref    =data                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/apps/fr/persistence/mysql/search.xpl                                         |executing XSLT transformation |    |
|----------------------------------------------------------------------------------------------------------------------|
|Exception: java.sql.SQLException                                                                                      |
|----------------------------------------------------------------------------------------------------------------------|
|com.mysql.jdbc.SQLError                            |createSQLException            |SQLError.java                 |1078|
|com.mysql.jdbc.SQLError                            |createSQLException            |SQLError.java                 | 989|
|com.mysql.jdbc.SQLError                            |createSQLException            |SQLError.java                 | 975|
|com.mysql.jdbc.SQLError                            |createSQLException            |SQLError.java                 | 920|
|com.mysql.jdbc.ResultSetImpl                       |findColumn                    |ResultSetImpl.java            |1167|
|org.jboss.jca.adapters.jdbc.WrappedResultSet       |findColumn                    |WrappedResultSet.java         | 299|
|on.oxf.processor.sql.interpreters.GetterInterpreter|start                         |GetterInterpreter.java        |  96|
|rocessor.sql.SQLProcessor$InterpreterContentHandler|startElement                  |SQLProcessor.java             | 503|
|f.processor.sql.interpreters.RowIteratorInterpreter|startElement                  |RowIteratorInterpreter.java   | 166|
|org.orbeon.oxf.xml.SAXStore                        |replay                        |SAXStore.java                 | 310|
|org.orbeon.oxf.xml.SAXStore                        |replay                        |SAXStore.java                 | 236|
|rocessor.sql.SQLProcessor$InterpreterContentHandler|repeatBody                    |SQLProcessor.java             | 549|
|f.processor.sql.interpreters.RowIteratorInterpreter|start                         |RowIteratorInterpreter.java   |  95|
|rocessor.sql.SQLProcessor$InterpreterContentHandler|endElement                    |SQLProcessor.java             | 529|
|org.orbeon.oxf.xml.SAXStore                        |replay                        |SAXStore.java                 | 322|
|org.orbeon.oxf.xml.SAXStore                        |replay                        |SAXStore.java                 | 236|
|rocessor.sql.SQLProcessor$InterpreterContentHandler|repeatBody                    |SQLProcessor.java             | 549|
|oxf.processor.sql.interpreters.ResultSetInterpreter|start                         |ResultSetInterpreter.java     |  75|
|rocessor.sql.SQLProcessor$InterpreterContentHandler|endElement                    |SQLProcessor.java             | 529|
|processor.sql.SQLProcessor$ForwardingContentHandler|endElement                    |SQLProcessor.java             | 635|
|rocessor.sql.SQLProcessor$InterpreterContentHandler|endElement                    |SQLProcessor.java             | 542|
|processor.sql.SQLProcessor$ForwardingContentHandler|endElement                    |SQLProcessor.java             | 635|
|rocessor.sql.SQLProcessor$InterpreterContentHandler|endElement                    |SQLProcessor.java             | 542|
|processor.sql.SQLProcessor$ForwardingContentHandler|endElement                    |SQLProcessor.java             | 635|
|rocessor.sql.SQLProcessor$InterpreterContentHandler|endElement                    |SQLProcessor.java             | 542|
|beon.oxf.processor.sql.SQLProcessor$RootInterpreter|endElement                    |SQLProcessor.java             | 290|
|org.orbeon.oxf.xml.SAXStore                        |replay                        |SAXStore.java                 | 322|
|org.orbeon.oxf.xml.SAXStore                        |replay                        |SAXStore.java                 | 236|
|org.orbeon.oxf.processor.sql.SQLProcessor          |execute                       |SQLProcessor.java             | 251|
|org.orbeon.oxf.processor.sql.SQLProcessor$1        |readImpl                      |SQLProcessor.java             |  89|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 266|
|on.oxf.processor.transformer.xslt.XSLTTransformer$1|runTransformer                |XSLTTransformer.java          | 467|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.ValidationException                                                                  |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.common.OrbeonLocationException$     |wrapException                 |OrbeonLocationException.scala |  60|
|org.orbeon.oxf.common.OrbeonLocationException      |wrapException                 |OrbeonLocationException.scala |    |
|on.oxf.processor.transformer.xslt.XSLTTransformer$1|runTransformer                |XSLTTransformer.java          | 526|
|on.oxf.processor.transformer.xslt.XSLTTransformer$1|readImpl                      |XSLTTransformer.java          | 188|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|orbeon.oxf.processor.pipeline.PipelineProcessor$1$1|run                           |PipelineProcessor.java        |  93|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|executeChildren               |PipelineProcessor.java        | 680|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|access$000                    |PipelineProcessor.java        |  60|
|g.orbeon.oxf.processor.pipeline.PipelineProcessor$1|readImpl                      |PipelineProcessor.java        |  91|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 266|
|org.orbeon.oxf.processor.IdentityProcessor$1       |readImpl                      |IdentityProcessor.java        |  34|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|orbeon.oxf.processor.pipeline.PipelineProcessor$1$1|run                           |PipelineProcessor.java        |  93|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|org.orbeon.oxf.webapp.ProcessorService             |service                       |ProcessorService.scala        |  41|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply$mcV$sp                  |OrbeonServlet.scala           |  74|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply                         |OrbeonServlet.scala           |  67|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply                         |OrbeonServlet.scala           |  67|
|org.orbeon.oxf.util.ScalaUtils$                    |withRootException             |ScalaUtils.scala              | 120|
|org.orbeon.oxf.servlet.OrbeonServlet               |service                       |OrbeonServlet.scala           |  67|
|javax.servlet.http.HttpServlet                     |service                       |HttpServlet.java              | 847|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 329|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 248|
|org.apache.catalina.core.StandardWrapperValve      |invoke                        |StandardWrapperValve.java     | 275|
|org.apache.catalina.core.StandardContextValve      |invoke                        |StandardContextValve.java     | 161|
|oss.as.web.security.SecurityContextAssociationValve|invoke                        |SecurityContextAssociationValv| 153|
|org.apache.catalina.core.StandardHostValve         |invoke                        |StandardHostValve.java        | 155|
|org.apache.catalina.valves.ErrorReportValve        |invoke                        |ErrorReportValve.java         | 102|
|org.apache.catalina.core.StandardEngineValve       |invoke                        |StandardEngineValve.java      | 109|
|org.apache.catalina.connector.CoyoteAdapter        |service                       |CoyoteAdapter.java            | 368|
|org.apache.coyote.http11.Http11Processor           |process                       |Http11Processor.java          | 877|
|oyote.http11.Http11Protocol$Http11ConnectionHandler|process                       |Http11Protocol.java           | 671|
|org.apache.tomcat.util.net.JIoEndpoint$Worker      |run                           |JIoEndpoint.java              | 930|
|java.lang.Thread                                   |run                           |                              |    |
+----------------------------------------------------------------------------------------------------------------------+ {}
09:56:13,171 INFO  [org.orbeon.oxf.webapp.ProcessorService] (http--127.0.0.1-8080-14) /fr/service/mysql/search/test/test - Timing: 4953
09:56:13,171 INFO  [org.orbeon.oxf.processor.DatabaseContext] (http--127.0.0.1-8080-14) Committing JDBC connection for datasource: jdbc/mysql.
09:56:13,187 INFO  [org.orbeon.oxf.webapp.ProcessorService] (http--127.0.0.1-8080-6) /fr/service/persistence/search/test/test - Timing: 5094
09:56:13,218 ERROR [org.orbeon.oxf.xforms.processor.XFormsServer] (http--127.0.0.1-8080-2) xforms-submit-error - setting throwable {throwable: "
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|xf:submission for submission id: search-submission, error code received when submitting instance: 500                 |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer                   |XFormsModelSubmission.java    | 730|
|rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        | 101|
|rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        |  71|
|org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.java           | 100|
|org.orbeon.oxf.xforms.submission.RegularSubmission |connect                       |RegularSubmission.java        | 124|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit                      |XFormsModelSubmission.java    | 464|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction          |XFormsModelSubmission.java    | 296|
|ch$$anonfun$dispatchEvent$1$$anonfun$apply$mcV$sp$1|apply$mcV$sp                  |Dispatch.scala                | 125|
|ch$$anonfun$dispatchEvent$1$$anonfun$apply$mcV$sp$1|apply                         |Dispatch.scala                |  74|
|ch$$anonfun$dispatchEvent$1$$anonfun$apply$mcV$sp$1|apply                         |Dispatch.scala                |  74|
|org.orbeon.oxf.util.Logging$class                  |withDebug                     |Logging.scala                 |  43|
|org.orbeon.oxf.xforms.event.Dispatch$              |withDebug                     |Dispatch.scala                |  23|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp                  |Dispatch.scala                |  74|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
|org.orbeon.oxf.xforms.event.Dispatch$              |withEvent$1                   |Dispatch.scala                |  38|
|org.orbeon.oxf.xforms.event.Dispatch$              |dispatchEvent                 |Dispatch.scala                |  72|
|g.orbeon.oxf.xforms.action.actions.XFormsSendAction|execute                       |XFormsSendAction.scala        |  51|
|org.orbeon.oxf.xforms.action.XFormsAction          |execute                       |XFormsAction.scala            |  36|
|rg.orbeon.oxf.xforms.action.XFormsActionInterpreter|runSingleIteration            |XFormsActionInterpreter.java  | 205|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|org.orbeon.oxf.webapp.ProcessorService             |service                       |ProcessorService.scala        |  41|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply$mcV$sp                  |OrbeonServlet.scala           |  74|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply                         |OrbeonServlet.scala           |  67|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply                         |OrbeonServlet.scala           |  67|
|org.orbeon.oxf.util.ScalaUtils$                    |withRootException             |ScalaUtils.scala              | 120|
|org.orbeon.oxf.servlet.OrbeonServlet               |service                       |OrbeonServlet.scala           |  67|
|javax.servlet.http.HttpServlet                     |service                       |HttpServlet.java              | 847|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 329|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 248|
|org.apache.catalina.core.StandardWrapperValve      |invoke                        |StandardWrapperValve.java     | 275|
|org.apache.catalina.core.StandardContextValve      |invoke                        |StandardContextValve.java     | 161|
|oss.as.web.security.SecurityContextAssociationValve|invoke                        |SecurityContextAssociationValv| 153|
|org.apache.catalina.core.StandardHostValve         |invoke                        |StandardHostValve.java        | 155|
|org.apache.catalina.valves.ErrorReportValve        |invoke                        |ErrorReportValve.java         | 102|
|org.apache.catalina.core.StandardEngineValve       |invoke                        |StandardEngineValve.java      | 109|
|org.apache.catalina.connector.CoyoteAdapter        |service                       |CoyoteAdapter.java            | 368|
|org.apache.coyote.http11.Http11Processor           |process                       |Http11Processor.java          | 877|
|oyote.http11.Http11Protocol$Http11ConnectionHandler|process                       |Http11Protocol.java           | 671|
|org.apache.tomcat.util.net.JIoEndpoint$Worker      |run                           |JIoEndpoint.java              | 930|
|java.lang.Thread                                   |run                           |                              |    |
+----------------------------------------------------------------------------------------------------------------------+"}

我在文档中搜索了“用户名”,但只能在 HTTP 标头中找到对用户名的引用。

编辑:这是 orbeon_form_definition 表中的示例行。您可以看到没有存储用户名,但列在那里(为了便于阅读,删除了 XML 值)。

created, last_modified, username, app, form, deleted, xml
2013-09-11 09:24:30, 2013-09-11 09:24:30, , test, test, N, <xh:html ......>
4

3 回答 3

1

现在我可以保证 MySQL 在 Orbeon 4.4 中运行得更好,这个错误在这个版本中得到了解决。您需要使用 mysql 数据库的更新脚本:mysql-4_3-to-r_4。4.4 版中添加了一些新字段,而其他字段则更改了名称。

于 2013-11-12T10:02:31.530 回答
0

文档的相关部分在这里。您将看到这些表确实有一username列。

于 2013-09-12T16:09:16.037 回答
0

我已经尝试过同样的问题(用户名列存在于 mysql 的表中)。找了一阵子,发现这个问题也发在官方论坛了。

正如您在此处建议的那样,降级到 4.2 版将解决该问题。似乎是 4.3 版的错误。我在这里发布链接以帮助任何有同样问题的人。

如果您仍想使用 4.3 版,一种解决方法是避免使用摘要页面。要访问表单,您可以使用 URL:

`http://localhost:8080/orbeon/fr/orbeon/builder/edit/<<document_id>>`

其中 'document_id' 是 MySQL 表上表单的标识符。此解决方法不允许您再次保存表单,除非您删除 mysql_table 中的旧表单,否则您将遇到“重复主键错误”。仅当您在数据库中定义了主键时,才会发生这种情况。

于 2013-09-16T08:37:50.430 回答