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 26535 - Cannot read class: org.openide.filesystems.JarFileSystem
Summary: Cannot read class: org.openide.filesystems.JarFileSystem
Status: CLOSED DUPLICATE of bug 26072
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-15 13:17 UTC by ats37
Modified: 2008-12-22 23:16 UTC (History)
0 users

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 ats37 2002-08-15 13:17:37 UTC
I just reverted my machine from the JDK 1.4.1 beta to JDK 
1.4.0_01 (as I discovered 1.4.1 had made removed 
the "classic" compiler, while in 1.4.0 it's still there but 
deprecated, and I need to use it).  I also upgraded from 
Netbeans 3.4 RC1 to 3.4 RC2 at the same time (though I 
think it's the JDK move that's caused my problem).

When I started Netbeans, I got the exception listed below.  
Previously, there was a hidden file system mounted for the 
src.zip file in the jdk 1.4.1 directory; obviously, the zip 
is no longer there, though there is one in the jdk 1.4.0 
directory instead.  Unfortunately, when I try to Customize 
the filesystems to correct the zip's location, I don't get 
any property pages displayed for the src.zip entry.

I've managed to work around the problem, by copying the 
1.4.0 src.zip to the path that the 1.4.1 JDK was using.  
Netbeans then started up without error, and Customizing the 
filesystems gave the usual Properties, Expert and 
Capabilities tabs for the zip file, which let me change its 
Archive File property to the new location.  I then deleted 
the copy I'd made.

Presumably this problem could affect any mounted zip file 
that gets moved or deleted?


Annotation: Cannot read class: 
org.openide.filesystems.JarFileSystem
Annotation: Source: Mount/src#002Ezip.settings
Annotation: Content: 
<?xml version="1.0"?>
<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session 
settings 
1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-
1_0.dtd">
<settings version="1.0">
    <instanceof 
class="org.openide.filesystems.JarFileSystem"/>
    <instanceof 
class="org.openide.filesystems.AbstractFileSystem"/>
    <instanceof 
class="org.openide.filesystems.AbstractFileSystem$List"/>
    <instanceof 
class="org.openide.filesystems.AbstractFileSystem$Attr"/>
    <instanceof class="java.lang.Object"/>
    <instanceof class="org.openide.filesystems.FileSystem"/>
    <instanceof 
class="org.openide.filesystems.AbstractFileSystem$Change"/>
    <instanceof class="java.io.Serializable"/>
    <instanceof 
class="org.openide.filesystems.AbstractFileSystem$Info"/>
    <serialdata 
class="org.openide.filesystems.JarFileSystem">
        
ACED0005737200256F72672E6F70656E6964652E66696C6573797374656D
732E4A617246696C6553797374656DFEA3640EA5
        
93F8870200014C0004726F6F7474000E4C6A6176612F696F2F46696C653B
7872002A6F72672E6F70656E6964652E66696C65
        
73797374656D732E416273747261637446696C6553797374656DD193D2E5
ABFD8BFA0300054C0004617474727400314C6F72
        
672F6F70656E6964652F66696C6573797374656D732F4162737472616374
46696C6553797374656D24417474723B4C000663
        
68616E67657400334C6F72672F6F70656E6964652F66696C657379737465
6D732F416273747261637446696C655379737465
        
6D244368616E67653B4C0004696E666F7400314C6F72672F6F70656E6964
652F66696C6573797374656D732F416273747261
        
637446696C6553797374656D24496E666F3B4C00046C6973747400314C6F
72672F6F70656E6964652F66696C657379737465
        
6D732F416273747261637446696C6553797374656D244C6973743B4C0008
7472616E736665727400354C6F72672F6F70656E
        
6964652F66696C6573797374656D732F416273747261637446696C655379
7374656D245472616E736665723B787200226F72
        
672E6F70656E6964652E66696C6573797374656D732E46696C6553797374
656D840CFB0DCFF8F9040200035A000668696464
        
