将 Chiba xForm 连接到宁静的 Web 服务(存在数据库)
我需要从现有数据库读取 xml 实例。 我正在尝试通过以下命令将 chiba 连接到宁静的 Web 服务:
<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所以我知道网址是正确的。有什么想法为什么我在千叶连接时遇到问题吗?
I need to read an xml instance from an exist db.
I am attempting to connect chiba to a restful web service via the following command:
<xf:model>
<xf:instance id="data-instance"
src="http://myhost:8081/exist/rest/test/" />
</xf:model>
However, I get the following error message when I load the 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
Reviewing the error log reveals the following additional error messages:
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
I am able to access the url via Orbeon so I know the url is correct. Any thoughts why I'm having issues connecting from chiba?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎是一个网络问题。 Chiba 和 Orbeon 在同一台机器上运行吗?你能从 Chiba 机器 ping myhost 吗?您可以在浏览器中打开相同的 URL 吗?也许存在身份验证问题(从您之前的帖子来看)。 URL 似乎没有引用 .xml 文件 - 当您在浏览器中打开它时它是否返回 XML?
This seems like a networking issue. Is Chiba running in the same machine as Orbeon? Can you ping myhost from Chiba machine? Can you open the same URL in browser? Maybe there is an authentication issue (judging from your previous post). The URL doesn't seem to refer to .xml file - does it return XML when you open it in browser?