com.sun.enterprise.security.auth.login.common.LoginException: javax.security.auth.login.LoginException: java.lang.NullPointerException

Oracle Community | chopper-3073268 | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Trying to create certificate login module -- suspect missing jars in ext directory?

    Oracle Community | 5 years ago | chopper-3073268
    com.sun.enterprise.security.auth.login.common.LoginException: javax.security.auth.login.LoginException: java.lang.NullPointerException

    Root Cause Analysis

    1. com.sun.enterprise.security.auth.login.common.LoginException

      javax.security.auth.login.LoginException: java.lang.NullPointerException

      at org.glassfish.internal.api.Globals.get()
    2. Private APIs of Glassfish
      Globals.get
      1. org.glassfish.internal.api.Globals.get(Globals.java:73)
      1 frame
    3. Security Core Classes
      AppservCertificateLoginModule.commit
      1. com.sun.enterprise.security.web.integration.PrincipalGroupFactory._getWebSecurityManagerFactory(PrincipalGroupFactory.java:64)
      2. com.sun.enterprise.security.web.integration.PrincipalGroupFactory.getWebSecurityManagerFactory(PrincipalGroupFactory.java:72)
      3. com.sun.enterprise.security.web.integration.PrincipalGroupFactory.getGroupInstance(PrincipalGroupFactory.java:84)
      4. com.sun.appserv.security.AppservCertificateLoginModule.commit(AppservCertificateLoginModule.java:124)
      4 frames
    4. Java RT
      LoginContext.login
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      5. javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)
      6. javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
      7. javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)
      8. javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)
      9. java.security.AccessController.doPrivileged(Native Method)
      10. javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)
      11. javax.security.auth.login.LoginContext.login(LoginContext.java:595)
      11 frames
    5. Security Core Classes
      LoginContextDriver.doX500Login
      1. com.sun.enterprise.security.auth.login.LoginContextDriver.doX500Login(LoginContextDriver.java:706)
      1 frame
    6. Security
      RealmAdapter.authenticate
      1. com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:509)
      2. com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:466)
      2 frames
    7. Glassfish Core
      SSLAuthenticator.authenticate
      1. org.apache.catalina.authenticator.SSLAuthenticator.authenticate(SSLAuthenticator.java:164)
      1 frame
    8. Security
      RealmAdapter.invokeAuthenticateDelegate
      1. com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1333)
      1 frame
    9. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:623)
      3. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      4. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
      5. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
      6. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
      6 frames
    10. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      2 frames
    11. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames