Bug 793957 (JBEPP-1028)

Summary: NotSerializableException: org.gatein.common.text.EntityEncoder when create category in cluster
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Michal Vanco <mvanco>
Component: unspecifiedAssignee: hfnukal <hfnukal>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.1.CR01CC: mposolda, mvanco, mvecera
Target Milestone: ---   
Target Release: 5.1.1.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1028
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
EPP5.1.1 CR01
Last Closed: 2011-08-02 05:55:08 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:
Attachments:
Description Flags
cluster-NSE_entityencoder.txt
none
JBEPP-1028.patch none

Description Michal Vanco 2011-07-27 11:20:32 UTC
project_key: JBEPP

java.io.NotSerializableException: Type TypeModel[name=org.gatein.common.text.EntityEncoder] is not serializable

is thrown when create new category in App.registry when running portal in cluster env.

To reproduce:
 - start portal by: sh run.sh -c all -Dexo.profile=cluster (+ apply JBEPP-1022 workaround)
 - sign in
 - go to App.registry
 - click "Add category" - error is thrown in log (and portal works properly)

Comment 1 Michal Vanco 2011-07-27 11:26:49 UTC
Attachment: Added: cluster-NSE_entityencoder.txt


Comment 2 Michal Vanco 2011-07-27 11:28:21 UTC
Same issue is also present when you access page Users and groups management.

Comment 3 Michal Vanco 2011-07-27 12:48:46 UTC
Link: Added: This issue relates to JBQA-4899


Comment 4 mposolda 2011-07-29 11:56:04 UTC
I've tried to debug and found that regression is coming from commit 6841,6842,6843. EntityEncoder is now serialized as it is declared as instance variable in UIFormTextAreaInput webui component. It should be possible to avoid serializaion by declaring it only as local variable in method org.exoplatform.webui.form.UIFormTextAreaInput.processRender (something like: w.write(EntityEncoder.FULL.encode(value)); on line 81 of class UIFormTextAreaInput)

So it should be possible to fix it without need to repackage common module.

Comment 5 mposolda 2011-07-29 13:50:42 UTC
Attached patch for JBEPP-1028 . I verify in EPP 5.1.1.CR1 that NotSerializableException doesn't happen anymore in OrganizationManagement and in ApplicationRegistry with patch applied.

Comment 6 mposolda 2011-07-29 13:50:42 UTC
Attachment: Added: JBEPP-1028.patch


Comment 7 mposolda 2011-07-29 13:51:56 UTC
Patch needs to be applied in webui/core project.

Comment 8 hfnukal@redhat.com 2011-08-01 11:12:10 UTC
Link: Added: This issue relates to JBEPP-1023


Comment 9 Scott Mumford 2011-08-09 04:21:00 UTC
Release Notes Docs Status: Added: Not Required


Comment 10 hfnukal@redhat.com 2011-08-31 15:40:34 UTC
Link: Added: This issue is related to GTNPORTAL-2073