嗨,请检查我得到的代码 2012-10-25 18:22:17.803
com.cloudcodes.ErrorHandler errorHandler:异常消息:org.scribe.oauth.OAuth10aServiceImpl
2012-10-25 18:22:17.804
com.cloudcodes.ErrorHandler errorHandler:LinkedInCallBackUrl 类中的错误
2012-10-25 18:22:17.804
com.cloudcodes.ErrorHandler errorHandler:
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1197)
2012-10-25 18:22:17.804
com.cloudcodes.ErrorHandler errorHandler:
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:363)
这个错误
OAuthService service = new ServiceBuilder() .provider(LinkedInApi.class) .apiKey("jfih0cg6ihc1") .apiSecret("nFxDxjA4T6jgq5JD").scope("r_network rw_nus") .callback("http://mygbuddy.appspot. com/DisplayConnections.jsp") .build(); 令牌 requestToken=service.getRequestToken(); HttpSession 会话=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中