VERIFIED SOLUTION i

Resolve NullPointerException error when importing Active Content in EngageOne Server

Product Feature: AC / Device / Resource / Template Management
 

Issue

The following error occurred when importing Active Content in EngageOne Administrator:

[2017-04-26 07:53:43,727 | INFO | com.pb.engageone.event.admin.LoginEvent] LoginEvent[name=Login,eventType=Informational,processType=login,userId=xxxxxx,externalId=null,externalSource=EngageOne,comments=null,startTimestamp=4/26/17 7:53 AM,endTimestamp=4/26/17 7:53 AM,workflowName=null,workflowEventName=null,properties=[Pair[key=server,value=xxxxxxxxx.machine.test.group],Pair[key=domain.name,value=XXX]]] 
[2017-04-26 07:54:27,514 | INFO | asi.utility.HttpServer] HttpServer, action name: FLEX_UPLOAD_REQUEST 
[2017-04-26 07:54:27,514 | INFO | asi.utility.HttpServer] HttpServer, service name: HttpFlexUploadService 
[2017-04-26 07:54:44,631 | ERROR | com.g1.ocm.api.ImportProcessor] java.lang.NullPointerException 
[2017-04-26 07:54:44,654 | ERROR | org.apache.axis2.rpc.receivers.RPCMessageReceiver] java.lang.NullPointerException 
java.lang.reflect.InvocationTargetException: null 

Cause

NullPointerException error is generated from the Java code. It occurs when EngageOne Server attempts to update the property files for all of the templates related to the Active Content being imported.

During each Active Content import there is a call to a stored procedure USP_OCM_GEN_ASSOCIATED, which returns a list of templates whose property files have to be altered. Each item on the mentioned list contains unique system identifier of each template (DOC_RESOURCE_ID), a path to the property file and a flag indicating whether the template is complete or not. 

Thereafter EngageOne tries to access each of the property files so as to make all the necessary modifications. If any of the paths is NULL (or points to a file which does not exist), a Null Pointer Exception is thrown from the Java code.



 

Resolution

UPDATED: November 28, 2017
It is recommended to restart the systems: application server, database server and EngageOne Administration.

If the system restarts does not resolve the problem, please contact Technical Support by email: software.support@pb.com.