Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-9327

Null Pointer Exception Occurs When Following Full Stack Sample

    XMLWordPrintable

    Details

      Description

      When following the documentation for the full-stack sample:

      https://qa-backstage.forgerock.com/docs/idm/5.5/samples-guide/#chap-full-stack

      When you get to this step: https://qa-backstage.forgerock.com/docs/idm/5.5/samples-guide/#fullstack-am-register
      and attempt to register with your social provider an NPE occurs.

       

      The stack trace is as follows:

      Sep 21, 2017 10:52:11 AM org.forgerock.http.servlet.HttpFrameworkServlet lambda$service$1
      SEVERE: RuntimeException caught
      java.lang.NullPointerException
      at org.forgerock.json.resource.ResourcePath.valueOf(ResourcePath.java:147)
      at org.forgerock.json.resource.Requests$AbstractRequestImpl.setResourcePath(Requests.java:103)
      at org.forgerock.json.resource.Requests.newQueryRequest(Requests.java:1140)
      at org.forgerock.openidm.auth.modules.OAuthLoginModule.getResource(OAuthLoginModule.java:73)
      at org.forgerock.openidm.auth.modules.SocialAuthModule.lambda$validateRequest$0(SocialAuthModule.java:143)
      at org.forgerock.util.promise.PromiseImpl$1.handleStateChange(PromiseImpl.java:454)
      at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      at org.forgerock.http.apache.async.AsyncHttpClient$PromiseHttpAsyncResponseConsumer.responseCompleted(AsyncHttpClient.java:143)
      at org.apache.http.impl.nio.client.MainClientExec.responseCompleted(MainClientExec.java:383)
      at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:168)
      at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:436)
      at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:326)
      at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)
      at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
      at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
      at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:121)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
      at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
      at java.lang.Thread.run(Thread.java:745)

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krismy.alfaro Krismy Alfaro
                Reporter:
                krismy.alfaro Krismy Alfaro
                QA Assignee:
                Mark Gibson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: