Bug 852478 - NoSuchMethodError due to discrepancy between 3.2.3-PLF and 5.2.1-GA versions of EPP components.
NoSuchMethodError due to discrepancy between 3.2.3-PLF and 5.2.1-GA versions ...
Status: NEW
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal (Show other bugs)
5.2.1.GA
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Default User
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-28 12:04 EDT by Gary Hu
Modified: 2012-08-28 18:07 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Gary Hu 2012-08-28 12:04:47 EDT
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 12:06:18 EDT
Created attachment 607652 [details]
PreNodeSaveInterceptor_obsolete.txt
Comment 2 Gary Hu 2012-08-28 18:00:18 EDT
Created attachment 607703 [details]
PreNodeSaveInterceptor.groovy
Comment 3 Gary Hu 2012-08-28 18:07:55 EDT
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.