1 Reply Latest reply on Feb 24, 2013 11:00 AM by gmodeldriven

    Seam3  Security - JpaIdentityStore Null pointer exception

    gmodeldriven

      Hi all,

      I'm trying to create a simple applications uses a idm console module with seam3 and picketlink (seam 3.1.1 and picketlink-idm-core-1.5.0Alpha2).

      In particulare i've recivede the following message error messagge:

       

      Caused by: java.lang.NullPointerException

                at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0]

                at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0]

                at org.jboss.seam.security.management.picketlink.JpaIdentityStore.bootstrap(JpaIdentityStore.java:292) [seam-security-3.1.0.Final.jar:3.1.0.Final]

                at org.picketlink.idm.impl.configuration.IdentityConfigurationImpl.createRealmMap(IdentityConfigurationImpl.java:192) [picketlink-idm-core-1.5.0.Alpha02.jar:1.5.0.Alpha02]

                at org.picketlink.idm.impl.configuration.IdentityConfigurationImpl.buildIdentitySessionFactory(IdentityConfigurationImpl.java:147) [picketlink-idm-core-1.5.0.Alpha02.jar:1.5.0.Alpha02]

                ... 105 more

       

      Basically, the code inside JpaIdentityStore that present the null pointer is this:

       

       

           clsName = configurationContext.getStoreConfigurationMetaData()

                      .getOptionSingleValue(OPTION_RELATIONSHIP_CLASS_NAME);

       

       

              try {

                  relationshipClass = Class.forName(clsName);

              } catch (ClassNotFoundException e) {

                  throw new IdentityException("Error bootstrapping JpaIdentityStore - invalid relationship entity class: " + clsName);

              }

       

       

      It could be a problem in configuration metadata, but I don't know how fix it.. In details, where can I find a documentations about this ? I've red here that I need of insert a idm-config.xml file but I don't know where and how.

      Any hint ?

      Thanks in advance,

      Gianfranco.