[twitter-dev] Re: OAuth example in Java language

2009-07-15 Thread hanlho

Hello,

Bumped into this one as well.

I'm afraid no solution but the reason for the error is that the
appengine does not allow opening a socket to or access to another host
(http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox)

Twitter4J seems to be doing just that when trying to authenticate:

at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.URL.openConnection(Unknown Source)
at twitter4j.http.HttpClient.getConnection(HttpClient.java:553)

If anyone knows how to get arround this ...


Hans

On May 19, 3:31 pm, surya sravanthi.su...@gmail.com wrote:
 hi,

 The problem exists still  can you suggest me a solution to
 integrate my Twitter4j oauth in google app engine..
 I am a beginner, so it will be helpful if anyone could suggest me how
 to start

 sravanthi.

 On May 18, 6:29 pm, surya sravanthi sravanthi.su...@gmail.com wrote:

  hi,

  Thanks for your code. I have noticied that twitter.setAccessToken
  is not available in the Twitter.java in Twitter4j-2.0.3 version.
  I have tried using the instructions given in this link below:

  I think this will be helpful...
  This is working on localhost.. but I need my application which is in
  java to be deployed on google app engine. found that this is
  giving

    com.service.TwitterOAuthException:
  java.security.AccessControlException: access denied
  (java.lang.RuntimePermission modifyThreadGroup)

  exception.. can ou suggest me a method i could use to solve this 
  problem

  Thanks again..
  SravanthiOn Tue, May 5, 2009 at 11:51 AM, Yusuke yus...@mac.com wrote:

   Hi,

   I wrote an OAuth example code for Java language.
  http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

   I hope you caln add the link to the following page.
  http://apiwiki.twitter.com/OAuth-Examples

   Cheers,
   Yusuke




[twitter-dev] Re: OAuth example in Java language

2009-07-15 Thread Christopher St John

On Wed, Jul 15, 2009 at 9:44 AM, hanlhohlho...@gmail.com wrote:

 I'm afraid no solution but the reason for the error is that the
 appengine does not allow opening a socket to or access to another host
 (http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox)


Access to other hosts is allowed via a URLConnection, which is sufficient
for doing OAuth. So you can make it work. FWIW, I ended up hacking
Signpost[1], but I don't recommend that solution[2]. I'd be interested to
hear about any Java libraries that work out of the box.

-cks

[1] http://code.google.com/p/oauth-signpost/
[2] http://artofsystems.blogspot.com/2009/07/popstat-on-google-app-engine.html

-- 
Christopher St. John
http://praxisbridge.com
http://artofsystems.blogspot.com


[twitter-dev] Re: OAuth example in Java language

2009-05-19 Thread surya


hi,

The problem exists still  can you suggest me a solution to
integrate my Twitter4j oauth in google app engine..
I am a beginner, so it will be helpful if anyone could suggest me how
to start

sravanthi.


On May 18, 6:29 pm, surya sravanthi sravanthi.su...@gmail.com wrote:
 hi,

 Thanks for your code. I have noticied that twitter.setAccessToken
 is not available in the Twitter.java in Twitter4j-2.0.3 version.
 I have tried using the instructions given in this link below:

 I think this will be helpful...
 This is working on localhost.. but I need my application which is in
 java to be deployed on google app engine. found that this is
 giving

   com.service.TwitterOAuthException:
 java.security.AccessControlException: access denied
 (java.lang.RuntimePermission modifyThreadGroup)

 exception.. can ou suggest me a method i could use to solve this 
 problem

 Thanks again..
 SravanthiOn Tue, May 5, 2009 at 11:51 AM, Yusuke yus...@mac.com wrote:

  Hi,

  I wrote an OAuth example code for Java language.
 http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

  I hope you caln add the link to the following page.
 http://apiwiki.twitter.com/OAuth-Examples

  Cheers,
  Yusuke


[twitter-dev] Re: OAuth example in Java language

2009-05-18 Thread Coonay

I downloaded the 2.0.3,there is an error saying that Failed to get
timeline: Authentication credentials were missing or incorrect.

the complete log is :
Got request token.
Request token: 0JHAUfsjVqA9VizzpSS1XWx1QB8PjYoGZIUzp5ONIE
Request token secret: UNLGMtxeUyZcbAMmsNuH1BB9PecfSvK9vWaoPcqhts
Open the following URL and grant access to your account:
http://twitter.com/oauth/authorize?oauth_token=0JHAUfsjVqA9VizzpSS1XWx1QB8PjYoGZIUzp5ONIE
Hit enter when it's done.[Enter]:
Got access token.
Access token: coonay
Access token secret: xYXQlBz55aYu2AwtVldU80LnZ4Tg3y8u9LAXXTjZXuU
Failed to get timeline: Authentication credentials were missing or
incorrect.
?xml version=1.0 encoding=UTF-8?
hash
  request/statuses/update.xml/request
  errorInvalid / expired Token/error
/hash


what else need i do to make oauth work?

