Bug 793957 (JBEPP-1028) - NotSerializableException: org.gatein.common.text.EntityEncoder when create category in cluster
Summary: NotSerializableException: org.gatein.common.text.EntityEncoder when create ca...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1028
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: unspecified
Version: 5.1.1.CR01
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.1.GA
Assignee: hfnukal@redhat.com
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-27 11:20 UTC by Michal Vanco
Modified: 2013-04-30 23:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
EPP5.1.1 CR01
Last Closed: 2011-08-02 05:55:08 UTC
Type: Bug


Attachments (Terms of Use)
cluster-NSE_entityencoder.txt (27.91 KB, text/plain)
2011-07-27 11:26 UTC, Michal Vanco
no flags Details
JBEPP-1028.patch (850 bytes, text/x-patch)
2011-07-29 13:50 UTC, mposolda
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 793952 0 high CLOSED Gadget source is escaped in editor 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JBEPP-1028 0 None None None Never
Red Hat Issue Tracker JBQA-4899 0 None None None Never

Internal Links: 793952

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



Note You need to log in before you can comment on or make changes to this bug.