我正在我的应用程序上进行intuit集成。现在我被困在重新连接的过程中。在重新连接的过程中,我遇到了以下异常:
Message: Token Refresh Window Out of Bounds Caused By: null实际上,在测试时,我使用的是未过期的密钥。这是我得到这个例外的原因吗?
我正在开发java,我的java代码是:
public void renewQBOAccessToken(HttpServletRequest req, HttpServletResponse resp) {
LOGGER.info("Inside renewQBOAccessToken method.");
HttpSession session = req.getSession();
Intuit intuit;
try {
intuit = IntuitLocalServiceUtil.getIntuit(PortalUtils.getCompanyId(req), PortalUtils.getOrganisationId(req));
LOGGER.info("Values before ::::::::::::::::");
IAPlatformClient client = new IAPlatformClient();
client.reConnect(PropsUtil.get(CommonConstants.INTUIT_QB_OAUTH_CONSUMER_KEY),
PropsUtil.get(CommonConstants.INTUIT_QB_OAUTH_CONSUMER_SECRET), intuit.getOauthToken(), intuit.getOauthTokenSecret());
getAccessToken(req, resp);
LOGGER.info(">>>>>>>>>>>> values after reconnect: ");
LOGGER.info("accesstoken: +" + session.getAttribute(CommonConstants.INTUIT_QB_OAUTH_ACCESS_TOKEN_KEY));
LOGGER.info("access token secret:" + session.getAttribute(CommonConstants.INTUIT_QB_OAUTH_ACCESS_TOKEN_SECRET));
} catch (PortalException | SystemException e1) {
LOGGER.error(e1.getClass().getName() + " Exception while reconnecting #renewQBOAccessToken Class: "
+ e1.getClass().getSimpleName() + " Message: " + e1.getMessage() + " Caused By: " + e1.getCause());
} catch (ConnectionException e) {
LOGGER.error(e.getClass().getName() + " ConnectionException while reconnecting #renewQBOAccessToken Class: "
+ e.getClass().getSimpleName() + " Message: " + e.getMessage() + " Caused By: " + e.getCause());
}
}谢谢。
发布于 2014-08-05 21:19:56
是。令牌未在30天内过期。
有关响应,请参阅https://developer.intuit.com/docs/0025_quickbooksapi/0053_auth_auth/oauth_management_api。
https://stackoverflow.com/questions/25139131
复制相似问题