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 218681 - StackOverflowError at java.lang.ClassLoader.defineClass1
Summary: StackOverflowError at java.lang.ClassLoader.defineClass1
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 214666 219093 219123 219218 220166 221903 223450 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-20 10:50 UTC by Jiri Skrivanek
Modified: 2012-12-07 08:12 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192602


Attachments
stacktrace (103.00 KB, text/plain)
2012-09-20 10:50 UTC, Jiri Skrivanek
Details
stacktrace (103.00 KB, text/plain)
2012-09-27 01:20 UTC, MackSix
Details
Project to use for reproduction. (25.13 KB, application/zip)
2012-09-27 16:36 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-09-20 10:50:46 UTC
This bug was originally marked as duplicate of bug 209260, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201209200001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
jskrivanek: Creating Tag Library descriptor in Maven web project.

MackSix: Moved JFrame.java form from one package to another.

jglick: Adding a new RESTful web service via Jersey to Maven web app.

MackSix: Moved JFrame.java form with Internationalization to a newpackage.




Stacktrace: 
java.lang.StackOverflowError
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
Comment 1 Jiri Skrivanek 2012-09-20 10:50:49 UTC
Created attachment 124638 [details]
stacktrace
Comment 2 MackSix 2012-09-27 01:20:11 UTC
Created attachment 124985 [details]
stacktrace

Moved JFrame form with Internatinoalization to another package.
Comment 3 Exceptions Reporter 2012-09-27 01:20:25 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192602
Comment 4 MackSix 2012-09-27 16:36:07 UTC
Created attachment 125018 [details]
Project to use for reproduction.

1. Open attached project in NetBeans.
2. Open NewJFrame.java in Design mode.
3. Right Click on Root Node (Form NewJFrame) in Navigator and choose Properties.
4. Choose "de_DE - German (Germany)" in Design Locale feild and close Properties dialog box.
5. All labels and buttons should show "DE" as their text now.
6. Do _not_ save.
7. Drag and drop NewJFrame.java into "newpackage" package in Projects Window.
8. When dialog box appears, wait 10 seconds and then Click Refactor Button and wait a few seconds.

This StackOverflowError should occur.

Product Version: NetBeans IDE 7.3 Beta (Build 201209232010)
Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 5 MackSix 2012-09-27 17:10:48 UTC
This is repeatable and regression. -> P1

See also http://netbeans.org/bugzilla/show_bug.cgi?id=219123
Comment 6 Marian Mirilovic 2012-09-29 09:56:45 UTC
*** Bug 219123 has been marked as a duplicate of this bug. ***
Comment 7 Marian Mirilovic 2012-09-29 09:58:13 UTC
see  Bug 219123 - it's 100% reproducible
Comment 8 Marian Mirilovic 2012-09-30 09:14:56 UTC
*** Bug 219218 has been marked as a duplicate of this bug. ***
Comment 9 Antonin Nebuzelsky 2012-09-30 09:50:05 UTC
Jarda, please evaluate ASAP.

If possible, please fix in trunk and also in release73_beta today (Sunday) before evening PRG time. Thanks.
Comment 10 Jaroslav Tulach 2012-09-30 21:19:49 UTC
Reproduced. But I don't think this is a beta stopper. The file is moved at the end, is not it?
Comment 11 Petr Jiricka 2012-09-30 21:47:47 UTC
So what's the workaround? If I save in step 6, does it avoid the problem? I agree this is not a stopper.

BTW, based on comment 5, it sounds like this works fine in 7.2?
Comment 12 MackSix 2012-09-30 22:42:01 UTC
This specific bug does not occur 7.2, Although in 7.2 and 7.3 there are some undo problems and sometimes a From file are moved and the new properties files are _not_ created in the destination package, the reference is updated in the form to point to the properties files in the source package. I do not know if this is related or not.

See http://netbeans.org/bugzilla/show_bug.cgi?id=211819
Comment 13 Jaroslav Tulach 2012-10-01 00:00:48 UTC
Fixed as ergonomics#d8cf80dfda90 - I don't think a background exception without influence on data consistency deserves backport to 7.3beta.

The bug exists for ages, it just never manifested so reliably. Similar issues include bug 193732, bug 192504 and its duplicates.
Comment 14 Marian Mirilovic 2012-10-01 08:55:43 UTC
Verified in latest Beta with the module(s) from ergonomics.
Comment 15 Antonin Nebuzelsky 2012-10-01 09:11:59 UTC
Backported to release73_beta:
http://hg.netbeans.org/releases/rev/4cd218687d5f
Comment 16 Jiri Skrivanek 2012-10-02 08:34:00 UTC
Verified using steps in comment 4 in build NetBeans IDE 7.3 Beta (Build 201210011125).
Comment 17 Jaroslav Tulach 2012-10-22 08:56:18 UTC
*** Bug 220166 has been marked as a duplicate of this bug. ***
Comment 18 Jaroslav Tulach 2012-10-30 14:09:42 UTC
*** Bug 214666 has been marked as a duplicate of this bug. ***
Comment 19 Jaroslav Tulach 2012-10-30 14:10:05 UTC
*** Bug 219093 has been marked as a duplicate of this bug. ***
Comment 20 Marian Mirilovic 2012-11-12 09:44:32 UTC
*** Bug 221903 has been marked as a duplicate of this bug. ***
Comment 21 Marian Mirilovic 2012-12-07 08:12:44 UTC
*** Bug 223450 has been marked as a duplicate of this bug. ***