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 247378 - FileNotFoundException: pkg/Name$1.class from JavaNode$IconTask$ClassIcon.computeIcon
Summary: FileNotFoundException: pkg/Name$1.class from JavaNode$IconTask$ClassIcon.comp...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 250578 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-22 19:28 UTC by Jesse Glick
Modified: 2015-03-03 13:03 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161849


Attachments
stacktrace (759 bytes, text/plain)
2014-09-22 19:28 UTC, Jesse Glick
Details
stacktrace (747 bytes, text/plain)
2014-09-23 19:16 UTC, emiddio
Details
stacktrace (756 bytes, text/plain)
2014-10-03 09:14 UTC, kalwi
Details
stacktrace (727 bytes, text/plain)
2014-10-15 15:07 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2014-09-22 19:28:50 UTC
This bug was originally marked as duplicate of bug 187703, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20140919-94fb7d47c056)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: Linux

User Comments:
bartvdc: build mvn project

jglick: Did a clean build of a Maven project.




Stacktrace: 
java.io.FileNotFoundException: com/cloudbees/jenkins/plugins/longrunning/LongRunningBuild$1.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 Jesse Glick 2014-09-22 19:28:53 UTC
Created attachment 149434 [details]
stacktrace
Comment 2 emiddio 2014-09-23 19:16:49 UTC
Created attachment 149475 [details]
stacktrace

running standalone ant script
Comment 3 Jaroslav Havlin 2014-09-30 08:17:19 UTC
This exception should be probably handled in JavaNode$IconTask.
Reassigning to java/Source. Please evaluate.
Comment 4 kalwi 2014-10-03 09:14:17 UTC
Created attachment 149690 [details]
stacktrace

This is some weird problem with resolving of the following imports from org.apache.cxf:cxf-api:2.7.2 Maven artifact:
import org.apache.cxf.ws.addressing.AttributedURIType;
import org.apache.cxf.ws.addressing.EndpointReferenceType;

Both imports are red-marked as "cannot find symbol" even if I have the above artifact added to direct dependencies. Maybe the artifact itself (or related CXF artifacts) is buggy and NetBeans can't handle it. Cleaning of Maven local repo and re-resolving the artifact won't help.
Comment 5 J Bachorik 2014-10-15 15:07:12 UTC
Created attachment 149923 [details]
stacktrace

clean & build
Comment 6 Svata Dedic 2014-11-14 13:57:48 UTC
I'll have the node to return a regular class icon in the case the file is not found; filesystems should remove the relevant file/dataobject anyway, so the node will be staled too long.

Fixed in jet-main#3a25906c02ad
Comment 7 Quality Engineering 2014-11-21 03:51:02 UTC
Integrated into 'main-silver', will be available in build *201411210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3a25906c02ad
User: Svata Dedic <sdedic@netbeans.org>
Log: #247378: regular class node is produced if .class readin fails. No log if FNFE is thrown
Comment 8 Jaroslav Havlin 2015-03-03 13:03:49 UTC
*** Bug 250578 has been marked as a duplicate of this bug. ***