This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203588 - StackOverflowError at java.util.Hashtable.get
Summary: StackOverflowError at java.util.Hashtable.get
Status: RESOLVED DUPLICATE of bug 205658
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2011-10-12 10:06 UTC by az4
Modified: 2012-02-14 18:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180993


Attachments
stacktrace (109.39 KB, text/plain)
2011-10-12 10:06 UTC, az4
Details

Note You need to log in before you can comment on or make changes to this bug.
Description az4 2011-10-12 10:06:48 UTC
Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
az4: I selected "Open Recent File" from the File menu.

GUEST: Opening Netbeans and it was attempting to open the previously active projects.

GUEST: Just opened a Maven project.

GUEST: Just openning IDE

timgstewart: Netbeans was "Scanning Projects"




Stacktrace: 
java.lang.StackOverflowError
   at java.util.Hashtable.get(Hashtable.java:334)
   at org.codehaus.plexus.interpolation.reflection.ClassMap.findMethod(ClassMap.java:96)
   at org.codehaus.plexus.interpolation.reflection.ReflectionValueExtractor.evaluate(ReflectionValueExtractor.java:94)
   at org.codehaus.plexus.interpolation.ObjectBasedValueSource.getValue(ObjectBasedValueSource.java:64)
   at org.codehaus.plexus.interpolation.PrefixedValueSourceWrapper.getValue(PrefixedValueSourceWrapper.java:134)
   at org.codehaus.plexus.interpolation.AbstractDelegatingValueSource.getValue(AbstractDelegatingValueSource.java:44)
Comment 1 az4 2011-10-12 10:06:53 UTC
Created attachment 111926 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-10-26 01:17:34 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=180993
Comment 3 Jesse Glick 2011-11-08 20:16:12 UTC
Any clue how to reproduce this, e.g. a sample project? Guessing that a project is referring to itself via <parent> or something similar.
Comment 4 Jesse Glick 2011-11-08 20:20:51 UTC
A simple attempt to reproduce fails:

...
<parent>
  <groupId>test</groupId>
  <artifactId>test203588</artifactId>
  <version>1.0-SNAPSHOT</version>
</parent>
<artifactId>test203588</artifactId>
<packaging>pom</packaging>
...

=>

1 problem was encountered while building the effective model for test:test203588:1.0-SNAPSHOT
[FATAL] The parents form a cycle: test:test203588:1.0-SNAPSHOT -> test:test203588:1.0-SNAPSHOT @ 
 for project test:test203588:1.0-SNAPSHOT at .../test203588/pom.xml

as expected, but no stack overflow.
Comment 5 az4 2011-11-10 08:08:14 UTC
This may be related to debugging. If I quit NetBeans IDE, just after debugging, the problem happens (but not always). I am not sure about it, this is non deterministic.

Sometimes, when I hover on the "Open Recent File" option on the File menu, IDE is stuck. I work with Maven projects all the time (this is another note).

Unfortunately I couldn't find how this occurs. But if it happens again, I will note down what I did previously.

My best solution so far is deleting "C:\Users\[username]\.netbeans\7.0" folder and reconfigure NetBeans from the beginning.
Comment 6 Milos Kleint 2012-02-08 15:11:12 UTC
as far as I can tell, the issue has probably no relation to what you did before the bug occurs, but with what projects and opened and what projects they reference as dependencies or otherwise. Maybe having a maven plugin project open that is referenced by itself or something along these lines..
Comment 7 az4 2012-02-08 18:12:04 UTC
Yes, I was working on a maven project.

aaa-web-app

In it's pom.xml, there are 2 jar dependencies,

bbb-lib
ccc-lib

In bbb-lib's pom.xml, there is a dependency for ccc-lib.
Also, in ccc-lib's pom.xml, there is a dependency for bbb-lib.

There is a cross dependency for those 2 libraries.
Comment 8 Jesse Glick 2012-02-14 18:24:01 UTC
(In reply to comment #7)
> In bbb-lib's pom.xml, there is a dependency for ccc-lib.
> Also, in ccc-lib's pom.xml, there is a dependency for bbb-lib.

AFAIK this is simply illegal in Maven - you cannot have cyclic dependencies. Anyway the fix of bug #205658 would probably deal with this case.

*** This bug has been marked as a duplicate of bug 205658 ***