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 61388 - Stack overflow, IDE hang when trying to refactor a package
Summary: Stack overflow, IDE hang when trying to refactor a package
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
: 58601 60502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-26 03:09 UTC by Todd Fast
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace after refactoring attempt (127.87 KB, text/plain)
2005-07-26 03:11 UTC, Todd Fast
Details
Thread dump after IDE hang (10.00 KB, text/plain)
2005-07-26 03:11 UTC, Todd Fast
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Fast 2005-07-26 03:09:10 UTC
I have a package that I want to rename.  When I invoke the Refactor > Rename...
command, the refactoring dialog appears.  It goes through several phases of
gathering information, then stops abruptly with all buttons but Cancel disabled.
 I then see an exception icon in the tray.  See attached stack trace.

If I continue trying to rename the package, at some point the IDE will hang. 
See the attached thread dump for more information.
Comment 1 Todd Fast 2005-07-26 03:11:24 UTC
Created attachment 23281 [details]
Stack trace after refactoring attempt
Comment 2 Todd Fast 2005-07-26 03:11:54 UTC
Created attachment 23282 [details]
Thread dump after IDE hang
Comment 3 Todd Fast 2005-07-26 03:13:47 UTC
BTW, I can send the problematic project if it would helpful.  Just let me know.
Comment 4 Todd Fast 2005-07-26 03:15:45 UTC
I also forgot to mention that I deleted the MDR cache in the userdir and
retried, to no effect.
Comment 5 Jan Becicka 2005-07-26 06:52:07 UTC
Please attach your project and don't forget to mention which package did you try
to rename.
If the project is not public, please send it directly to me. Thanks.
Comment 6 Jan Becicka 2005-08-08 09:38:09 UTC
It is reproducible.
Comment 7 Jan Becicka 2005-08-08 10:04:59 UTC
Well, the problem is in StatusActionBase, where is this invalid statement:
CollabSession session=session=cookie.getCollabSession();
Comment 8 Milan Kubec 2005-08-08 11:07:31 UTC
What is the reason for P3 priority? From users point of view it's P2.
Comment 9 Jan Becicka 2005-08-08 11:51:18 UTC
CollabSession session=session=cookie.getCollabSession();
this statement does not make sense. This usecase is really rare.

Comment 10 Tomas Hurka 2005-08-09 09:27:58 UTC
The problem is in refactoring module.
Comment 11 Tomas Hurka 2005-08-09 12:05:30 UTC
Fixed in trunk.
Checking in MoveClassRefactoringPlugin.java;
/cvs/refactoring/src/org/netbeans/modules/refactoring/plugins/MoveClassRefactoringPlugin.java,v  
<--  MoveClassRefactoringPlugin.java
new revision: 1.30; previous revision: 1.29
done
Comment 12 Jan Becicka 2005-08-10 07:48:01 UTC
*** Issue 60502 has been marked as a duplicate of this issue. ***
Comment 13 Jan Becicka 2005-08-23 15:13:44 UTC
*** Issue 58601 has been marked as a duplicate of this issue. ***