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 132801 - 1st start of 6.1RC1 hangs after import settings from NB 6.0
Summary: 1st start of 6.1RC1 hangs after import settings from NB 6.0
Status: VERIFIED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords: RELNOTE
: 132290 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-14 18:25 UTC by ulfzibis
Modified: 2008-12-22 16:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
CPU 99% (20.08 KB, image/jpeg)
2008-04-14 18:26 UTC, ulfzibis
Details
log file (8.74 KB, text/plain)
2008-04-14 18:30 UTC, ulfzibis
Details
ThreadDump (17.55 KB, text/plain)
2008-04-16 14:27 UTC, ulfzibis
Details
.netbeans\6.0\config\ (237.72 KB, application/x-compressed)
2008-04-16 15:58 UTC, ulfzibis
Details
Fixed jar from trunk repository. (563.01 KB, application/octet-stream)
2008-04-18 12:37 UTC, Jiri Skrivanek
Details
Firewall dialogue (43.96 KB, image/jpeg)
2008-04-18 14:52 UTC, ulfzibis
Details
Freeze (69.95 KB, image/jpeg)
2008-04-18 14:53 UTC, ulfzibis
Details
Freeze (114.75 KB, image/jpeg)
2008-04-18 15:12 UTC, ulfzibis
Details
Freeze thread dump (14.46 KB, text/plain)
2008-04-18 15:13 UTC, ulfzibis
Details
Freeze thread dump complete (36.92 KB, text/plain)
2008-04-18 15:23 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2008-04-14 18:25:58 UTC
I waited for more than 5 minutes without anything happening. See attachments ...
Comment 1 ulfzibis 2008-04-14 18:26:57 UTC
Created attachment 60147 [details]
CPU 99%
Comment 2 ulfzibis 2008-04-14 18:30:12 UTC
Created attachment 60148 [details]
log file
Comment 3 Marian Mirilovic 2008-04-16 08:28:58 UTC
ulfzibis, could you please take a thread-dump at the time IDE freezes ? 
http://wiki.netbeans.org/GenerateThreadDump
Comment 4 Marian Mirilovic 2008-04-16 08:30:08 UTC
Similar to issue 132290
Comment 5 ulfzibis 2008-04-16 14:27:33 UTC
Created attachment 60276 [details]
ThreadDump
Comment 6 Jiri Skrivanek 2008-04-16 15:28:47 UTC
Thank you. Could you also attach zipped content of C:\Dokumente und Einstellungen\ich\.netbeans\6.0\config?
Comment 7 ulfzibis 2008-04-16 15:58:26 UTC
Created attachment 60285 [details]
.netbeans\6.0\config\
Comment 8 ulfzibis 2008-04-16 16:01:52 UTC
BTW, what is the difference between application/octet-stream and application/x-compressed.

I've attachted the zip file as application/x-compressed MIME type.
Comment 9 Jiri Skrivanek 2008-04-16 16:25:51 UTC
I am able to reproduce this issue with attached 6.0/config. It seems it somehow cycles in Folder Recognizer thread while
importing options.
Comment 10 ulfzibis 2008-04-16 16:33:46 UTC
Good news, thanx for the note.

Can you suggest a workaround next days?

What's about the MIME types question?
Comment 11 Jiri Skrivanek 2008-04-18 11:33:07 UTC
Workaround is to delete files

C:\Dokumente und Einstellungen\ich\.netbeans\6.0\config\Services\.nbattrs
C:\Dokumente und Einstellungen\ich\.netbeans\6.1rc1\config\Services\.nbattrs
Comment 12 Jiri Skrivanek 2008-04-18 11:38:30 UTC
> What's about the MIME types question?

I was able to correctly open your attachement, so it doesn't matter what mime type of two mentioned you choose. But from
the list at http://www.w3schools.com/media/media_mimeref.asp application/x-compressed is used for tgz, so
application/octet-stream is more appropriate for zip.
Comment 13 Jiri Skrivanek 2008-04-18 11:42:50 UTC
*** Issue 132290 has been marked as a duplicate of this issue. ***
Comment 14 Lukas Hasik 2008-04-18 12:23:56 UTC
Jirko, please attach the jar with fix for 6.1 to this issue. It will allow us to verify it asap. 
Ulf, we'd appreciate your help with verification of the fix as well. Thank you

I'm increasing it back to P1
Comment 15 Jiri Skrivanek 2008-04-18 12:30:18 UTC
Fixed in trunk. While coppying attributes from old settings, aattributes where value is instance of VoidValue are
ignored because these attributes were previously written by mistake in code. So it should happen only if you import some
       settings from old version.

http://hg.netbeans.org/main/rev/6835d3663e14
Comment 16 Jiri Skrivanek 2008-04-18 12:37:01 UTC
Created attachment 60407 [details]
Fixed jar from trunk repository.
Comment 17 ulfzibis 2008-04-18 12:44:35 UTC
Hi Lucas + Jirko,

