Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 906487

Summary: Cannot add portlet while creating new page with IBM 1.7 JDK
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Filip Kiss <fkiss>
Component: PortalAssignee: Default User <jbpapp-maint>
Status: CLOSED CURRENTRELEASE QA Contact: vramik
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bdawidow, dpospisi, epp-bugs, vramik
Target Milestone: ER02   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-07 14:24:26 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:
Attachments:
Description Flags
Error message screenshot
none
Thrown Exception none

Description Filip Kiss 2013-01-31 17:25:21 UTC
Created attachment 691116 [details]
Error message screenshot

Description of problem:
Portlet cannot be added to the page while Page Creation Wizard.

Version-Release number of selected component (if applicable):
ER05

How reproducible:
irregularly, e.g. sometimes it works with Empty Layout, but not with Two Rows Layout.

Steps to Reproduce:
1. Sign in as root.
2. Mouse over site editor, create new page.
3. Fill in mandatory fields, in step 3 try to add any portlet to the page.
  
Actual results:
Message dialog: "Unknown Error" is shown. NullPointerException is thrown.

Additional info:
This is happening only with RHEL6_x86_64, RHEL6_x86, RHEL5_x86 with IBM 1.7 JDK.

Comment 1 Filip Kiss 2013-01-31 17:26:23 UTC
Created attachment 691117 [details]
Thrown Exception

Comment 2 vramik 2013-06-10 11:11:27 UTC
This issue is presented also in JPP6.1.ER01.


Additional info: 
Except RHEL6_x86_64, RHEL6_x86, RHEL5_x86 it's happening on RHEL5_x86_64 too.

Comment 3 Lucas Ponce 2013-06-13 11:14:32 UTC
The WebUI layer uses hashCode() function for some UI components IDs.
The IBM JDK returns some negative hashCodes() for components where OpenJDK or SunJDK returns positive.
The drag and drop javascript module filters the "-" symbol for these elements, so when you have a negative ID the NPE is thrown.

I've fixed this one, forcing to have positive IDs for UI components.

I've performed several tests both with OpenJDK and IBM JDK and I can't reproduce the error with this patch.

PR sent attached in JIRA.

Lucas

Comment 5 vramik 2013-07-07 21:40:29 UTC
Verified in er02