Revision versions of assets are not properly displayed and NullPointerException is recorded in sites.log

(Doc ID 2395939.1)

Last updated on MAY 11, 2018

Applies to:

Oracle WebCenter Sites - Version 12.2.1.2.0 to 12.2.1.3.0 [Release FatWire]
Information in this document applies to any platform.

Symptoms

Revision versions of assets are not properly displayed when Flex Definitions are updated and mandatory attributes added.

 

Example replication steps:
Admin UI:
- login with fwadmin and for FirstSite2 go and navigate/expand Asset Type "Content C"
- enable revision tracking
- created a new "Content Definition" named "MikiCDsrTestPatch1" and added a few optional attributes like "FSIIImage + FSIINameAttr" and saved it
Contributor UI:
- created a new "Content" flex asset, assigned it to "fwadmin", named it "MikiTestV2" and choose to use the content definition "MikiCDsrTestPatch1", added an image for the Image attribute and saved it
- created a few versions (Edit save & check-in), some with modifications to the asset like adding a name for the Name attribute, made in total 4 versions
- checked/tested to preview all versions and all were rendered with success
Back to Admin UI:
- updated the "MikiCDsrTestPatch1" definition with a set of new mandatory attribute (Required) like "FSIIDescriptionAttr + FSIIHeadline etc", saved it
Back to Contributor UI:
- for the asset previously created tried to view the previous revisions using the "Show version" button and inspected all 4 versions
- revision versions were not properly rendered

sites.log error example:

Exception including resource /jsp/cs_deployed/OpenMarket/Gator/FlexibleAssets/Common/AssocParentDetailsDisplay.jsp[[
java.lang.NullPointerException
at com.fatwire.services.dao.AssetDaoImpl.exists(AssetDaoImpl.java:97)
at com.fatwire.services.AssetServiceImpl.exists(AssetServiceImpl.java:761)
at com.fatwire.services.AssetServiceImpl.readAsset(AssetServiceImpl.java:776)
at com.fatwire.services.AssetServiceImpl.read(AssetServiceImpl.java:794)
at jsp_servlet._jsp._cs_deployed._openmarket._gator._flexibleassets._common.__assocparentdetailsdisplay._jspService(__assocparentdetailsdisplay.java:271)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:247)

Changes

Present in 12.2.1.2.0 Patch 1, Patch 2 and Patch 3

Present in 12.2.1.3.0 Patch 1

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