Google app engine 我可以在jdo中存储OAuthSerice对象吗
嗨,请检查我的密码 2012-10-25 18:22:17.803 com.cloudcodes.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错误处理程序:Google app engine 我可以在jdo中存储OAuthSerice对象吗,google-app-engine,Google App Engine,嗨,请检查我的密码 2012-10-25 18:22:17.803 com.cloudcodes.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.ErrorH
java.io.ObjectOutputStream.WriteObject 0(ObjectOutputStream.java:1197) W 2012-10-25 18:22:17.804 com.cloudcodes.ErrorHandler错误处理程序:
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:363) 此错误
OAuthService=newServiceBuilder() .provider(LinkedInApi.class) .apiKey(“jfih0cg6ihc1”) .apiSecret(“nFxDxjA4T6jgq5JD”).scope(“r_网络rw_nus”) .callback(“http://mygbuddy.appspot.com/DisplayConnections.jsp") .build(); Token requestToken=service.getRequestToken(); HttpSession session=req.getSession()
我正在使用我的bean类将这些细节存储在jdo中,因为它不可序列化。感谢重播,但现在我想将OAuth对象从servlet发送到jsp。怎么办?在我的项目中,我使用scribe获得了linkedin OAuth,我需要jsp中的这个OAuth对象。请帮助我
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();