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 46348 - Informational dialog instead of Exception for : The file x.java does not exist as a local copy. Check it out first.
Summary: Informational dialog instead of Exception for : The file x.java does not exis...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-20 16:43 UTC by Marian Mirilovic
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 Marian Mirilovic 2004-07-20 16:43:15 UTC
[nb_dev](200407191800), [jdk1.5.0](b58)

Steps to reproduce:
- run IDE
- open project
- "mount" CVS project directory 
- form projects view remove one java file
-> exception dialog - with Show Details button
rises, I think here will be better show only
informational dialog, without Show Details (it
shows stack trace...)
Comment 1 Marian Mirilovic 2004-07-20 16:51:28 UTC
Stack trace ...

Annotation: The file src/org/netbeans/a11y/AccessibilityTester.java
does not exist as a local copy. Check it out first.
org.netbeans.modules.vcscore.VcsFileSystem$14: The file
src/org/netbeans/a11y/AccessibilityTester.java does not exist as a
local copy. Check it out first.
        at
org.netbeans.modules.vcscore.VcsFileSystem.inputStream(VcsFileSystem.java:3864)
        at
org.openide.filesystems.AbstractFileObject.getInputStream(AbstractFileObject.java:156)
        at
org.netbeans.modules.masterfs.MasterFileObject.getInputStream(MasterFileObject.java:122)
        at
org.netbeans.modules.javacore.parser.ASTProvider.getRealSource(ASTProvider.java:363)
        at
org.netbeans.modules.javacore.parser.ASTProvider.getReader(ASTProvider.java:396)
[catch] at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.directUpdate(ResourceImpl.java:501)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.updateFromDataObject(ResourceImpl.java:378)
        at
org.netbeans.modules.javacore.JMManager.getResource(JMManager.java:355)
        at
org.netbeans.modules.javacore.JMManager.getResource(JMManager.java:304)
        at
org.netbeans.modules.javacore.JMManager.getResource(JMManager.java:288)
        at
org.netbeans.modules.javacore.RepositoryUpdater.run(RepositoryUpdater.java:204)
Comment 2 Martin Entlicher 2004-07-20 16:55:42 UTC
I'm sorry, I can not fix that. The filesystem must throw IOException.
Whoever catches the exception can display an information dialog instead.
Comment 3 Jan Becicka 2004-07-21 08:05:07 UTC
Exception is thrown correctly.
This is not UI problem. Delete action should not request input stream
at all.

Problem is, that JMManager.getResource() does updateFromDataObject().
Comment 4 Jan Becicka 2004-07-21 08:40:44 UTC
Fixed.

Checking in
javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.13; previous revision: 1.12
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/java/JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <-- 
JavaNode.java
new revision: 1.109; previous revision: 1.108
done
Comment 5 Marian Mirilovic 2005-03-25 14:36:39 UTC
verified in NB4.0
Comment 6 Quality Engineering 2007-09-20 10:08:57 UTC
Reorganization of java component