我可以将OAuthSerice对象存储在jdo中

时间:2012-10-25 13:32:42

标签: google-app-engine

嗨,请检查我的代码 2012-10-25 18:22:17.803

com.cloudcodes.ErrorHandler errorHandler:异常消息:org.scribe.oauth.OAuth10aServiceImpl

W 2012-10-25 18:22:17.804

com.cloudcodes.ErrorHandler errorHandler:类LinkedInCallBackUrl中的错误

W 2012-10-25 18:22:17.804

com.cloudcodes.ErrorHandler errorHandler:
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1197)

W 2012-10-25 18:22:17.804

com.cloudcodes.ErrorHandler errorHandler:
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:363)

此错误
        OAuthService服务=新的ServiceBuilder()               .provider(LinkedInApi.class)               .apiKey( “jfih0cg6ihc1”)                .apiSecret(“nFxDxjA4T6jgq5JD”)。scope(“r_network rw_nus”)                  .callback( “http://mygbuddy.appspot.com/DisplayConnections.jsp”)                  。建立();         令牌requestToken = service.getRequestToken();         HttpSession session = req.getSession();

    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    ObjectOutputStream oos = new ObjectOutputStream(bos);
    oos.writeObject(service);
    byte[] oauthobject = bos.toByteArray();
    String oauth=new String(oauthobject);
    String tokenvalue=requestToken.getToken();
    String tokenSecert=requestToken.getSecret();

我将使用我的bean类

将这些细节存储在jdo中

0 个答案:

没有答案