Authentication API is not working. Exception: com.tibco.ext.model.common.IORuntimeException: java.lang.NullPointerException
book
Article ID: KB0090531
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Resolution: Description: ============ Authentication API is not working in BW 5.11(TRA 5.8).
Environment: ===========
BW ALL
Symptoms: ======== In BW 5.11(TRA 5.8), following exception is thrown when domain level authentication is used. com.tibco.ext.model.common.IORuntimeException: java.lang.NullPointerException at com.tibco.extimpl.model.authorization.UserFactoryImpl.getUserByName(UserFactoryImpl.java:75) at SecurityManagement.Logic.AuthenticateUser.AuthenticateUserAuthenticateUser.matchUserPassword(AuthenticateUserAuthenticateUser.java:17) at SecurityManagement.Logic.AuthenticateUser.AuthenticateUserAuthenticateUser.invoke(AuthenticateUserAuthenticateUser.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.tibco.ae.processapi.ui.javachooser.JavaClassMethodUtility.invokeMethod(Unknown Source) at com.tibco.plugin.java.JavaActivity.eval(Unknown Source) at com.tibco.pe.plugin.Activity.eval(Unknown Source) at com.tibco.pe.core.TaskImpl.eval(Unknown Source) at com.tibco.pe.core.Job.a(Unknown Source) at com.tibco.pe.core.Job.k(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source) Caused by: com.tibco.pof.entity.EntityStoreException: java.lang.NullPointerException
The same works fine in BW 5.10( TRA 5.7).
Cause: ===== This is caused by an invalid class path order. RV libraries are loaded in multiple places.
Resolution: ========== Remove RV_HOME%/lib/tibrvnative.jar,%PSP%%RV_HOME%/lib/tibrvnativesd.jar from ibco.env.CUSTOM_EXT_PREPEND_CP in the application tra file. They are already loaded from "%RV_HOME%/lib". You could make the same change in the Bwengine.tra file to apply towards the same in future deployments.
Issue/Introduction
Authentication API is not working. Exception: com.tibco.ext.model.common.IORuntimeException: java.lang.NullPointerException