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 230134 - AssertionError: org.netbeans.modules.project.ui.NewFileWizard@7c981ad3
Summary: AssertionError: org.netbeans.modules.project.ui.NewFileWizard@7c981ad3
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks: 230147
  Show dependency tree
 
Reported: 2013-05-22 16:23 UTC by Alexander Pepin
Modified: 2013-06-08 01:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200843


Attachments
stacktrace (6.79 KB, text/plain)
2013-05-22 16:23 UTC, Alexander Pepin
Details
stacktrace (6.79 KB, text/plain)
2013-05-23 11:41 UTC, Andrew Krasny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2013-05-22 16:23:29 UTC
This bug was originally marked as duplicate of bug 167159, 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 201305212300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Linux

User Comments:
apepin: - run IDE with a fresh userdir
- open Favorites
- select any folder in home directory then call New->Other
- choose Other/Folder cathegory
- press Next
Result: Exception occurs




Stacktrace: 
java.lang.AssertionError: org.netbeans.modules.project.ui.NewFileWizard@7c981ad3
   at org.netbeans.modules.project.ui.NewFileIterator.getPanel(NewFileIterator.java:117)
   at org.netbeans.modules.project.ui.NewFileIterator.initialize(NewFileIterator.java:163)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.initialize(TemplateWizard.java:1036)
   at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:104)
   at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:79)
   at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:209)
Comment 1 Alexander Pepin 2013-05-22 16:23:31 UTC
Created attachment 134756 [details]
stacktrace
Comment 2 Alexander Pepin 2013-05-22 16:27:30 UTC
This is a critical bug for remote development in CND.
Comment 3 Andrew Krasny 2013-05-23 11:41:15 UTC
Created attachment 134801 [details]
stacktrace

- Open Favirotes tab
- Right-click on any Folder
- New -> Other -> Folder
- Next => This exception
Comment 4 Andrew Krasny 2013-05-28 14:13:20 UTC
Milos, 

could you, please, look at this issue asap and evaluate it, as Bug#230147 (https://netbeans.org/bugzilla/show_bug.cgi?id=230147) depends on it.

Thanks, 
=Andrew
Comment 5 Milos Kleint 2013-06-06 08:54:52 UTC
http://hg.netbeans.org/core-main/rev/2de343d643c6
http://hg.netbeans.org/core-main/rev/b00d9b2eeec9

sort of fixed I hope, still there's way to many pathways through the UI. here's what I tested.

1. with no projects opened.

   a. in toolbar new file/folder
   b. right click in favourites new file/other -> file/folder 
   c. right click in favourites  new folder (preselected template by now)

2. with one project opened.
   a. new folder on project popup
   b. new file/other ->file/folder on project popup
   c. in favourites new folder on project popup
   d. in favourites new file/other -> file/folder
   e. in toolbar and main menu new file/folder

in all scenarios attempted to change the parent folder location.
Comment 6 Quality Engineering 2013-06-08 01:10:36 UTC
Integrated into 'main-golden', will be available in build *201306072301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2de343d643c6
User: Milos Kleint <mkleint@netbeans.org>
Log: partially fixes #230134, but the code is a mess to deal with