首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在java上重新连接Intuit时出错

在java上重新连接Intuit时出错
EN

Stack Overflow用户
提问于 2014-08-05 20:43:10
回答 1查看 44关注 0票数 0

我正在我的应用程序上进行intuit集成。现在我被困在重新连接的过程中。在重新连接的过程中,我遇到了以下异常:

代码语言:javascript
复制
 Message: Token Refresh Window Out of Bounds Caused By: null

实际上,在测试时,我使用的是未过期的密钥。这是我得到这个例外的原因吗?

我正在开发java,我的java代码是:

代码语言:javascript
复制
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());
        }
    }

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2014-08-05 21:19:56

是。令牌未在30天内过期。

有关响应,请参阅https://developer.intuit.com/docs/0025_quickbooksapi/0053_auth_auth/oauth_management_api

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25139131

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档