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 267664 - NoClassDefFoundError: Could not initialize class org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem
Summary: NoClassDefFoundError: Could not initialize class org.netbeans.modules.masterf...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-21 19:06 UTC by Exceptions Reporter
Modified: 2016-09-02 19:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 225849


Attachments
stacktrace (1.52 KB, text/plain)
2016-08-21 19:06 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-08-21 19:06:48 UTC
This bug was originally marked as duplicate of bug 166236, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) Client VM, 24.80-b11, Java(TM) SE Runtime Environment, 1.7.0_80-b15
OS: Linux

User Comments:
GUEST: I was trying to import Smarty Template to php project




Stacktrace: 
java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem
   at org.netbeans.modules.masterfs.filebasedfs.FileBasedURLMapper.getFileObjects(FileBasedURLMapper.java:107)
   at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:65)
   at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:213)
   at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:889)
   at org.netbeans.core.startup.preferences.PropertiesStorage.toPropertiesFile(PropertiesStorage.java:329)
   at org.netbeans.core.startup.preferences.PropertiesStorage.outputStream(PropertiesStorage.java:263)
Comment 1 Exceptions Reporter 2016-08-21 19:06:51 UTC
Created attachment 161735 [details]
stacktrace
Comment 2 Tomas Hurka 2016-09-02 19:49:03 UTC
Initial exception seems to be this one:

INFO [org.netbeans.JarClassLoader]: file /home/mahmoud/netbeans-8.0.1/platform/modules/org-netbeans-modules-masterfs.jar exists. # of retries -1
INFO [org.netbeans.JarClassLoader]: /home/mahmoud/netbeans-8.0.1/platform/modules/org-netbeans-modules-masterfs.jar isDirectory: false, isFile: true size: 479,895
WARNING [org.netbeans.JarClassLoader]: looking up org/netbeans/modules/masterfs/filebasedfs/fileobjects/FolderObj.class
java.util.zip.ZipException: ZIP_Read: error reading zip file
	at java.util.zip.ZipFile.read(Native Method)
	at java.util.zip.ZipFile.access$1400(ZipFile.java:56)
	at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679)
	at org.netbeans.JarClassLoader$JarSource.resource(JarClassLoader.java:613)
	at org.netbeans.Archive.getData(Archive.java:212)
	at org.netbeans.JarClassLoader$JarSource.readClass(JarClassLoader.java:577)
[catch] at org.netbeans.JarClassLoader$Source.getClassData(JarClassLoader.java:374)
	at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:221)
	at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:259)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.<init>(FileBasedFileSystem.java:90)

"java.util.zip.ZipException: ZIP_Read: error reading zip file" suggests that the /home/mahmoud/netbeans-8.0.1/platform/modules/org-netbeans-modules-masterfs.jar file is corrupted. Please reinstall NetBeans.