Hi all,

Since I had the same Empty xml error and I couldn't find a solution on
Internet I went into the src and I discovered that in my case, the
error was generate by an time out in the fetch request function. I
think it occurred to my because I have installed shindig in my home
computer and my home wireless connection is really slow :(

To sum up, I did the follow steps:

1. Force temporally the program to ignore the cache:
Since I didn't know how to clean the shinding cache, I forced
temporally the program to never call it:

In the file BasicRemoteContent.php line 32 I change this

"if (! $context->getIgnoreCache() && ..."

by this

"if ($context->getIgnoreCache() &&..... "


2. Increace the timeout limit

In the file BasicRemoteContentFetcher.php I changed in two places the
timeout values to a new values

a.  line 36 from this

" curl_setopt($request->handle, CURLOPT_CONNECTTIMEOUT, 2); "

to this:

" curl_setopt($request->handle, CURLOPT_CONNECTTIMEOUT, 20); "


b. line 37 from this

" curl_setopt($request->handle, CURLOPT_TIMEOUT, 2); "

to this

" curl_setopt($request->handle, CURLOPT_TIMEOUT, 20);  "



Then, I pointed the browser to the problematic widget, in my case
http://shindig/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
and it works.

After that, I revert the first change and I tuned the timeout values
in the second one to have more sense.

I am sure that there is better/elegant/smart way to resolve this
issue, so any help will be really usefull.

cheers,

juan




On Oct 26, 4:02 am, Fabiola <[EMAIL PROTECTED]> wrote:
> And how about to clear the cache? I'm not behind a proxy server, but
> I'm still getting the same error: "Empty XML document". Any
> suggestion?
>
> On 20 out, 10:24, Ann <[EMAIL PROTECTED]> wrote:> Thank you for your 
> suggestion. According to your suggestion, I have
> > cleared my cache every time and tried to set the proxy server as
> > following step.
>
> > 1. enable proxy_module and proxy_http_module
> > 2. include these two directives in httpd.conf file
>
> > ProxyPass        http://shindig/http://127.0.0.1:8081/shindig
> > ProxyPassReverse  http://shindig/http://127.0.0.1:8081/shindig
>
> > I think my setting is not correct or complete because the result of
> > testing is still show "Empty XML document". I have tried to search the
> > method to set it but there is nothing can help me. So, please could
> > you give me some methodology to set the proxy server. I would be
> > thankful if you could help me.
>
> > On Oct 17, 10:59 pm, "Chris Chabot" <[EMAIL PROTECTED]> wrote:> Hmmm empty 
> > xml document, that is a rather odd error.
>
> > > Is the computer on which shindig is running behind a proxy server? If so
> > > adding the proxy settings to your configuration might fix this problem.
>
> > > Also when your testing this remember to clear your cache every time since
> > > http fetch actions are cached.
>
> > > On Fri, Oct 17, 2008 at 4:12 PM, Ann <[EMAIL PROTECTED]> wrote:
>
> > > > I am a student from Thailand and I have to do my senior project about
> > > > the Open Social Software. Following to
> > > >http://incubator.apache.org/shindig/#php,
> > > > I have already set up the php Shindig gadget server and tested it by
> > > > pointing my browser to
> > > >http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com...
> > > > .
> > > > However, this following error was occured.
>
> > > > Error
> > > > Empty XML document
>
> > > > Debug backtrace
>
> > > > Array
> > > > (
> > > >    [0] => Array
> > > >        (
> > > >            [file] => D:\wamp\www\shindig\php\src\gadgets\servlet
> > > > \GadgetRenderingServlet.php
>
> > > >            [line] => 78
> > > >            [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] =>
> > > >                            [blacklist:protected] =>
> > > > BasicGadgetBlacklist Object
> > > >                                (
> > > >                                    [rules:private] => Array
>
> > > >                                        (
> > > >                                        )
>
> > > >                                )
>
> > > >                            [ignoreCache:protected] =>
> > > >                            [forcedJsLibs:protected] =>
>
> > > >                            [containerConfig:protected] =>
> > > >                            [container:protected] => default
> > > >                            [refreshInterval:protected] => 86400
> > > >                        )
>
> > > >                    [lastModified:private] =>
> > > >                    [contentType:private] => text/html
> > > >                    [charset:private] => UTF-8
> > > >                    [noCache:private] =>
> > > >                    [cacheTime:private] => 86400
>
> > > >                    [noHeaders] =>
> > > >                )
>
> > > >            [type] => ->
> > > >            [args] => Array
> > > >                (
> > > >                    [0] => SpecParserException Object
> > > >                        (
>
> > > >                            [message:protected] => Empty XML document
> > > >                            [string:private] =>
> > > >                            [code:protected] => 0
> > > >                            [file:protected] => D:\wamp\www\shindig\php
> > > > \src\gadgets\GadgetSpecParser.php
>
> > > >                            [line:protected] => 28
> > > >                            [trace:private] => Array
> > > >                                (
> > > >                                    [0] => Array
> > > >                                        (
>
> > > >                                            [file] => D:\wamp\www
> > > > \shindig\php\src\gadgets\GadgetServer.php
> > > >                                            [line] => 41
> > > >                                            [function] => parse
>
> > > >                                            [class] =>
> > > > GadgetSpecParser
> > > >                                            [type] => ->
> > > >                                            [args] => Array
> > > >                                                (
>
> > > >                                                    [0] =>
> > > >                                                    [1] =>
> > > > 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] =>
>
> > > > [blacklist:protected] => BasicGadgetBlacklist Object
> > > >                                                                (
>
> > > > [rules:private] => Array
>
> > > > (
> > > >                                                                        )
>
> > > >                                                                )
>
> > > > [ignoreCache:protected] =>
>
> > > > [forcedJsLibs:protected] =>
>
> > > > [containerConfig:protected] =>
>
> > > > [container:protected] => default
>
> > > > [refreshInterval:protected] => 86400
> > > >                                                        )
>
> > > >                                                )
>
> > > >                                        )
>
> > > >                                    [1] => Array
> > > >                                        (
> > > >                                            [file] => D:\wamp\www
> > > > \shindig\php\src\gadgets\GadgetServer.php
>
> > > >                                            [line] => 25
> > > >                                            [function] => specLoad
> > > >                                            [class] => GadgetServer
> > > >                                            [type] => ->
>
> > > >                                            [args] => Array
> > > >                                                (
> > > >                                                    [0] =>
> > > > 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] =>
>
> > > > [blacklist:protected] => BasicGadgetBlacklist Object
> > > >                                                                (
>
> > > > [rules:private] => Array
>
> > > > (
> > > >                                                                        )
>
> > > >                                                                )
>
> > > > [ignoreCache:protected] =>
>
> > > > [forcedJsLibs:protected] =>
>
> > > > [containerConfig:protected] =>
>
> > > > [container:protected] => default
>
> > > > [refreshInterval:protected] => 86400
>
> > > >                                                        )
>
> > > >                                                )
>
> > > >                                        )
>
> > > >                                    [2] => Array
>
> > > >                                        (
> > > >                                            [file] => D:\wamp\www
> > > > \shindig\php\src\gadgets\servlet\GadgetRenderingServlet.php
> > > >                                            [line] => 75
>
> > > >                                            [function] =>
> > > > processGadget
> > > >                                            [class] => GadgetServer
> > > >                                            [type] => ->
> > > >                                            [args] => Array
>
> > > >                                                (
> > > >                                                    [0] =>
> > > > 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] =>
>
> > > > [blacklist:protected] => BasicGadgetBlacklist Object
> > > >                                                                (
>
> > > > [rules:private] => Array
>
> > > > (
> > > >                                                                        )
>
> > > >                                                                )
>
> > > > [ignoreCache:protected] =>
>
> > > > [forcedJsLibs:protected] =>
>
> > > > [containerConfig:protected] =>
>
> > > > [container:protected] => default
>
> > > > [refreshInterval:protected] => 86400
> > > >                                                        )
>
> > > >                                                )
>
> > > >                                        )
>
> > > >                                    [3] => Array
> > > >                                        (
> > > >                                            [file] => D:\wamp\www
> > > > \shindig\php\index.php
>
> > > >                                            [line] => 110
> > > >                                            [function] => doGet
> > > >                                            [class] =>
> > > > GadgetRenderingServlet
> > > >                                            [type] => ->
>
> > > >                                            [args] => Array
> > > >                                                (
> > > >                                                )
>
> > > >                                        )
>
> > > >                                )
>
> > > >                        )
>
> > > >                )
>
> > > >        )
>
> > > >    [1] => Array
> > > >        (
>
> > > ...
>
> > > read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Implementing OpenSocial Containers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-container?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to