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 250578 - java.io.FileNotFoundException: <open java source from maven repo>.class
Summary: java.io.FileNotFoundException: <open java source from maven repo>.class
Status: RESOLVED DUPLICATE of bug 247378
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 12:31 UTC by josh_watson
Modified: 2015-03-03 13:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213280


Attachments
stacktrace (761 bytes, text/plain)
2015-02-20 12:31 UTC, josh_watson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description josh_watson 2015-02-20 12:31:02 UTC
This issue was reported manually by josh_watson.
It already has 4 duplicates 


Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.72-b04, Java(TM) SE Runtime Environment, 1.7.0_72-b14
OS: Windows 7

User Comments:
josh_watson: I had the source of a class from a maven SNAPSHOT dependency open in the editor (downloaded through maven).

I rebuilt the project that had the dependency, which updated the SNAPSHOT. The update removed the class and source file from the dependency.

Actual behaviour:
NetBeans reported the FileNotFoundException when this happened (which seems fair enough as the .java.class resource in the JAR would have been removed). 

Expected behaviour:
A prompt that the source(s) had been removed would be more user friendly.

GUEST: w

GUEST: dont known???

hmbritobn: I opened a Maven Web Project




Stacktrace: 
java.io.FileNotFoundException: com/sysmech/zenpm/record/EricssonCellValueRecordComparatorImpl.class
   at org.openide.filesystems.JarFileSystem.inputStream(JarFileSystem.java:618)
   at org.openide.filesystems.JarFileSystem$Impl.inputStream(JarFileSystem.java:1163)
   at org.openide.filesystems.StreamPool.createInputStream(StreamPool.java:99)
   at org.openide.filesystems.AbstractFileObject.getInputStream(AbstractFileObject.java:214)
   at org.netbeans.modules.java.JavaNode$IconTask$ClassIcon.computeIcon(JavaNode.java:527)
   at org.netbeans.modules.java.JavaNode$IconTask.run(JavaNode.java:424)
Comment 1 josh_watson 2015-02-20 12:31:04 UTC
Created attachment 152114 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-03-03 13:03:49 UTC
Already fixed in development version, see bug 247378.

Thank you very much for reporting.

*** This bug has been marked as a duplicate of bug 247378 ***