NullPointerException during server startup after migrating to EPP 5.2

Solution Unverified - Updated -

Environment

  • JBoss Enterprise Portal Platform (EPP) 5.2.0.GA

Issue

We have used the JBoss EPP 5.1 version and have now followed the steps in the 5.2 migration guide in order to take the JBoss EPP 5.2 into use.

We have also implemented our own portal extension.

When starting the server we noticed the following error. What might be causing this? And what should we do in order to get rid of this error?

ERROR [Portal:UserPortalConfigService] (main) Could not import initial data
java.lang.NullPointerException: Cannot convert null to primitive type org.chromattic.core.vt2.ValueDefinition@2f4e8fcd
     at org.chromattic.core.PersistentEntityContextState.getPropertyValue(PersistentEntityContextState.java:186)
     at org.chromattic.core.ObjectContext.getPropertyValue(ObjectContext.java:126)
     at org.chromattic.core.mapper.property.JCRPropertySingleValuedPropertyMapper.get(JCRPropertySingleValuedPropertyMapper.java:65)
     at org.chromattic.core.mapper.property.JCRPropertySingleValuedPropertyMapper.get(JCRPropertySingleValuedPropertyMapper.java:61)
     at org.chromattic.core.mapper.PropertyMapper$1.invoke(PropertyMapper.java:73)
     at org.chromattic.core.ObjectContext.invoke(ObjectContext.java:65)

Resolution

Upgrade to EPP 5.2.1.GA (once available)

If upgrading is not possible, apply the following patch for EPP 5.2.0:
https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=10923

Root Cause

The error is the result of a bug that has been discovered in the EPP 5.2.0.GA codebase:

https://issues.jboss.org/browse/JBEPP-1478

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments