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: | Portal | Assignee: | Default User <jbpapp-maint> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | vramik | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.0.0 | CC: | 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: |
|
||||||||
Created attachment 691117 [details]
Thrown Exception
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. 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 Verified in er02 |
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.