You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Randy Ponce <ra...@gmail.com> on 2009/01/06 19:09:31 UTC

Running TODO sample from PHP

Sorry if this has been posted before, but I could not find anything through
the search of the archives.

I have been able to get shindig working through the PHP configurtion. It was
a bit of a difficulty since the setup guide is a bit out of date and I
didn't have AllowOverride configured properly, but I finally got that all
taken care of.

Now when I try to view the sample:

http://127.0.0.1/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml

I have rendering problems. In general, the top part of the gadget does not
render any of the images. However, I can add tasks and stuff. I tried this
with some other gadgets from labpixies and had the same issues. Any help
would be appreciated.

Seeing exception in our logs

Posted by Jordan Zimmerman <jo...@shop.com>.
I keep seeing this exception in our logs. Shindig appears to be running
correctly though:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at java.lang.String.substring(String.java:1905)
at org.apache.shindig.social.opensocial.service.RestfulRequestItem.
	getServiceFromPath(RestfulRequestItem.java:84)
at org.apache.shindig.social.opensocial.service.RestfulRequestItem.
	<init>(RestfulRequestItem.java:66)
at org.apache.shindig.social.opensocial.service.DataServiceServlet.
	handleSingleRequest(DataServiceServlet.java:102)
at org.apache.shindig.social.opensocial.service.DataServiceServlet.
	doPost(DataServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)

Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com 

SHOP*COMTM
All your favorite stores.
OneCart(r) convenience.
www.shop.com

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this 
message
immediately if this is an electronic communication.

Thank you.

Re: Running TODO sample from PHP

Posted by ben bonfil <bo...@gmail.com>.
Hi,

As a coder in LabPixies I can tell you that these problems result from a
difference in implementation between shindig and iGoogle.
iGoogle currently has an old (V1) version everywhere outside the US (where
V2 was launched few months ago).
Our gadgets were originally created for V1, and have many users outside the
US.
When upgrading our gadgets to support the new V2 features (canvas mode) we
had to keep the old V1 code for those users.

Now, for the technical details, V1 code resides in a <Content> tag with no
"view" attribute (as was pre-V2)
The new views use Content tags with view="home,profile" for minimized mode
and view="canvas" for canvas mode.
iGoogle knows to take the V1 part, and display it for V1 users, and hide it
from V2 users.
Shindig doesn't "know" V1, it handles these tags as "default" view, which is
configured(by default) to be "profile"

This is why the gadget is rendered twice, you see both V1 and V2 profile.
This also causes javascript errors which possibly affect image rendering.

To display the gadget properly, you can add *"view=profile" *to the url

Ben
LabPixies

On Wed, Jan 7, 2009 at 1:29 AM, Randy Ponce <ra...@gmail.com> wrote:

> Thanks, however the display didn't change. I also didn't know what to
> change proxyURL to. I set it to:
>
> http://127.0.0.1/shindig/gadgets/proxy?refresh=%refresh%&url=%url%
>
> Anyone else have any thoughts?
>
> I attached an image but I don't know if the mail list supports attachments.
>
>
>
> On Tue, Jan 6, 2009 at 2:58 PM, Chris Chabot <ch...@google.com> wrote:
>
>> Since your running shindig on an other-then-default base url you also need
>> to edit shindig/config/container.js and change the proxy url in there... I
>> suspect that's what causing it to fail for you currently.
>>
>> Oh and make sure to clear out shindig's cache after modifying that file
>> (rm
>> -rf /tmp/shindig on a *nix server)
>>
>> On Tue, Jan 6, 2009 at 7:09 PM, Randy Ponce <ra...@gmail.com>
>> wrote:
>>
>> > Sorry if this has been posted before, but I could not find anything
>> through
>> > the search of the archives.
>> >
>> > I have been able to get shindig working through the PHP configurtion. It
>> > was
>> > a bit of a difficulty since the setup guide is a bit out of date and I
>> > didn't have AllowOverride configured properly, but I finally got that
>> all
>> > taken care of.
>> >
>> > Now when I try to view the sample:
>> >
>> >
>> >
>> http://127.0.0.1/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>> >
>> > I have rendering problems. In general, the top part of the gadget does
>> not
>> > render any of the images. However, I can add tasks and stuff. I tried
>> this
>> > with some other gadgets from labpixies and had the same issues. Any help
>> > would be appreciated.
>> >
>>
>
>