656E4C000A6361706162696C69747974002E4C6F72672F6F70656E696465
2F66696C6573797374656D732F46696C65537973
        
74656D4361706162696C6974793B4C000A73797374656D4E616D65740012
4C6A6176612F6C616E672F537472696E673B7870
        
01737200316F72672E6F70656E6964652E66696C6573797374656D732E46
696C6553797374656D4361706162696C69747924
        
4265616E08B6C4E26B7961400200045A000B636F6D70696C6174696F6E5A
000564656275675A0003646F635A000965786563
        
7574696F6E78700000000074002B433A5C50726F6772616D2046696C6573
5C4A617661736F66745C4A444B5C312E342E315C
        
7372632E7A69707372002A6F72672E6F70656E6964652E66696C65737973
74656D732E4A617246696C6553797374656D2449
        
6D706CFF1123A997AF17400200014C000266737400274C6F72672F6F7065
6E6964652F66696C6573797374656D732F4A6172
        
46696C6553797374656D3B787071007E000B71007E001171007E00117100
7E001170770400000000787372000C6A6176612E
        
696F2E46696C65042DA4450E0DE4FF0300014C00047061746871007E000A
787071007E000E7702005C78
    </serialdata>
</settings>
Annotation: File C:\Program Files\Javasoft\JDK\1.4.1
\src.zip does not exist.
org.openide.filesystems.FSException: File C:\Program 
Files\Javasoft\JDK\1.4.1\src.zip does not exist.
        at org.openide.filesystems.FSException.io
(FSException.java:73)
        at org.openide.filesystems.JarFileSystem.setJarFile
(JarFileSystem.java:161)
        at org.openide.filesystems.JarFileSystem.readObject
(JarFileSystem.java:660)
        at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at java.io.ObjectStreamClass.invokeReadObject
(ObjectStreamClass.java:809)
        at java.io.ObjectInputStream.readSerialData
(ObjectInputStream.java:1733)
        at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1636)
        at java.io.ObjectInputStream.readObject0
(ObjectInputStream.java:1264)
        at java.io.ObjectInputStream.readObject
(ObjectInputStream.java:322)
        at 
org.netbeans.core.projects.XMLSettingsSupport$SettingsRecogn
izer.readSerial(XMLSettingsSupport.java:420)
        at 
org.netbeans.core.projects.XMLSettingsSupport$SettingsRecogn
izer.instanceCreate(XMLSettingsSupport.java:448)
        at 
org.netbeans.core.projects.SerialDataConvertor$SettingsInsta
nce.instanceCreate(SerialDataConvertor.java:315)
        at 
org.openide.loaders.FolderInstance.instanceForCookie
(FolderInstance.java:365)
        at 
org.openide.loaders.FolderInstance$HoldInstance.instanceCrea
te(FolderInstance.java:783)
        at org.netbeans.core.AutomountSupport.createInstance
(AutomountSupport.java:83)
        at 
org.openide.loaders.FolderInstance.defaultProcessObjects
(FolderInstance.java:571)
        at org.openide.loaders.FolderInstance.access$100
(FolderInstance.java:45)
        at org.openide.loaders.FolderInstance$2.run
(FolderInstance.java:456)
        at org.openide.util.Task.run(Task.java:136)
[catch] at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:599)
Comment 1 ats37 2002-08-15 13:46:05 UTC
And it does it again whenever I switch projects in the 
project manager (at least, until I correct it in each of 
them too).  This is getting rather irritating...
Comment 2 pzajac 2002-08-15 14:26:11 UTC

*** This issue has been marked as a duplicate of 6922 ***
Comment 3 pzajac 2002-08-15 14:27:48 UTC
sorry I inserted wrong duplicate bug id 
Comment 4 pzajac 2002-08-15 14:28:56 UTC

*** This issue has been marked as a duplicate of 26072 ***
Comment 5 Marian Mirilovic 2003-07-22 10:43:15 UTC
verified, closed - it's duplicate.