gpt4 book ai didi

mysql - Orbeon 3.9.0 远程/网络 Mysql 服务器

转载 作者:行者123 更新时间:2023-11-29 14:51:43 25 4
gpt4 key购买 nike

我正在使用 Orbeon 3.9.0 PE RC1 和 liferay-portal-6.0.5。当使用 Localhost Mysql 持久层时,它可以工作。

但是当尝试使用远程(本地网络)Mysql 数据库时,表单生成器无法发布任何表单并且没有显示数据。

Properties-local.xml 配置

`

错误日志示例。

2011-04-07 12:37:18,118 INFO ProcessorService -/fr/service/mysql/search/orbeon/builder - 收到请求2011-04-07 12:37:20,853 错误 SQLProcessor -PreparedStatement:

                                    select
(
select count(*) from orbeon_form_data
where
(app, form, document_id, last_modified) in (
select app, form, document_id, max(last_modified) last_modified
from orbeon_form_data
where
app = ?
and form = ?
group by app, form, document_id)
and deleted = 'N'
) total,
(
select count(*) from (
select
data.created, data.last_modified, data.document_id


, extractValue(data.xml, '/*/xhtml:head/xforms:model[@id = ''fr-form-model'']/xforms:instance[@id = ''fr-form-metadata'']/*/application-name') detail_1
, extractValue(data.xml, '/*/xhtml:head/xforms:model[@id = ''fr-form-model'']/xforms:instance[@id = ''fr-form-metadata'']/*/form-name') detail_2
, extractValue(data.xml, '/*/xhtml:head/xforms:model[@id = ''fr-form-model'']/xforms:instance[@id = ''fr-form-metadata'']/*/title[@xml:lang = ''en'']') detail_3
, extractValue(data.xml, '/*/xhtml:head/xforms:model[@id = ''fr-form-model'']/xforms:instance[@id = ''fr-form-metadata'']/*/description[@xml:lang = ''en'']') detail_4
from orbeon_form_data data,
(
select max(last_modified) last_modified, app, form, document_id
from orbeon_form_data
where
app = ?
and form = ?
group by app, form, document_id
) latest
where

data.last_modified = latest.last_modified
and data.app = latest.app
and data.form = latest.form
and data.document_id = latest.document_id

and data.deleted = 'N'


order by created desc
)a
) search_total

2011-04-07 12:37:20,868 INFO DatabaseContext - 回滚数据源的 JDBC 连接:jdbc/mysql。2011-04-07 12:37:20,868 错误 ProcessorService - oxf:/apps/fr/persistence/mysql/search.xpl 异常(执行 XSLT 转换)com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:FUNCTION orbeon.extractValue 不存在 在 com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) 在 com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) 在 com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631) 在 com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723) 在 com.mysql.jdbc.Connection.execSQL(Connection.java:3256) 在com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313) 在 com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:874) 在org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169) 在org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169) 在 org.orbeon.oxf.processor.sql.interpreters.QueryInterpreter.end(QueryInterpreter.java:600) 在 org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(SQLProcessor.java:540) 在 org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endElement(SQLProcessor.java:635) 在 org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(SQLProcessor.java:542) 在 org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endElement(SQLProcessor.java:635) 在 org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(SQLProcessor.java:542) 在 org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endElement(SQLProcessor.java:635) 在 org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(SQLProcessor.java:542) 在 org.orbeon.oxf.processor.sql.SQLProcessor$RootInterpreter.endElement(SQLProcessor.java:290) 在 org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:288) 在 org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:202) 在 org.orbeon.oxf.processor.sql.SQLProcessor.execute(SQLProcessor.java:251) 在 org.orbeon.oxf.processor.sql.SQLProcessor$1.readImpl(SQLProcessor.java:89) 在 org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:263) 在 org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:406) 在`

最佳答案

由于您收到的错误是FUNCTION orbeon.extractValue不存在,我怀疑这是因为MySQL的其他(远程)版本是旧版本,不支持extractValue()。 MySQL 持久层依赖于 MySQL 5.1 中引入的 XML 函数,因此您需要使用 MySQL 5.1(于 2008 年 11 月发布)或更高版本。

关于mysql - Orbeon 3.9.0 远程/网络 Mysql 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5590873/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com