New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE upon start when no strategies are defined #31

jgomer2001 opened this Issue May 28, 2018 · 0 comments


None yet
1 participant

jgomer2001 commented May 28, 2018

Upon start and after UMA authz takes place, the following is obtained as response to URL request https://<host>/identity/restv1/passport/config (global.config.passportConfigAPI):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html>
<html xmlns=""><head id="j_idt2">
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <script type="text/javascript">
                if (top != self)
                    top.location.href = self.document.location;
                if (parent != self)
                    top.location.href = location.href;
                if (top.frames.length != 0)
                    top.location.href = self.document.location;
                if (window !=
                    top.location.href = location.href;

            <link rel="shortcut icon" href="/identity/servlet/favicon?v=" />
            <link rel="icon" href="/identity/servlet/favicon?v=" />

            <!-- Stylesheets -->
            <link href="/identity/stylesheet/../theme/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
            <link href="/identity/stylesheet/../theme/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
            <link href="/identity/stylesheet/../theme/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
            <link href="/identity/stylesheet/../theme/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css" />
            <link href="/identity/stylesheet/../theme/plugins/morris/morris.css" rel="stylesheet" type="text/css" />
            <link href="/identity/stylesheet/../theme/plugins/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
            <link href="/identity/stylesheet/../theme/dist/css/custom.css" rel="stylesheet" type="text/css" /><link type="text/css" rel="stylesheet" href="/identity/org.richfaces.resources/javax.faces.resource/org.richfaces/skinning.ecss?db=eAG7dPvZfwAIqAOT" /></head><body class="login-page">
            <div class="wrapper">
        <div class="lockscreen-wrapper" style="text-align: center;">
            <div class="lockscreen-logo" style="margin-bottom: 0px !important;margin-top: 60%;">
                <b style="font-size: 1.7em !important;  color: darkred;">Oops</b>
            <!-- User name -->
            <div class="lockscreen-name" style="text-align: center;font-size: 1.2em !important;">Something wrong happened.
                <br /><div id="errorMessage"></div>
                <br />
                <span style="font-size: 14px;">Return to the application using below button.</span>

            <a class="btn btn-block btn-primary btn-lg" href="/identity/home" style="width: 60%;">Return</a>


            <!-- Scripts -->
            <script src="/identity/stylesheet/../theme/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
            <script src="/identity/stylesheet/../theme/dist/js/app.min.js" type="text/javascript"></script>
            <script src="/identity/stylesheet/../theme/plugins/iCheck/icheck.min.js" type="text/javascript"></script></body>

At the same time, oxTrust shows:

2018-05-28 19:00:14,943 ERROR [qtp1744347043-15] [org.gluu.oxtrust.exception.UncaughtException] ( - Jersey error.
java.lang.NullPointerException: null
	at ~[classes/:?]
	at$Proxy$_$$_WeldClientProxy.getPassportConfig(Unknown Source) ~[classes/:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162]

This NPE happens when there are no strategies defined yet

@jgomer2001 jgomer2001 added the bug label May 28, 2018

@jgomer2001 jgomer2001 added this to the 3.1.4 milestone May 28, 2018

@jgomer2001 jgomer2001 self-assigned this May 28, 2018

jgomer2001 added a commit to GluuFederation/oxTrust that referenced this issue May 29, 2018

jgomer2001 added a commit to GluuFederation/oxTrust that referenced this issue May 29, 2018

@jgomer2001 jgomer2001 closed this Jun 1, 2018

yurem added a commit to GluuFederation/oxTrust that referenced this issue Aug 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment