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 48434

Summary: A lot of FileNotFoundExceptions in messages.log file
Product: java Reporter: Marian Mirilovic <mmirilovic>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker Keywords: T9Y
Priority: P2    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: FileNotFoundException and NPE from ASTProvider
CompositionViolationException from mdr
InvalidObjectException: Object with MOFID
NullPointerException from BtreeDatabase.save(BtreeDatabase.java:553)

Description Marian Mirilovic 2004-09-03 07:37:34 UTC
[nb_dev](20040902120), [jdk1.5.0](b63)

Last few days (2-3) I've seen a lot of
FileNotFoundExceptions in messages.log files from
our tests. I don't have exact steps to reproduce,
because is hard to specifiy when expception rises,
but it seems like it happens during test :
Refresh folder with 50-100 java files
- open project 
- create package "x.folder50javafiles" (externally)
- refresh package "x" in projects view
- expand package "x.folder50javafiles" in projects
view
- copy 50/100 java files to the folder
"folder50javafiles" (externally)
- push "Refresh folder " from popup menu over 
"x.folder50javafiles" node in projects view
- measure time 
- collapse "x.folder50javafiles"
- delete "x.folder50javafiles"
- refresh "x" folder

- repeat whole test 5 times

I saw this problems on all our performance test
machines : JDS2, LinuxRH9, Win2K, WinXP, Sol9

See attachments , I think the root off all next
exceptions is FileNotFoundException in first
attachment.
Comment 1 Marian Mirilovic 2004-09-03 07:38:28 UTC
Created attachment 17341 [details]
FileNotFoundException and NPE from ASTProvider
Comment 2 Marian Mirilovic 2004-09-03 07:39:05 UTC
Created attachment 17342 [details]
CompositionViolationException from mdr
Comment 3 Marian Mirilovic 2004-09-03 07:39:32 UTC
Created attachment 17343 [details]
InvalidObjectException: Object with MOFID
Comment 4 Marian Mirilovic 2004-09-03 07:40:14 UTC
Created attachment 17344 [details]
NullPointerException from BtreeDatabase.save(BtreeDatabase.java:553)
Comment 5 rmatous 2004-09-03 08:13:38 UTC
Seems to me that invalid FileObjects are used. Thus probably
appropriate java.io.File already doesn't exist for such FileObject and
all method calls must somehow fail. All attached stack traces comes
from mdr.

So, reassigned for next evaluation.
Comment 6 psuk 2004-09-03 14:05:59 UTC
Changing comp->java/javacore
Comment 7 Jan Becicka 2004-09-03 15:40:55 UTC
I fixed first exception. I hope other exception will not occur after
this fix. Reopen this issue if the fix does not help.

Checking in RepositoryUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.18; previous revision: 1.17
done
Comment 8 Marian Mirilovic 2004-09-06 14:06:07 UTC
Honza thanks, it seems like it works fine now 
verified in [nb_dev](200409051800)
Comment 9 Quality Engineering 2007-09-20 09:45:29 UTC
Reorganization of java component