NullPointerException from <commercecontext:getrecommendations> tag (Doc ID 1470999.1)

Last updated on JUNE 29, 2017

Applies to:

Oracle WebCenter Sites - Version 7.5.0 and later
Information in this document applies to any platform.

Symptoms

The server throws a NullPointer exception when calling the tag <commercecontext:getrecommendations> for some Recommendation assets.

The exception looks like this:

[2012-06-26 18:25:59.530][CS][ERROR] Exception in doEndTag() in tag com.openmarket.gator.jsp.commercecontext.Getrecommendations in page 'some/page' in element 'some/element' errno: 0 errdetail: 0
java.lang.NullPointerException
       at com.openmarket.gator.relationships.RelationshipManager.getSimpleRecommendations(y:1708)
       at com.openmarket.gator.relationships.RelationshipManager.getRecommendations(y:1331)
       at com.openmarket.gator.commercecontext.CommerceContext.getRecommendationsFromID(y:30)
       at com.openmarket.gator.seed.CommerceContext.worker(y:2493)
       at com.openmarket.basic.seed.BaseSeed.doEndTag(y:2998)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms