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 160537 - StackOverflowError when running tests
Summary: StackOverflowError when running tests
Status: RESOLVED DUPLICATE of bug 160630
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2009-03-18 11:57 UTC by Petr Jiricka
Modified: 2009-03-21 08:40 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace when running the tests locally (4.22 KB, text/plain)
2009-03-18 12:10 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2009-03-18 11:57:11 UTC
StackOverflowError now happens regularly when running many tests, both locally and on test builder machines. See e.g.:
http://ruhudson4qe.russia.sun.com/job/web-main-unit/13/jdk=jdk1.6,label=Lin-Ubuntu-3-stable/testReport/org.netbeans.modules.groovy.editor.api/BracketCompleterTest/testSemi1/

I am attaching the stack trace.
Comment 1 Petr Jiricka 2009-03-18 12:10:01 UTC
Created attachment 78366 [details]
Stack trace when running the tests locally
Comment 2 rmatous 2009-03-18 12:39:35 UTC
I've noticed it also when running th php tests, disappeared for me after this fix:

http://hg.netbeans.org/web-main/rev/0d6dc77d2428
Comment 3 Petr Jiricka 2009-03-18 12:49:14 UTC
Thanks! I am cc'ing also Petr H - would a similar fix also help in the Groovy case?
Comment 4 Jiri Skrivanek 2009-03-18 15:02:14 UTC
Jarda did some changes in lookup and in RecognizeInstanceFiles. He could know better what's wrong. To reproduce just run
e.g. groovy.editor\test\unit\src\org\netbeans\modules\groovy\editor\api\BracketCompleterTest.java.



Comment 5 Petr Hejl 2009-03-18 16:50:01 UTC
I can "fix" the test easily by commenting out setMimetype blindly (and I will do so tomorrow unless this will be fixed),
but I would rather see this being properly evaluated and fixed.
Comment 6 Petr Hejl 2009-03-20 08:30:54 UTC
I removed setMimeType from GroovyTestBase - web-main ca4a0d8752a3.
Comment 7 Jaroslav Tulach 2009-03-20 11:08:15 UTC
After my change to fix issue 160630 the groovy.editor/**/BrackedCompleterEditor seems to pass. All 100 tests is OK. Do 
you need me to prepare a patch or is it ok to wait for regular propagation from core-main?

*** This issue has been marked as a duplicate of 160630 ***
Comment 8 Quality Engineering 2009-03-21 08:40:56 UTC
Integrated into 'main-golden', will be available in build *200903210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ca4a0d8752a3
User: phejl@netbeans.org
Log: #160537 StackOverflowError when running tests (just removed setMimeType from GroovyTestBase)