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 51006 - Exception after DnD operation on a java file
Summary: Exception after DnD operation on a java file
Status: CLOSED DUPLICATE of bug 51189
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-31 10:39 UTC by Tim Lebedkov
Modified: 2007-09-26 09:14 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 Tim Lebedkov 2004-10-31 10:39:38 UTC
build 041028

after dragging a java file from one package to
another:

Annotation: The file
src/de/coffa/datamodel/AddCharset.java does not
exist as a local copy. Check it out first.
org.netbeans.modules.vcscore.VcsFileSystem$14: The
file src/de/coffa/datamodel/AddCharset.java does
not exist as a local copy. Check it out first.
	at
org.netbeans.modules.vcscore.VcsFileSystem.inputStream(VcsFileSystem.java:3648)
	at
org.openide.filesystems.StreamPool.createInputStream(StreamPool.java:69)
	at
org.openide.filesystems.AbstractFileObject.getInputStream(AbstractFileObject.java:156)
	at
org.netbeans.modules.masterfs.MasterFileObject.getInputStream(MasterFileObject.java:123)
	at
org.netbeans.modules.javacore.parser.ASTProvider.getRealSource(ASTProvider.java:155)
	at
org.netbeans.modules.javacore.parser.ASTProvider.getReader(ASTProvider.java:188)
	at
org.netbeans.modules.javacore.parser.ASTProvider.getSourceText(ASTProvider.java:418)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.createMDRParser(ResourceImpl.java:504)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.directUpdate(ResourceImpl.java:620)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:576)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:528)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initResource(ResourceImpl.java:374)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:131)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:163)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getInternalForm(SemiPersistentElement.java:835)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:459)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getParser(SemiPersistentElement.java:830)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ElementNavigator.<init>(ElementNavigator.java:32)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.UsageFinder$LazyIterator.findNext(UsageFinder.java:290)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.UsageFinder$LazyIterator.hasNext(UsageFinder.java:315)
	at
org.netbeans.modules.refactoring.api.MoveClassRefactoring.isAccessedByOriginalPackage(MoveClassRefactoring.java:633)
	at
org.netbeans.modules.refactoring.api.MoveClassRefactoring.preCheck(MoveClassRefactoring.java:130)
	at
org.netbeans.modules.refactoring.api.ui.ParametersPanel$7.run(ParametersPanel.java:404)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Comment 1 Martin Entlicher 2004-11-01 13:13:32 UTC
Tim, I'm not able to reproduce the exception. How exactly did it
happen? Was it thrown after you did the refactoring or immediately
after the drag and drop was done? Are you able to reproduce the
exception again?
Thanks.
Comment 2 Martin Entlicher 2004-11-02 14:49:25 UTC
I was able to reproduce this only when I've locally removed a file,
which has dependency on the moved file.

The problem is, that the locally removed file is virtual and therefore
inputStream() throws an IOException. However that exception should be
catched somewhere and should not interrupt the whole thread.
Moving to refactoring to check the code and catch the IOException
somewhere...
Unfortunately the change of file virtuality can not be tracked,
because there is no event fired.
Comment 3 Jan Becicka 2004-11-03 14:02:42 UTC
Problem is that javacore's indexes holds files, which are only virtual.
Comment 4 Jan Becicka 2004-11-08 10:17:30 UTC

*** This issue has been marked as a duplicate of 51189 ***
Comment 5 Tim Lebedkov 2004-11-11 18:25:44 UTC
ok
Comment 6 Quality Engineering 2007-09-20 09:59:44 UTC
Reorganization of java component