Иногда (?) пользователь WSO2 IS не может пройти аутентификацию со следующим исключением. При повторной попытке пользователь будет аутентифицирован. Любые идеи, что может быть причиной/разрешением? Настраиваем кеширование сессии.
Использование аутентификации WSO2 Identity Server 5.0.0.SP1/SAML с расширенным аутентификатором (один шаг, несколько вариантов). Я не могу найти правильную фиксацию исходного кода для проверки (чтобы она соответствовала номеру строки в исключении)
Заранее всем спасибо Габриэль
TID: [0] [IS] [2016-02-15 13:07:22,914] ОШИБКА {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator} — исключение в Authentication Framework { org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator} java.lang.NullPointerException в org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler. handle(DefaultStepBasedSequenceHandler.java:83) в org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler.handle(DefaultAuthenticationRequestHandler.java:121) в org.wso2.carbon.identity.application. authentication.framework.handler.request.impl.DefaultRequestCoordinator.handle(DefaultRequestCoordinator.java:94) в org.wso2.carbon.identity.application.authentication.framework.servlet.CommonAuthenticationServlet.doPost(CommonAuthenticationServlet .java:54) в org.wso2.carbon.identity.application.authentication.framework.servlet.CommonAuthenticationServlet.doGet(CommonAuthenticationServlet.java:44) в javax.servlet.http.HttpServlet.service(HttpServlet.java:735) в javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
Изменить:
Это исключение возникает и в WSO2 IS 5.1.0.
см. Исходный код строка 105
StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(currentStep);
// if the current step is completed
if (stepConfig.isCompleted()) {
stepConfig.setCompleted(false);
ERROR org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator} - Exception in Authentication Framework
java.lang.NullPointerException
at org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.handle(DefaultStepBasedSequenceHandler.java:105)
at org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler.handle(DefaultAuthenticationRequestHandler.java:115)
похоже, что stepConfig «исчез» из конфигурации аутентификации. Настройка выполняется на одном узле с сохранением сеанса в базе данных.