Ah no, this oauth file is from before running "ant run-sample". When I run it, it opens a browser window, I click on grant access to fabricialeme.com and then the error message appears on terminal.
Here is the oauth file after running the sample: #writing access Token #Wed Aug 11 10:32:28 BRT 2010 accessUrl=https\://www.google.com/accounts/OAuthGetAccessToken consumerSecret=RLGge*********************** serverUrl=http\://www.orkut.com/social/rpc token_secret=DNzeRk367L********** requestUrl=https\://www.google.com/accounts/OAuthGetRequestToken accessToken=1/UX72lWGE-3SJyq4************************************** saveAccessToken=true consumerKey=fabricialeme.com authorizationUrl=https\://www.google.com/accounts/OAuthAuthorizeToken scope=http\://orkut.gmodules.com/social By the way, thanks for the help! On Aug 11, 10:26 am, "Prashant (Google)" <p...@google.com> wrote: > Hi Paulo, > > Replying publicly to your private mail, so we can discuss this with > everyone... > > So is this happening when you're trying to authenticate for the first > time, when you haven't yet got back the accessToken (because I don't > see it set in the oauth properties)? Are you running the sample > directly from the command line (ant run-sample?) or using an IDE? > > And no, we won't block your consumer key without reason. > > ~Prashant > > On Aug 11, 6:19 pm, Paulo Cesar <pueloce...@gmail.com> wrote: > > > > > > > > > I don't think it's an authentication problem. Please see this part of > > the error: > > > Caused by: org.json.me.JSONException: A JSONArray text must start with > > '[' at character 0 of > > [java] at org.json.me.JSONTokener.syntaxError(JSONTokener.java: > > 448) > > [java] at org.json.me.JSONArray.<init>(JSONArray.java:106) > > [java] at org.json.me.JSONArray.<init>(JSONArray.java:145) > > [java] ... 30 more > > [java] --- Nested Exception --- > > > It seems that it can authenticate successfully, but the JSON response > > is empty. Is my application being blocked? > > > Here's my oauth file: > > > # enter the consumer key and secret here > > consumerKey=**myconsumerkey** > > consumerSecret=**mysecret** > > accessUrl=https\://www.google.com/accounts/OAuthGetAccessToken > > authorizationUrl=https\://www.google.com/accounts/OAuthAuthorizeToken > > requestUrl=https\://www.google.com/accounts/OAuthGetRequestToken > > saveAccessToken=true > > scope=http\://orkut.gmodules.com/social > > serverUrl=http\://www.orkut.com/social/rpc > > > Is anything wrong with it? > > > On Aug 10, 6:41 pm, Robson Dantas <biu.dan...@gmail.com> wrote: > > > > Paulo, > > > > Open a bug on the library website. I'm getting several authentication > > > problems, and it was reported before. > > > > Basically, there are two different problems: > > > > 1- When you try to authenticate and orkut returns an invalid base string > > > authentication. It happens on my lib, googleoauth playground and also on > > > java lib; > > > > 2- When "authenticated", orkut refuses the access token, returning an > > > invalid token; > > > > When was testing java lib, these errors were responsible for raising > > > exceptions. > > > > Regards > > > > Robson Dantas > > > > 2010/8/10 Paulo Cesar <pueloce...@gmail.com> > > > > > Anybody knows when the problem described bellow will be fixed? > > > > > "When i ran the project, after specifying my Consumer key and Secret, > > > > the Request was made normally, however, the response had problems. The > > > > program ended with an exception as follows, (by the way I did do the > > > > authentication, i.e, logged in to my Orkut account to grant access) > > > > > Request:[{"params":{"groupId":"@self","userId":"@me"},"id":"0- > > > > p.g","method":"people.get"},{"params": > > > > {"groupId":"@friends","userId":"@me","count":20,"startIndex": > > > > 0},"id":"1-frnds.g","method":"people.get"}] > > > > Exception in thread "main" java.lang.RuntimeException: Unexpected > > > > exception while setting response > > > > at > > > > > com.google.orkut.client.api.BatchTransaction.setResponse(BatchTransaction.j > > > > ava: > > > > 169) > > > > at > > > > com.google.orkut.client.sample.Transport.run(Transport.java:104) > > > > at > > > > com.google.orkut.client.sample.SampleApp.run(SampleApp.java:57) > > > > at > > > > com.google.orkut.client.sample.SampleApp.main(SampleApp.java:43) > > > > Caused by: org.json.me.JSONException: A JSONArray text must start with > > > > '[' at character 0 of > > > > at org.json.me.JSONTokener.syntaxError(JSONTokener.java:448) > > > > at org.json.me.JSONArray.<init>(JSONArray.java:106) > > > > at org.json.me.JSONArray.<init>(JSONArray.java:145) > > > > at > > > > > com.google.orkut.client.api.BatchTransaction.setResponse(BatchTransaction.j > > > > ava: > > > > 159) > > > > ... 3 more" > > > > > I can't run even the simplest samples, can anyone help me on this? > > > > > On Jun 29, 7:00 am, chaitu <contactcha...@gmail.com> wrote: > > > > > Thanks Prashanth for the reply. > > > > > > We hope the activities reply functionality is implemented in near > > > > > future. > > > > > > As i explored the present API i found that few activity types > > > > > implementation is missing like > > > > > COMMUNITY_JOIN and others. they are just been marked as > > > > > GenericActivity without > > > > > returning even a text for that except ownerprofile. > > > > > Is it true or am i missing anything here for specific activity types. > > > > > > Thanks, > > > > > Chaitu > > > > > > On Jun 16, 4:03 pm, "Prashant (Google)" <p...@google.com> wrote: > > > > > > > Hi, > > > > > > > This is definitely the right place to talk about it! > > > > > > > But no, can't comment on activities at the moment. > > > > > > > ~Prashant > > > > > > > On Jun 10, 4:26 pm, chaitu <contactcha...@gmail.com> wrote: > > > > > > > > Hi Prashant, > > > > > > > > Thanks for the library which is helping us in good way. > > > > > > > It may be not the correct place but i just need to know does the > > > > > > > library code include > > > > > > > commenting for an activity. > > > > > > > > Thanks, > > > > > > > chaitu > > > > > > > > On May 26, 2:35 am, "Prashant (Google)" <p...@google.com> wrote: > > > > > > > > > Hello everyone, > > > > > > > > > At long last, we announced the client library we've all been > > > > waiting > > > > > > > > for:http://bit.ly/orkutlib. > > > > > > > > > The blog post should be a good introduction to its > > > > > > > > capabilities. We > > > > > > > > expect it'll open up new possibilities for all developers > > > > > > > > wanting > > > > to > > > > > > > > extend orkut beyond its web interface. Let us know how you like > > > > > > > > it! > > > > > > > > > Cheers, > > > > > > > > Prashant > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "orkut Developer Forum" group. > > > > To post to this group, send email to opensocial-or...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2Bunsubscrib > > > > e...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/opensocial-orkut?hl=en. -- You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group. To post to this group, send email to opensocial-or...@googlegroups.com. To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.