我需要从现有数据库中读取 xml 实例。我正在尝试通过以下命令将千叶连接到一个宁静的网络服务:
<xf:model>
<xf:instance id="data-instance"
src="http://myhost:8081/exist/rest/test/" />
</xf:model>
但是,我在加载 xform 时收到以下错误消息:
Object model not supported
Stack Trace:
org.chiba.xml.xforms.exception.XFormsLinkException: object model not supported
at org.chiba.xml.xforms.core.Instance.fetchData(Instance.java:625)
at org.chiba.xml.xforms.core.Instance.createInitialInstance(Instance.java:580)
at org.chiba.xml.xforms.core.Instance.init(Instance.java:83)
at org.chiba.xml.xforms.core.Model.createInstanceObject(Model.java:828)
at org.chiba.xml.xforms.core.Model.modelConstruct(Model.java:794)
at org.chiba.xml.xforms.core.Model.per
查看错误日志会发现以下附加错误消息:
at java.lang.Thread.run(Thread.java:595)
2010-04-06 17:09:29,423 WARN [org.apache.commons.httpclient.cookie.CookieSpec]
: Invalid cookie state: domain not specified
2010-04-06 17:09:29,423 WARN [org.chiba.connector.http.HTTPURIResolver] : URI:
http://myhost:8081/exist/rest/test/ couldn't be
resolved
2010-04-06 17:09:29,423 WARN [org.chiba.xml.xforms.Container] : handle event e
xception: org.chiba.xml.xforms.exception.XFormsLinkException kept for rethrowal
after dispatch() has finished
2010-04-06 17:09:29,423 WARN [org.chiba.xml.xforms.Container] : XForms Error:
object model not supported
2010-04-06 17:09:29,423 ERROR [org.chiba.xml.xforms.core.Model] : [xf:model:C1]
link exception: {targetId=C1, defaultinfo=http://myhost
:8081/exist/rest/test/, targetName=model}
2010-04-06 17:09:29,423 ERROR [org.chiba.xml.xforms.Container] : dispatch: exce
ption during event flow
我可以通过 Orbeon 访问 url,所以我知道 url 是正确的。有什么想法为什么我在从千叶连接时遇到问题?