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 20496 - Test failure & also NPE from AutomountSupport
Summary: Test failure & also NPE from AutomountSupport
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2002-02-13 08:51 UTC by Jesse Glick
Modified: 2008-12-22 20:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test failure details (4.45 KB, text/html)
2002-02-13 08:53 UTC, Jesse Glick
Details
NPE during startup - stack trace (2.36 KB, text/plain)
2002-02-13 08:53 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-02-13 08:51:47 UTC
In [dev feb 13] I get a test failure for AutomountSupport. Attaching; not sure
if reproducible.

Also, maybe related: in [dev feb 12], an unrep. NPE from AS.fileSystemAdded
during startup. No unusual circumstances, I think.
Comment 1 Jesse Glick 2002-02-13 08:53:28 UTC
Created attachment 4676 [details]
Test failure details
Comment 2 Jesse Glick 2002-02-13 08:53:56 UTC
Created attachment 4677 [details]
NPE during startup - stack trace
Comment 3 Jaroslav Tulach 2002-02-13 15:08:54 UTC
Jesse, you are king! It is easy to simulate:

Index: org/netbeans/core/AutomountSupport.java
===================================================================
RCS file: /cvs/core/src/org/netbeans/core/AutomountSupport.java,v
retrieving revision 1.40
diff -c -r1.40 AutomountSupport.java
***************
*** 203,208 ****
--- 203,216 ----
          Repository rep = Repository.getDefault ();
          rep.addRepositoryListener (auto);
  
+         
+         try {
+             System.out.println("slle!!!");
+             Thread.sleep (5000);
+             System.out.println("wakeup");
+         } catch (Exception ex) {
+         }
+         
          defaultTask = new DblTask (auto, storeTask);
  
          synchronized (auto) {

Comment 4 Jaroslav Tulach 2002-02-13 16:03:40 UTC
NPE is fixed. The race condition probably not. David is new volunteer
to check the AS, so assigning to him.


Checking in AutomountSupport.java;
/cvs/core/src/org/netbeans/core/AutomountSupport.java,v  <-- 
AutomountSupport.java
new revision: 1.41; previous revision: 1.40
Comment 5 David Strupl 2002-03-08 10:39:50 UTC
NPE fixed by Yarda. I have tried all the tests with slowdown applied
and seems ok now. It there is any further report please reopen. Thanks.
Comment 6 pzajac 2002-10-22 14:26:45 UTC
verified
Comment 7 Quality Engineering 2003-07-01 16:13:21 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.