I like to verify the fix.

What should I do with the fixed jar?
Comment 18 ulfzibis 2008-04-18 14:01:26 UTC
I have found it, and I have replaced it at C:\Programme\Java\NetBeans 6.1 RC1\platform8\core\

The import now works, but now I'm missing following imports:
- Favorites
- additional toolbar buttons, especially "Find" and "Replace"
- last opended files in editor window
- libraries from .netbeans\6.0\config\org-netbeans-api-project-libraries\Libraries
- tasklist filter settings
Comment 19 ulfzibis 2008-04-18 14:16:55 UTC
WTK 2.5.2 platform is referring to "C:\Programme\Java\NetBeans 6.0.1\mobility8\WTK2.5.2"
but should be ...................: "C:\Programme\Java\NetBeans 6.1 RC1\mobility8\WTK2.5.2"
Comment 20 Marian Mirilovic 2008-04-18 14:18:25 UTC
ulfzibis, thanks for testing.

I spoke today with couple of people lhasik,rmatous,jskrivanek,jtulach,anebuzelsky ... and after all discussion I made a
decision - we are not going to fix it for NB 6.1, reasons:
- too late in release cycle and just two people faced this problem
- workaround exists
- no way to verify the fix before FCS build is built
- no way to check other features for regressions/impact at the time we have for NB 6.1 

I propose to mention this issue in Release Notes for NB 6.1 and fix it in trunk. 
Comment 21 ulfzibis 2008-04-18 14:50:42 UTC
I 2 times experienced a freeze of the GUI.

It can reproduce it, if I wait some, but not too much seconds to acknowledge my firewall (Just after 'scan projects ...'
in the status bar is done).

Unfortunately http://www.adaptj.com/root/webstart/stacktrace/app/launch.jnlp is down, so I can't make a threaddump. :-(
Comment 22 ulfzibis 2008-04-18 14:52:23 UTC
Created attachment 60412 [details]
Firewall dialogue
Comment 23 ulfzibis 2008-04-18 14:53:15 UTC
Created attachment 60413 [details]
Freeze
Comment 24 ulfzibis 2008-04-18 14:55:39 UTC
In 1 case, after some minutes, the GUI came back by itself.
Comment 25 ulfzibis 2008-04-18 15:12:21 UTC
Created attachment 60415 [details]
Freeze
Comment 26 ulfzibis 2008-04-18 15:13:08 UTC
Created attachment 60416 [details]
Freeze thread dump
Comment 27 ulfzibis 2008-04-18 15:15:11 UTC
Now I have it, but it's incomplete because of too small buffer in windows command console.
Comment 28 ulfzibis 2008-04-18 15:23:16 UTC
Created attachment 60417 [details]
Freeze thread dump complete
Comment 29 ulfzibis 2008-04-18 15:28:07 UTC
Also in the last case, after some minutes, the GUI came back by itself.
Comment 30 Jiri Skrivanek 2008-04-18 18:52:15 UTC
Well, attached jar was not intended for NetBeans 6.1 but for trunk. So, please, do not use it with NB6.1 and rather
delete the following files as I already suggested.

C:\Dokumente und Einstellungen\ich\.netbeans\6.0\config\Services\.nbattrs
C:\Dokumente und Einstellungen\ich\.netbeans\6.1rc1\config\Services\.nbattrs

Regarding your missed imports. Only settings mentioned here http://wiki.netbeans.org/NB61SettingsMigration are imported.
So, none of settings you mentioned, just libraries should be imported (fixed in RC2).

Path to WTK platform has to be corrected manually.

I don't see anything wrong in attached thread dumps. If you experience freezes in upcomming RC2 (without patched jar),
please, file a new issue with thread dump, messages.log and description.
Thank you for cooperation.
Comment 31 ulfzibis 2008-04-19 23:50:25 UTC
2 questions:
- Is this jar only used for the import? ... or do I need to install RC1 newly, as I have overwritten the original jar?
- Can I just copy .netbeans\6.0\config\org-netbeans-api-project-libraries\Libraries to .netbeans\6.1rc1\

Thanx in advance,
-Ulf

Comment 32 Jiri Skrivanek 2008-04-21 11:35:12 UTC
Rather reinstall NetBeans because org-openide-filesystems.jar is not used only for the import. You can copy libraries
settings manually but if you install RC2, it should be copied during the import of settings.
Comment 33 Quality Engineering 2008-05-20 05:21:09 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #206 build
Changeset: http://hg.netbeans.org/main/rev/56ca0c600cb5
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #132801 - test VoidValue attribute correctly handled.
Comment 34 Lukas Hasik 2008-10-17 11:14:19 UTC
v