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

Closed
jgomer2001 opened this Issue May 28, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@jgomer2001
Contributor

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="http://www.w3.org/1999/xhtml"><head id="j_idt2">
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Gluu</title>
            <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 != window.top)
                    top.location.href = location.href;
            </script>

            <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>
            </div>
            <!-- 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>
            </div>


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

        </div>
            </div>

            <!-- 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>
</html>

At the same time, oxTrust shows:

2018-05-28 19:00:14,943 ERROR [qtp1744347043-15] [org.gluu.oxtrust.exception.UncaughtException] (UncaughtException.java:45) - Jersey error.
java.lang.NullPointerException: null
	at org.gluu.oxtrust.ws.rs.passport.PassportRestWebService.getPassportConfig(PassportRestWebService.java:50) ~[classes/:?]
	at org.gluu.oxtrust.ws.rs.passport.PassportRestWebService$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