QuickTip: When Netbeans 6.5 Starts And Freezes Or Becomes Suddenly Slow

It mostly happens when you are playing around with configuration and modules instead of working :-) (like me now). Netbeans opens correctly all windows and freezes. Even restarting does not help. It is caused by deserialization of your last window settings, open views etc. Sometimes (e.g. after installation of a new plugin), Netbeans is no more able to restore the settings, which manifestates in stack trace similar to [./netbeans/var/log/messages.log]:

INFO [org.netbeans.core.windows.persistence]: [PersistenceManager.getTopComponentForID] Problem when deserializing TopComponent for tcID:'MultiView-PageFlow#007CXML#007C'. Reason: java.lang.NoSuchMethodException: org.netbeans.modules.web.jsf.JSFConfigMultiviewDescriptor$JSFConfigMultiviewElement.<init>()

Caused: java.lang.NoSuchMethodException: org.netbeans.modules.web.jsf.JSFConfigMultiviewDescriptor$JSFConfigMultiviewElement.<init>()
    at java.lang.Class.getConstructor0(Class.java:2706)
    at java.lang.Class.getDeclaredConstructor(Class.java:1985)
    at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1469)
Caused: java.io.IOException
    at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1525)
    at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at org.netbeans.core.multiview.MultiViewPeer.peerReadExternal(MultiViewPeer.java:442)
    at org.netbeans.core.multiview.MultiViewCloneableTopComponent.readExternal(MultiViewCloneableTopComponent.java:201)
    at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1478)
    at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.readSerial(XMLSettingsSupport.java:544)
    at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:576)
    at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:420)

The problem can be easily fixed by removing the particular file (MultiView-PageFlow#007CXML#007C.setting in my case), or if you are lazy, all [XYZ].setting files from: .netbeans\6.5\config\Windows2Local\Components. It will have similar effect to the "Reset Window" action.

It happens not very often: exactly 2 times in my case (after the installation of JavaFX and IceFaces extension).

Comments:

Hi Adam,

Would you be willing to contribute this to NetBeans Community Docs Wiki?

If so, please get in touch with James DOT Branam AT Sun DOT com

OR

you can directly contribute to our wiki..

Thanks and Regards,
NetBeans Community Docs Coordinator

Posted by Varun on January 25, 2009 at 03:17 PM CET #

Very annoying issue indeed:
http://www.netbeans.org/issues/show_bug.cgi?id=152206

Posted by Laszlo Kishalmi on January 26, 2009 at 10:01 PM CET #

I've noted that this is certainly a bug, because always that I leave opened the faces-config.xml, the next time I run netbeans, it freezes, and taking a look to the log, the exception comes up with the file you mention (MultiView-PageFlow#007CXML#007C.setting).

Posted by John Vásquez on January 29, 2009 at 05:18 PM CET #

Hi Adam,

you are great.
I had the same problem in NetBeans IDE 6.7 (Build 200906241340) as well.

And such errors are very, very, very annoying.

So Thanks a lot!

@Varun:
No change to fix the problem online via a patch!!!!

Greetz
Bernd

Posted by Bernd on September 08, 2009 at 11:35 PM CEST #

Thank's Adam,

it also fix the Problem under Netbeans 8.0.2/Win7-64bit with JDK 8.0.25.

Posted by Sebastian on March 12, 2015 at 08:01 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License