Thursday, May 30, 2013

Fix: Endeca Baseline fails with NullPointerException in pushAuthoringContentToDgraphById

Symptom 1: When running a Baseline Index in Endeca 3.1.1, the MDEX server(s) do appear to be updated, but several errors appear in the console output, the first of which is:

[05.29.13 14:06:10] INFO: Pushing authoring content to dgraph: AuthoringDgraph
[05.29.13 14:06:10] SEVERE: null
Occurred while executing line 5 of valid BeanShell script:
[[

2|
3| compId = invokingObject.getElementId();
4| log.info("Publishing Workbench 'authoring' configuration to MDEX '" + compId + "'");
5| IFCR.pushAuthoringContentToDgraphById(compId);
6|
7|
]]

[05.29.13 14:06:10] WARNING: Caught an exception while executing post-startup script for server component 'AuthoringDgraph'.

Caused by com.endeca.soleng.eac.toolkit.exception.AppControlException
com.endeca.soleng.eac.toolkit.script.Script runBeanShellScript - Error executing valid BeanShell script.
Caused by java.lang.NullPointerException
com.endeca.soleng.eac.toolkit.utility.IFCRUtility extractIfcrErrorMessage – null

Symptom 2: Running the control/promote_content.sh script fails with a similar error.

Symptom 3: Trying to add a new content item in the Endeca Workbench Rule Manager fails with the error “Last attempt to publish to the MDEX Engine failed”.  If the mouse cursor is hovered over the error message, a tooltip appears with an additional error message: “com.endeca.ifcr.publish.impl.PublishException: Failed to publish to the following dgraphs: [dgraph url]”.

Solution: This started happening for my new Endeca application after I changed the password for the Endeca Workbench “admin” user to something other than the default value of “admin”. 

Setting the correct (updated) password for the admin user in the application’s config/script/WorkbenchConfig.xml file resolved the issue.

Credit to Dan O. from Thanx Media for getting this issue tracked down.  Thanks Dan!

3 comments:

  1. Hi I am getting the following error in my application.
    [09.22.15 23:38:02] INFO: Publishing Workbench 'authoring' configuration to MDEX 'AuthoringDgraphA2'
    [09.22.15 23:38:02] SEVERE: 'LiveDgraphCluster': an error occurred with the CopyUtlity: java.lang.NullPointerException
    [09.22.15 23:38:02] INFO: Writing /data/endeca/PlatformServices/11.1.0/tools/server/webapps/endeca_jspref/DGRAPH_10.140.3.152_15003.running for load balancer

    Can you please help me with this.

    ReplyDelete
  2. This is a switching behavior for AuthoringDgraphA1 as well

    ReplyDelete
  3. Hi Jonathan

    Today I got the same error as you.
    Could you share your config on file WorkbenchConfig.xml.

    Many thanks.

    ReplyDelete

Non-spammers: Thanks for visiting! Please go ahead and leave a comment; I read them all!

Attention SPAMMERS: I review all comments before they get posted, and I REPORT 100% of spam comments to Google as spam! Why not avoid getting your account banned as quickly -- and save us both a little time -- by skipping this comment form and moving on to the next one on your list? Thanks, and I hope you have a great day!