求助:Empty XML document

10 views
Skip to first unread message

Ryan

unread,
Dec 9, 2009, 3:34:36 AM12/9/09
to OpenSocial 中文讨论组
http://shindig/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml

Error
Empty XML document

Debug backtrace

Array
(
[0] => Array
(
[file] => E:\noez_project\open\src\gadgets\servlet
\GadgetRenderingServlet.php
[line] => 83
[function] => outputError
[class] => GadgetRenderingServlet
[object] => GadgetRenderingServlet Object
(
[context:private] => GadgetContext Object
(
[httpFetcher:protected] =>
BasicRemoteContent Object
(
)

[locale:protected] =>
[renderingContext:protected] => GADGET
[registry:protected] =>
[userPrefs:protected] =>
[gadgetId:protected] =>
[view:protected] => profile
[moduleId:protected] => 0
[url:protected] => http://www.labpixies.com/campaigns/todo/todo.xml
[cache:protected] =>

p l

unread,
Dec 9, 2009, 4:46:01 AM12/9/09
to opensoci...@googlegroups.com
说明空xml,
大概率问题是你的网络访问时间太短了
首先你在浏览器上确保能访问到:http://www.labpixies.com/campaigns/todo/todo.xml

其次将php/config/container.php 中的curl_connection_timeout, 这个数值写大一些

然后测试

2009/12/9 Ryan <jav...@gmail.com>

Ryan

unread,
Dec 9, 2009, 8:56:40 PM12/9/09
to OpenSocial 中文讨论组
我可以直接访问那个xml,但是http://shindig/gadgets/ifr?url=http://www.labpixies.com/
campaigns/tod... 这个就是不行。

这个就可以:
http://shindig/gadgets/ifr?url=http://www.atlas-labs.net/gadgets/widget/bloons/bloons.xml

又试了不少个,出千奇百怪的错误。。。。

On Dec 9, 5:46 pm, p l <lipeng...@gmail.com> wrote:
> 说明空xml,
> 大概率问题是你的网络访问时间太短了
> 首先你在浏览器上确保能访问到:http://www.labpixies.com/campaigns/todo/todo.xml<http://shindig/gadgets/ifr?url=http://www.labpixies.com/campaigns/tod...>
>
> 其次将php/config/container.php 中的curl_connection_timeout, 这个数值写大一些
>
> 然后测试
>
> 2009/12/9 Ryan <java...@gmail.com>
>
>
>
> >http://shindig/gadgets/ifr?url=http://www.labpixies.com/campaigns/tod...

kssh0487596

unread,
Dec 9, 2009, 9:40:12 PM12/9/09
to opensocial-china
是你的shindig没有配置好

p l

unread,
Dec 10, 2009, 12:48:47 AM12/10/09
to opensoci...@googlegroups.com
如果说你有一个xml访问时出现了正确结果,说明你的shindig配置是正确的了。所以不用怀疑了。

这个时候你可以进行其他的测试了。

http://shindig/gadgets/files/samplecontainer/samplecontainer.html
这个页面是shindig本地测xml测试页面,你可以试着写xml来进行gadget的体验了。
虽然里面的数据都是模拟数据。


2009/12/10 Ryan <jav...@gmail.com>
Reply all
Reply to author
Forward
0 new messages