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 254338 - ClassPathProviderImpl tries to convert folders into archives
Summary: ClassPathProviderImpl tries to convert folders into archives
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-13 08:32 UTC by Tomas Zezula
Modified: 2015-08-14 12:07 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 Tomas Zezula 2015-08-13 08:32:50 UTC
ClassPathProviderImpl tries to convert folders into archives causing the following exception:

Caused: org.openide.filesystems.FSException: Error in file /home/vv159170/devarea/sputnik-trunk/modules/org.clang.staticanalyzer/src.
   at org.openide.filesystems.JarFileSystem.setJarFile(JarFileSystem.java:296)
   at org.openide.filesystems.JarFileSystem.<init>(JarFileSystem.java:186)
   at org.netbeans.core.startup.layers.ArchiveURLMapper.getFileSystem(ArchiveURLMapper.java:169)
[catch] at org.netbeans.core.startup.layers.ArchiveURLMapper.getFileObjects(ArchiveURLMapper.java:141)
   at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:213)
   at org.openide.filesystems.FileUtil.getArchiveRoot(FileUtil.java:1842)
   at org.netbeans.modules.apisupport.project.queries.ClassPathProviderImpl.findClassPath(ClassPathProviderImpl.java:274)
   at org.netbeans.modules.csl.core.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:70)
   at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:673)
   at org.netbeans.modules.parsing.impl.indexing.errors.Utilities.getSourceClassPathFor(Utilities.java:84)
   at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.computePersistentFile(TaskCache.java:458)
   at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.getErrors(TaskCache.java:143)
   at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.isInError(TaskCache.java:383)
   at org.netbeans.modules.parsing.ui.indexing.errors.ErrorAnnotator$1.run(ErrorAnnotator.java:311)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
   at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
ALL [null]: Error in file /home/vv159170/devarea/sputnik-trunk/modules/org.clang.staticanalyzer/src.
Comment 1 Tomas Zezula 2015-08-13 08:44:47 UTC
Fixed jet-main d4153d7bfe6b
Comment 2 Tomas Zezula 2015-08-13 08:45:30 UTC
Please Vladimir, can you verify the fix?
I have no reproducable test case.
Thanks
Comment 3 Quality Engineering 2015-08-14 01:22:03 UTC
Integrated into 'main-silver', will be available in build *201508140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d4153d7bfe6b
User: Tomas Zezula <tzezula@netbeans.org>
Log: #254338:ClassPathProviderImpl tries to convert folders into archives
Comment 4 Vladimir Voskresensky 2015-08-14 12:07:13 UTC
Thank you very much!