Bug 794437 (JBEPP-1478)

Summary: NullPointerException upgrading EPP from 5.1 to 5.2
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Martin Weiler <mweiler>
Component: PortalAssignee: Martin Weiler <mweiler>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.2.0.GACC: jmorgan
Target Milestone: ---   
Target Release: 5.2.1.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1478
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
After upgrading from EPP 5.1 to 5.2 with existing data and a custom portal, a "Cannot convert null to primitive type org.chromattic.core.vt2.ValueDefinition" Null Pointer Exception was thrown at the second server startup. This fix upgrades the NewPortalConfigListener to correctly handle such data.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-13 15:28:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Weiler 2012-01-12 13:09:53 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000008zgnJ
project_key: JBEPP

Migrate data from EPP 5.1 to 5.2.0, get an exception at *second startup*

{code}
ERROR [Portal:UserPortalConfigService] (main) Could not import initial data
java.lang.NullPointerException: Cannot convert null to primitive type org.chromattic.core.vt2.ValueDefinition@1203e95
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)
{code}

Comment 1 Martin Weiler 2012-01-12 13:09:54 UTC
Link: Added: This issue Cloned from GTNPORTAL-2325


Comment 2 Martin Weiler 2012-01-12 13:14:29 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Release Notes Text: Added: After upgrading from EPP 5.1 to 5.2 with existing data and a custom portal, a java.lang.NullPointerException: Cannot convert null to primitive type org.chromattic.core.vt2.ValueDefinition error was thrown at the second server startup. This fix upgrades the NewPortalConfigListener to correctly handle such data.
NEEDINFO: Added: Nobody


Comment 3 Martin Weiler 2012-01-12 13:15:51 UTC
Release Notes Docs Status: Removed: Documented as Resolved Issue Added: Not Yet Documented
Help Desk Ticket Reference: Added: https://na7.salesforce.com/500A0000008zgnJ


Comment 4 Jared MORGAN 2012-03-27 03:57:49 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
After upgrading from EPP 5.1 to 5.2 with existing
data and a custom portal, a "Cannot convert null to primitive type org.chromattic.core.vt2.ValueDefinition" Null Pointer Exception was thrown at the second server startup. This fix upgrades the NewPortalConfigListener to correctly handle such data.