On May 5, 2:21 pm, Yusuke yus...@mac.com wrote:
 Hi,

 I wrote anOAuthexample code 
 forJavalanguage.http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

 I hope you can add the link to the following 
 page.http://apiwiki.twitter.com/OAuth-Examples

 Cheers,
 Yusuke


[twitter-dev] Re: OAuth example in Java language

2009-05-18 Thread surya sravanthi

hi,

Thanks for your code. I have noticied that twitter.setAccessToken
is not available in the Twitter.java in Twitter4j-2.0.3 version.
I have tried using the instructions given in this link below:

http://troytolle.blogspot.com/2009/04/oauth-and-twitter.html

I think this will be helpful...
This is working on localhost.. but I need my application which is in
java to be deployed on google app engine. found that this is
giving

  com.service.TwitterOAuthException:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)

exception.. can ou suggest me a method i could use to solve this problem

Thanks again..
Sravanthi



On Mon, May 18, 2009 at 6:59 PM, surya sravanthi
sravanthi.su...@gmail.com wrote:
 hi,

 Thanks for your code. I have noticied that twitter.setAccessToken
 is not available in the Twitter.java in Twitter4j-2.0.3 version.
 I have tried using the instructions given in this link below:

 I think this will be helpful...
 This is working on localhost.. but I need my application which is in
 java to be deployed on google app engine. found that this is
 giving

   com.service.TwitterOAuthException:
 java.security.AccessControlException: access denied
 (java.lang.RuntimePermission modifyThreadGroup)

 exception.. can ou suggest me a method i could use to solve this 
 problem

 Thanks again..
 Sravanthi

 On Tue, May 5, 2009 at 11:51 AM, Yusuke yus...@mac.com wrote:

 Hi,

 I wrote an OAuth example code for Java language.
 http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

 I hope you caln add the link to the following page.
 http://apiwiki.twitter.com/OAuth-Examples

 Cheers,
 Yusuke




[twitter-dev] Re: OAuth example in Java language

2009-05-18 Thread surya sravanthi

hi,

Thanks for your code. I have noticied that twitter.setAccessToken
is not available in the Twitter.java in Twitter4j-2.0.3 version.
I have tried using the instructions given in this link below:

I think this will be helpful...
This is working on localhost.. but I need my application which is in
java to be deployed on google app engine. found that this is
giving

  com.service.TwitterOAuthException:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)

exception.. can ou suggest me a method i could use to solve this problem

Thanks again..
Sravanthi

On Tue, May 5, 2009 at 11:51 AM, Yusuke yus...@mac.com wrote:

 Hi,

 I wrote an OAuth example code for Java language.
 http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

 I hope you caln add the link to the following page.
 http://apiwiki.twitter.com/OAuth-Examples

 Cheers,
 Yusuke



[twitter-dev] Re: OAuth example in Java language

2009-05-18 Thread Yusuke

Hi,

Version 2.0.3 has problem after May 13.
Please try the latest snapshot build.
http://groups.google.com/group/twitter4j/browse_thread/thread/351e7ffd56e144cc

Cheers,
Yusuke

On 5月18日, 午後7:09, Coonay fla...@gmail.com wrote:
 I downloaded the 2.0.3,there is an error saying that Failed to get
 timeline: Authentication credentials were missing or incorrect.

 the complete log is :
 Got request token.
 Request token: 0JHAUfsjVqA9VizzpSS1XWx1QB8PjYoGZIUzp5ONIE
 Request token secret: UNLGMtxeUyZcbAMmsNuH1BB9PecfSvK9vWaoPcqhts
 Open the following URL and grant access to your 
 account:http://twitter.com/oauth/authorize?oauth_token=0JHAUfsjVqA9VizzpSS1XW...
 Hit enter when it's done.[Enter]:
 Got access token.
 Access token: coonay
 Access token secret: xYXQlBz55aYu2AwtVldU80LnZ4Tg3y8u9LAXXTjZXuU
 Failed to get timeline: Authentication credentials were missing or
 incorrect.
 ?xml version=1.0 encoding=UTF-8?
 hash
   request/statuses/update.xml/request
   errorInvalid / expired Token/error
 /hash

 what else need i do to make oauth work?

 On May 5, 2:21 pm, Yusuke yus...@mac.com wrote:

  Hi,

  I wrote anOAuthexample code 
  forJavalanguage.http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

  I hope you can add the link to the following 
  page.http://apiwiki.twitter.com/OAuth-Examples

  Cheers,
  Yusuke


[twitter-dev] Re: OAuth example in Java language

2009-05-05 Thread Doug Williams
Added! First Java example, too. Thanks for contributing.

Thanks,
Doug
--

Doug Williams
Twitter Platform Support
http://twitter.com/dougw





On Mon, May 4, 2009 at 11:21 PM, Yusuke yus...@mac.com wrote:


 Hi,

 I wrote an OAuth example code for Java language.
 http://yusuke.homeip.net/twitter4j/en/code-examples.html#oauth

 I hope you can add the link to the following page.
 http://apiwiki.twitter.com/OAuth-Examples

 Cheers,
 Yusuke