I am seeing some very strange behavior on our Ubuntu deployment: Here is our setup: Shindig and Rave on a Tomcat 6 server, OpenJDK6. We have customized Rave to have a very empty page, with only one OpenSocial gadget. We host the gadget on the same machine.
We start Tomcat, and visit the main page. We log in and we see the page. Everything works fine: We see the gadget, all the gadget's Javascript and CSS are loaded and the application is running fine. Our application calls osapi.people.getViewer() with a callback, and this works fine. Here comes the strange thing: when we reload the page, we get a Javascript error in the browser: "Uncaught TypeError: Object #<Object> has no method 'getViewer' ". In our gadget's Javascript we see that the error is thrown where we do the osapi.people.getViewer call. After some debugging, we see that the osapi.people object that is being called is actually a different version, which indeed does not have the getViewer method. The only three methods we see are: get, supportedFields and update. The only way to solve this problem is to completely restart Tomcat, and it will work for the first request again. Does anyone here know what is going on? Why does the first request work, but all following requests fail? How can the people object miss many functions? -- Roel
