JON LDAP Authentication fails with NullPointerException when user has not been assigned to a role

Solution Verified - Updated -

Issue

  • authentication fails with the following error:
    javax.ejb.EJBException: java.lang.NullPointerException
         org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
         org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
    .. ..
    root cause
    
    java.lang.NullPointerException
         org.rhq.enterprise.server.auth.SubjectManagerBean.loadUserConfiguration(SubjectManagerBean.java:92)
         sun.reflect.GeneratedMethodAccessor1485.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:597)
    

Environment

  • JBoss Operations Network (JON) 2.2
  • Use LDAP Authentication is enabled in JON Server (Administration -> System Configuration -> Settings)
  • User attempting to authenticate via LDAP has not yet been assigned to a role

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content