IBM Support

Opening Java Server Page in the Page Designer causes java.lang.StackOverflowError error

Troubleshooting


Problem

Attempts to open a Java Server Page (JSP) in the Page Designer (Design View or Split View) in IBM Rational Application Developer for Websphere Software (RAD) result in "Unhandled event loop exception".

Symptom

The following is the problem scenario.



1. Open a JSP in the Design or Split view of the Page Designer.


2. Take note of the error with the following stack trace output.



!ENTRY org.eclipse.ui 4 0 2011-10-27 11:43:03.422
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.StackOverflowError
at org.eclipse.draw2d.geometry.Rectangle.getIntersection(Unknown Source)
at org.eclipse.draw2d.geometry.Rectangle.intersects(Unknown Source)
at com.ibm.etools.xve.renderer.layout.box.LayoutBox.intersect(Unknown Source)
at org.eclipse.draw2d.geometry.Rectangle.getIntersection(Unknown Source)
at org.eclipse.draw2d.geometry.Rectangle.intersects(Unknown Source)
at com.ibm.etools.xve.renderer.layout.box.LayoutBox.intersect(Unknown Source)



Cause

A known cause of this error is the presence of an incompatible version of the org.eclipse.draw2d (3.7.1.v20110830-1143) Graphical Editing Framework Draw2d plug-in.

Diagnosing The Problem

To determine whether you face this problem, follow these steps.

1. Open Help > About ... > Installation details.

2. Verify the version of org.eclipse.draw2d in the Plug-in list.


The version should start with either 3.6 for Rational Application Developer v8.0.x or 3.4 for RAD v7.5.x.

If there is a higher version, then you are facing the known problem described in this technote.

A common scenario for upgrading org.eclipse.draw2d to version 3.7.1 is the following.


1. You want to install m2eclipse.


2. m2Eclipse requires any version of org.eclipse.zest.core.

3. org.eclipse.zest.core is installed in RAD only if you select the feature called: OSGi development tools in IBM Installation Manager. This feature is not selected by default.

4. If OSGi development tools was not installed, and you attempt to install m2eclipse, Eclipse will prompt you for installing org.eclipse.zest.core.

5. If you select the latest version of org.eclipse.zest.core from the GEF Update Site you will receive version 1.3.0, which is part of GEF SDK version 3.7.1.

6. For compatibility, Eclipse will require the upgrade of org.eclipse.draw2d to version 3.7.1.

Resolving The Problem

Uninstall or downgrade the features that have caused the upgrade of org.eclipse.draw2d.

You can install a compatible version of org.eclipse.zest.core by performing these steps.


1. Launch IBM Installation Manager.

2. Select Modify

3. Select the feature: OSGi development tools


See the Related URL section for more information on how to uninstall or downgrade features.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Tooling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1;7.5.2;7.5.3;7.5.4;7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;7.5.5.4;7.5.5.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1;7.5.2;7.5.3;7.5.4;7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;7.5.5.4;7.5.5.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Document Information

Modified date:
29 September 2018

UID

swg21578258