By: Matthew Morgan user 24 Aug 2017 at 9:56 a.m. CDT

2 Responses
Matthew Morgan gravatar
Attempting to login for the first time after default install of CE 3.0.2 plus oxAuth RP on AWS Ubuntu 16.04 with 8GB RAM and 40GB disk and two VCPUs. When I did the install I used the public IP address of the instance, not the default. And the hostname gluu.ajboggs.com. https://gluu.ajboggs.com/oxauth/seam/resource/restv1/oxauth/authorize?scope=openid+profile+email+user_name&response_type=code+id_token&redirect_uri=https%3A%2F%2Fgluu.ajboggs.com%2Fidentity%2Fauthentication%2Fauthcode&nonce=038d2a77-4920-4615-b8ae-ab340aa91fa2&client_id=%40%213491.C7FB.6626.1D9A%210001%21CEE3.7740%210008%2193A1.F5ED Error Encountered An unexpected error has occurred at 2017-08-24 01:50:53 PM. java.lang.IllegalStateException: Counter for nested ContextualHttpServletRequest was removed before it should be! From jetty/oxauth/logs/2017_08_24.stderrout.log: 2017-08-24 14:04:02,949 ERROR [qtp242131142-19] [org.xdi.oxauth.auth.AuthenticationFilter$1] (AuthenticationFilter.java:154) - org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException javax.servlet.ServletException: org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException ... Caused by: org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException ... Caused by: java.lang.NullPointerException at org.xdi.net.InetAddressUtility.getMACAddressOrNullImpl(InetAddressUtility.java:57) ~[oxUtil-3.0.2.jar:?] at org.xdi.net.InetAddressUtility.getMACAddressOrNull(InetAddressUtility.java:45) ~[oxUtil-3.0.2.jar:?] This code from org.xdi.net.InetAddressUtility does not check to make sure that the NetworkInterface isn't null... which it is in this case. ``` InetAddress ip = InetAddress.getLocalHost(); NetworkInterface network = NetworkInterface.getByInetAddress(ip); byte[] mac = network.getHardwareAddress(); ```

By William Lowe user 24 Aug 2017 at 9:57 a.m. CDT

William Lowe gravatar
Thanks, Matt. Looks like it is a bug. Mike just assigned it to one of our engineers to resolve.

By Matthew Morgan user 24 Aug 2017 at 11:33 a.m. CDT

Matthew Morgan gravatar
The problem was caused by using the AWS public IP address when running setup.py. When I accepted the default, private IP, the issue no longer occurs. Enter IP Address [172.31.44.233] : Enter hostname [localhost] : gluu.ajboggs.com