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 80017 - IDE freezes when adding JAR file library to a project
Summary: IDE freezes when adding JAR file library to a project
Status: RESOLVED DUPLICATE of bug 72437
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-11 19:13 UTC by jgjp
Modified: 2006-07-24 10:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jgjp 2006-07-11 19:13:12 UTC
1. Open an existing NetBeans 5.0 project
2. Right click on the project in the Projects window on the LHS
   and select the Properties menu item
3. The Project Properties dialog box comes up
4. Select the Compile option in the LHS tree view
5. Select the CompileTime tab on the RHS
6. Select the Add JARfile/folder button on the RHS
7. IDE freezes.

The Windows Task Manager shows that "java.exe" is using between 90-100% of the 
system. The overall PC response is very sluggish after this.
The IDe freeze persists for over 15 minutes, and I never waited long enough
to see if unfreezes later. 
No other applications are running on the PC.

I repeated these steps more than 10 times, with same results.

Now how do I ever get to add an external JAR file library to my project?
Comment 1 jgjp 2006-07-11 19:55:56 UTC
Sorry, typo in the steps reported earlier.
The changed descriptions are:
4. Select the Libraries option in the LHS tree view
5. Select the Compile tab on the RHS

-jgjp
Comment 2 _ rkubacki 2006-07-12 16:22:44 UTC
Can you attach IDE log file and some thread dumps?
Comment 3 Jaromir Uhrik 2006-07-13 08:27:07 UTC
I am not able to reproduce issue in NetBeans 5.0 fcs nor in current builds of
2006/07/11. Could you please provide more information. Does this issue appear
only with specific project and .jar or is it reproducible at any project (what
.jar file are you adding as a library)?
Thanks,
.JARa
Comment 4 jgjp 2006-07-13 18:44:05 UTC
More information after further testing:

Here are the prerequisites for the problem to happen:

1. Install Netbeans 5.0 as Administrator [on a WindowsXP machine].
2. Login as a user without administrative priveleges.
3. Launch Netbeans.
4. Follow the steps outlined above. 
   Result is the IDE freeze.

Actually, after Step 3 above, all the following steps result
in a IDE freeze:
(a) Create a new Project and select the button for adding 
a Source Root folder
(b) For an existing Project, add a new folder containing
a class library [JAR file with source and docs]
(c) For an existing Project, add a new JAR file 
[what I reported in the original report].

The Netbeans log file does not give any new information,
since apparently the log is not updated due to IDE freeze. It only
contains the standard initialization stuff stored after successful 
startup of Netbeans.

IMPORTANT:
In my machine, if I login as Administrator and launch Netbeans, 
the problems DO NOT occur. I can create new projects and add libraries 
and JAR files merrily without trouble.

Hope this helps.

-jgjp
Comment 5 Marian Mirilovic 2006-07-24 09:52:41 UTC
reporter:
Please could you attach the thread-dump after the freeze of the IDE (see 
http://qa.netbeans.org/bugzilla/generating-thread-dumps.html ) ?
Thanks in advance.
Comment 6 Jan Lahoda 2006-07-24 10:34:25 UTC
Hi,
   most probably duplicate of issue #72437 caused by JDK bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6317789

Please see issue #72437 and the JDK bug for possible workarounds or upgrade to
JDK1.6.

Please reopen if you have a thread dump that proves that this issue is different
from issue #72437.

Thanks.

*** This issue has been marked as a duplicate of 72437 ***