Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 206621 - Stack overflow Exception
Summary: Stack overflow Exception
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Patrick Schonbach CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-17 09:44 EDT by Manfred Klug CLA
Modified: 2013-02-21 08:12 EST (History)
2 users (show)

See Also:


Attachments
Proposed Patch (2.05 KB, patch)
2007-10-18 12:25 EDT, Manfred Klug CLA
no flags Details | Diff
Proposed Patch Part 2 (3.19 KB, patch)
2007-10-23 02:41 EDT, Manfred Klug CLA
no flags Details | Diff
Patch (2.46 KB, patch)
2008-01-23 16:38 EST, Karsten Thoms CLA
sven.efftinge: iplog+
Details | Diff
Patch (3.93 KB, patch)
2008-01-25 04:13 EST, Karsten Thoms CLA
sven.efftinge: iplog+
Details | Diff
Updated patch for OawProject.java (1.68 KB, patch)
2008-02-17 02:59 EST, Manfred Klug CLA
sven.efftinge: iplog+
Details | Diff
mylyn/context/zip (1.10 KB, application/octet-stream)
2008-02-17 09:02 EST, Patrick Schonbach CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manfred Klug CLA 2007-10-17 09:44:03 EDT
Version: 4.2.0.200710052231NGT

The stacktrace is all I have. I'm not shure how to trigger the problem.

java.lang.StackOverflowError
	at java.util.HashMap.get(HashMap.java:343)
	at java.util.Collections$SynchronizedMap.get(Collections.java:1979)
	at org.eclipse.core.internal.resources.WorkspaceRoot.getProject
           (WorkspaceRoot.java:161)
	at org.eclipse.core.internal.resources.Workspace.newResource
           (Workspace.java:1635)
	at org.eclipse.core.internal.resources.Container.getChildren
           (Container.java:103)
	at org.eclipse.core.internal.resources.WorkspaceRoot.getProjects
           (WorkspaceRoot.java:188)
	at org.eclipse.core.internal.resources.Project.getReferencingProjects
           (Project.java:425)
	at org.openarchitectureware.EmfToolsPlugin.collectReferencingOawProjects
           (EmfToolsPlugin.java:251)
	at org.openarchitectureware.EmfToolsPlugin.collectReferencingOawProjects
           (EmfToolsPlugin.java:255)
1015 times the previous line
Comment 1 Karsten Thoms CLA 2007-10-18 10:55:54 EDT
You will have a circular dependency in your projects.
Comment 2 Manfred Klug CLA 2007-10-18 12:25:30 EDT
Created attachment 80679 [details]
Proposed Patch
Comment 3 Karsten Thoms CLA 2007-10-18 13:56:23 EDT
Patch is OK. Thanks!
Comment 4 Manfred Klug CLA 2007-10-23 02:40:49 EDT
I have found the next two errors by accident. This time, you need a circular dependency between OAW projects to reproduce the problem.
Comment 5 Manfred Klug CLA 2007-10-23 02:41:38 EDT
Created attachment 80924 [details]
Proposed Patch Part 2
Comment 6 Karsten Thoms CLA 2008-01-23 16:37:40 EST
Applied the patch for branch 4.2.

Now moving to M2T for HEAD Fix.
Comment 7 Karsten Thoms CLA 2008-01-23 16:38:53 EST
Created attachment 87705 [details]
Patch

Patch for HEAD
Comment 8 Patrick Schonbach CLA 2008-01-23 17:11:50 EST
Pstch committed for Karsten Thoms
Comment 9 Manfred Klug CLA 2008-01-25 01:26:49 EST
The second patch is still not applied.
Comment 10 Karsten Thoms CLA 2008-01-25 04:12:02 EST
Oh, sorry. Fixed in Branch b_v42. Now creating a patch for M2T Head.
Comment 11 Karsten Thoms CLA 2008-01-25 04:13:06 EST
Created attachment 87842 [details]
Patch

Patch for M2T Xpand HEAD
Comment 12 Patrick Schonbach CLA 2008-01-25 12:09:29 EST
Another patch committed for Karsten Thoms
Comment 13 Nick Boldt CLA 2008-01-28 16:57:47 EST
Move to verified as per bug 206558.
Comment 14 Manfred Klug CLA 2008-02-16 05:26:54 EST
I don't like to say it, but the patch for OawProject.java is still missing in the 4.2 branch.
Comment 15 Patrick Schonbach CLA 2008-02-16 17:44:00 EST
Karsten, could you please look at it? Since loadOawResource() has changed a lot in the meantime, I am not sure, how to apply Manfred's fix that is still missing there.
Comment 16 Manfred Klug CLA 2008-02-17 02:59:51 EST
Created attachment 89929 [details]
Updated patch for OawProject.java

Patch for OawProject.java against the current version.
Comment 17 Patrick Schonbach CLA 2008-02-17 09:02:17 EST
Patch applied to B_v42
Comment 18 Patrick Schonbach CLA 2008-02-17 09:02:21 EST
Created attachment 89932 [details]
mylyn/context/zip
Comment 19 Karsten Thoms CLA 2013-02-21 08:12:05 EST
Bug resolved before Xpand 1.2 release date => Closing