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 44630 - App wont restart after trying to open a BeanShell file into editor
Summary: App wont restart after trying to open a BeanShell file into editor
Status: RESOLVED DUPLICATE of bug 41048
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P1 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords: REGRESSION
Depends on: 41691
Blocks:
  Show dependency tree
 
Reported: 2004-06-09 14:43 UTC by nikoladis
Modified: 2007-11-05 13:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (198.35 KB, text/plain)
2004-06-09 14:45 UTC, nikoladis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nikoladis 2004-06-09 14:43:54 UTC
I tried to open a beanshell file into editor.
That did not work a an exception appeared, my log
is attached. The word codefolding appeared in the
exception thats why I file this bug here.

Then I closed down netbeans, and tried to restart
it. But now I can no longer start netbeans.

This bug is really nuisance, please reply with any
workaround. I think it tries to open that
beanshell file each time it starts, and thats why
I get the exception at each startup.

BTW. The RUNIDE.EXE task are still running, the
GUI just doesnt appear.
Comment 1 nikoladis 2004-06-09 14:45:07 UTC
Created attachment 15592 [details]
Log file
Comment 2 Jan Lahoda 2004-06-09 15:17:01 UTC
Hi,
   regarding the workaround:
0. Your userdir (the directory with settings) is "C:\Documents and
Settings\Nikolai\.netbeans\3.6".
1. Make a backup copy your userdir.
2. Delete directory ${YOURUSERDIR}/system/Windows2Local (this
directory holds all the information about opened windows/files, their
size and position, etc.)
3. Try to start the IDE. It should start (with all windows-related
information lost, but this is usually not much important).

You could also try to find the respective file under the Windows2Local
directory, but this is not trivial.
Comment 3 nikoladis 2004-06-09 15:27:51 UTC
Jan Lahoda, that workaround does not work, I still get these 2 exceptions:

java.lang.NullPointerException
	at
org.netbeans.modules.editor.java.NbJavaFoldMaintainer.updateFolds(NbJavaFoldMaintainer.java:772)
	at
org.netbeans.modules.editor.java.NbJavaFoldMaintainer.initFolds(NbJavaFoldMaintainer.java:149)
	at
org.netbeans.editor.fold.spi.FoldMaintainer.init(FoldMaintainer.java:91)
	at
org.netbeans.editor.fold.spi.FoldHierarchySpi.rebuildRootFolds(FoldHierarchySpi.java:488)
	at
org.netbeans.editor.fold.spi.FoldHierarchySpi.rebuild(FoldHierarchySpi.java:430)
	at
org.netbeans.editor.fold.spi.FoldHierarchySpi$1.propertyChange(FoldHierarchySpi.java:531)
	at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
	at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
	at javax.swing.JComponent.firePropertyChange(JComponent.java:3819)
	at
org.openide.text.QuietEditorPane.firePropertyChange(QuietEditorPane.java:42)
	at javax.swing.JComponent.addNotify(JComponent.java:4289)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at
org.netbeans.core.windows.view.ui.tabcontrol.TabbedContainer.addNotify(TabbedContainer.java:81)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at java.awt.Container.addNotify(Container.java:2049)
	at javax.swing.JComponent.addNotify(JComponent.java:4288)
	at javax.swing.JRootPane.addNotify(JRootPane.java:676)
	at java.awt.Container.addNotify(Container.java:2049)
	at java.awt.Window.addNotify(Window.java:418)
	at java.awt.Frame.addNotify(Frame.java:482)
	at java.awt.Window.show(Window.java:459)
	at java.awt.Component.show(Component.java:1133)
	at java.awt.Component.setVisible(Component.java:1088)
	at
org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java:465)
	at
org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(DefaultView.java:420)
	at
org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:134)
	at
org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:239)
	at
org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequestor.java:230)
	at
org.netbeans.core.windows.ViewRequestor.postVisibilityRequest(ViewRequestor.java:173)
	at
org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:86)
	at org.netbeans.core.windows.Central.setVisible(Central.java:67)
	at
org.netbeans.core.windows.WindowManagerImpl.setVisible(WindowManagerImpl.java:655)
	at
org.netbeans.core.windows.WindowSystemImpl.show(WindowSystemImpl.java:56)
[catch] at org.netbeans.core.Main$8.run(Main.java:435)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)






java.lang.NullPointerException
	at
org.netbeans.modules.java.ui.NavigationView.removeNotify(NavigationView.java:181)
	at java.awt.Container.removeNotify(Container.java:2068)
	at javax.swing.JComponent.removeNotify(JComponent.java:4304)
	at java.awt.Container.removeNotify(Container.java:2068)
	at javax.swing.JComponent.removeNotify(JComponent.java:4304)
	at java.awt.Container.remove(Container.java:716)
	at java.awt.Container.remove(Container.java:769)
	at
org.netbeans.modules.editor.NbToolbarSupport.detachToolbarComponent(NbToolbarSupport.java:917)
	at
org.netbeans.modules.editor.NbToolbarSupport.refreshToolbar(NbToolbarSupport.java:519)
	at
org.netbeans.modules.editor.NbToolbarSupport.refreshPaneToolbar(NbToolbarSupport.java:475)
	at
org.netbeans.modules.editor.NbToolbarSupport.processAllToolbars(NbToolbarSupport.java:397)
	at
org.netbeans.modules.editor.NbToolbarSupport.access$200(NbToolbarSupport.java:97)
[catch] at
org.netbeans.modules.editor.NbToolbarSupport$6.run(NbToolbarSupport.java:244)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 4 pfelenda 2004-06-09 15:31:16 UTC
Could you please attach the beanshell file ? I will try to reproduce the  
problem. Thanks
Comment 5 Jan Lahoda 2004-06-09 15:44:19 UTC
Hi,
   I am sorry, I forgot that there is another "Window2Local" for each
project. So please try:
2.5 Delete
${YOURUSERDIR}/system/Projects/{your-project-name-default-is-Default}/system/Windows2Local
Comment 6 nikoladis 2004-06-10 13:26:24 UTC
I knew that Jan Lahoda.

Petr Felenda any beanshell file will do it. I am also not allowed to
send them, sorry.
Comment 7 nikoladis 2004-06-10 14:05:24 UTC
I will give you any file, to help you solve this problem just ask for
it. Except source files.

If you help me, I will advocate NetBeans to all my Eclipse using
friends...
Comment 8 Martin Roskanin 2004-06-10 14:14:52 UTC
already fixed in [maintrunk]

*** This issue has been marked as a duplicate of 41048 ***
Comment 9 nikoladis 2004-06-10 14:28:25 UTC
Okay, I tried to redo all things that lead to this problem.

After I open some beanshell files, an tab appears in the editor for
each, but there is no content. No text field, just tabs. The exception
first comes when trying to click the close cross in the tabs. Then the
exceptions appears.

Hmm, this time it does help to remove the Windows2Local folder in the
project.