尝试登录应用程序时出现ResourceAccessException

时间:2016-08-11 18:43:30

标签: java spring web-services java-ee

尝试登录应用程序时,我遇到以下异常。

例外:

2016-08-11 14:06:18,698 ERROR [com.myApp.auto.servicing.UserRestClient] Unable to update user logged in information
org.springframework.web.client.ResourceAccessException: I/O error: Default SSL context init failed: null; nested exception is java.net.SocketException: Default SSL context init failed: null

UserRestClient.java

void sendUserLoggedInformation(String userKey)
{
    if ("null".equals(userKey))
    {
        return;
    }
    final String url =
        AbstractDAOFactory.getDAOFactory().getAutoServicesURLDAO()
            .getAutoServiceURL(AutoServicingURLEnum.USER_LOGON_URL.getAutoServicingURLKey());
    try
    {
         getTemplate().postForLocation(url, null, userKey);
    }
    catch (RestClientException e)
    {
        logger.error("Unable to update user logged in information", e);
    }
}

我无法弄清楚为什么在调用postForLocation(..)时在下面提到的方法中生成异常。请建议。

0 个答案:

没有答案