Re: Running TODO sample from PHP

Posted by Randy Ponce <ra...@gmail.com>.
Thanks, however the display didn't change. I also didn't know what to change
proxyURL to. I set it to:

http://127.0.0.1/shindig/gadgets/proxy?refresh=%refresh%&url=%url%

Anyone else have any thoughts?

I attached an image but I don't know if the mail list supports attachments.


On Tue, Jan 6, 2009 at 2:58 PM, Chris Chabot <ch...@google.com> wrote:

> Since your running shindig on an other-then-default base url you also need
> to edit shindig/config/container.js and change the proxy url in there... I
> suspect that's what causing it to fail for you currently.
>
> Oh and make sure to clear out shindig's cache after modifying that file (rm
> -rf /tmp/shindig on a *nix server)
>
> On Tue, Jan 6, 2009 at 7:09 PM, Randy Ponce <ra...@gmail.com> wrote:
>
> > Sorry if this has been posted before, but I could not find anything
> through
> > the search of the archives.
> >
> > I have been able to get shindig working through the PHP configurtion. It
> > was
> > a bit of a difficulty since the setup guide is a bit out of date and I
> > didn't have AllowOverride configured properly, but I finally got that all
> > taken care of.
> >
> > Now when I try to view the sample:
> >
> >
> >
> http://127.0.0.1/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> >
> > I have rendering problems. In general, the top part of the gadget does
> not
> > render any of the images. However, I can add tasks and stuff. I tried
> this
> > with some other gadgets from labpixies and had the same issues. Any help
> > would be appreciated.
> >
>

RE: Seeing exception in our logs

Posted by Jordan Zimmerman <jo...@shop.com>.
Never mind - I found the problem. It's in our app server.

Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com 

SHOP*COMTM
All your favorite stores.
OneCart(r) convenience.
www.shop.com



-----Original Message-----
From: Jordan Zimmerman 
Sent: Wednesday, January 07, 2009 2:37 PM
To: 'shindig-dev@incubator.apache.org'
Subject: Seeing exception in our logs

I keep seeing this exception in our logs. Shindig appears to be running
correctly though:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at java.lang.String.substring(String.java:1905)
at org.apache.shindig.social.opensocial.service.RestfulRequestItem.
	getServiceFromPath(RestfulRequestItem.java:84)
at org.apache.shindig.social.opensocial.service.RestfulRequestItem.
	<init>(RestfulRequestItem.java:66)
at org.apache.shindig.social.opensocial.service.DataServiceServlet.
	handleSingleRequest(DataServiceServlet.java:102)
at org.apache.shindig.social.opensocial.service.DataServiceServlet.
	doPost(DataServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)

Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com 

SHOP*COMTM
All your favorite stores.
OneCart(r) convenience.
www.shop.com

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this 
message
immediately if this is an electronic communication.

Thank you.

Re: Running TODO sample from PHP

Posted by Chris Chabot <ch...@google.com>.
Since your running shindig on an other-then-default base url you also need
to edit shindig/config/container.js and change the proxy url in there... I
suspect that's what causing it to fail for you currently.

Oh and make sure to clear out shindig's cache after modifying that file (rm
-rf /tmp/shindig on a *nix server)

On Tue, Jan 6, 2009 at 7:09 PM, Randy Ponce <ra...@gmail.com> wrote:

> Sorry if this has been posted before, but I could not find anything through
> the search of the archives.
>
> I have been able to get shindig working through the PHP configurtion. It
> was
> a bit of a difficulty since the setup guide is a bit out of date and I
> didn't have AllowOverride configured properly, but I finally got that all
> taken care of.
>
> Now when I try to view the sample:
>
>
> http://127.0.0.1/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>
> I have rendering problems. In general, the top part of the gadget does not
> render any of the images. However, I can add tasks and stuff. I tried this
> with some other gadgets from labpixies and had the same issues. Any help
> would be appreciated.
>