Bug 852478 - NoSuchMethodError due to discrepancy between 3.2.3-PLF and 5.2.1-GA versions of EPP components.
Summary: NoSuchMethodError due to discrepancy between 3.2.3-PLF and 5.2.1-GA versions ...
Keywords:
Status: NEW
Alias: None
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.1.GA
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-28 16:04 UTC by Gary Hu
Modified: 2020-04-27 01:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
PreNodeSaveInterceptor_obsolete.txt (1.82 KB, text/plain)
2012-08-28 16:06 UTC, Gary Hu
no flags Details
PreNodeSaveInterceptor.groovy (1.40 KB, application/octet-stream)
2012-08-28 22:00 UTC, Gary Hu
no flags Details

Description Gary Hu 2012-08-28 16:04:47 UTC
We got the following errors in our process migrating from EPP 5.1.1 to 5.2.1:
2012-07-03 06:49:46,587 ERROR [portal:UIPortalApplication] (http-10.7.13.54-8443-11) Error during the processAction phase
java.lang.NoSuchMethodError: org.exoplatform.webui.exception.MessageException.getDetailMessage()Lorg/exoplatform/web/application/ApplicationMessage;
at org.exoplatform.ecm.webui.utils.JCRExceptionManager.process(JCRExceptionManager.java:102)
at org.exoplatform.ecm.webui.utils.JCRExceptionManager.process(JCRExceptionManager.java:121)
at org.exoplatform.ecm.webui.form.UIDialogForm.executeScript(UIDialogForm.java:1828)
at org.exoplatform.ecm.webui.form.UIDialogForm.executePreSaveEventInterceptor(UIDialogForm.java:1798)
at org.exoplatform.ecm.webui.form.UIDialogForm.processAction(UIDialogForm.java:1588)
...
This error comes from the customized PreNodeSaveInterceptor. I'm attaching this file for your reference too.
We've found out that the root cause of this issue is that Site Publisher(ecms project) uses a version called 3.2.3-PLF to compile the code:
<org.exoplatform.portal.version>3.2.3-PLF</org.exoplatform.portal.version>
However, EPP 5.2.1 ships the verion 5.2.1-GA, and apparently there's discrepancy between these two versions.
The MessageException.java packaged in EPP 5.2.1-GA has the definition:
public AbstractApplicationMessage getDetailMessage()
{ return message; }

The MessageException.java packaged in 3.2.3-PLF has the definition:
public ApplicationMessage getDetailMessage()
{ return message; } }

Comment 1 Gary Hu 2012-08-28 16:06:18 UTC
Created attachment 607652 [details]
PreNodeSaveInterceptor_obsolete.txt

Comment 2 Gary Hu 2012-08-28 22:00:18 UTC
Created attachment 607703 [details]
PreNodeSaveInterceptor.groovy

Comment 3 Gary Hu 2012-08-28 22:07:55 UTC
To reproduce the issue:

1) use the attached PreNodeSaveInterceptor.groovy replace the one located at gatein-wcm-extension-5.2.1-exo-2.3.6-CP01.ear/ecm-wcm-extension.war/WEB-INF/conf/dms-extension/dms/artifacts/scripts/ecm-explorer/Interceptor

2) go to the content explorer and "Add Content". For example, add an "Article" and fill up the name/title/summary/content and click the "save&close" you should see the NoSuchMethodError in the log file.


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