Friday, July 17, 2009

tcReconciliationOperationsBean.processReconDataField

When you create a reconciliation event in OIM you may see below error

ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public abstract long com.thortech.xl.ejb.interfaces.tcReconciliationOperations.createReconciliationEvent(java.lang.String,java.util.Map,boolean) throws Thor.API.Exceptions.tcAPIException,Thor.API.Exceptions.tcObjectNotFoundException,java.rmi.RemoteException:
java.lang.NullPointerException
at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.processReconDataField(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.createReconciliationEvent(Unknown Source) at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.createReconciliationEvent


Solution
---------------
When you see this error it will not even create a recon Event , so it is really hard to find what is happening.

Stupid OIM logs does not even show you for which field it is throwing an error.

So Basically Find all the fileds that are part of the reconciliation, Then check what values are being passed to these fileds

IF there is any null values being passed pass an empty String, or do not even add this field as part of reconciliation Map.