[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] ClassNotFoundException with sun.misc package

Hi All,


      I have a bundle in which i am using sun.misc.BASE64Encoder. However when I start my bundle I get a ClassNotFound Exception. I see that the sun.misc packages are part of rt.jar and thus am expecting that they should be available in the runtime. The exception i get only when I run standalone using


   java -jar org.eclipse.osgi_3.2.0.jar -console


 However when I run through eclipse or eclipse.exe using the steps mentioned in http://www.eclipse.org/equinox/documents/quickstart.php I do not see this error.


 I did a getprop on org.osgi.framework.system.packages, but sun.misc is not part of it. I`m not sure of what i`m missing and how i must rectify this.

Any help in this regard would be greatly appreciated.


P.S: Have also attached the stack trace for the same.


Thanks,

Srijith

java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
        at com.novell.zenworks.agent.core.zmd.cache.checksum.Checksum.toString(Checksum.java:133)
        at com.novell.zenworks.agent.core.zmd.cache.EntryMetaData.setChecksum(EntryMetaData.java:185)
        at com.novell.zenworks.agent.core.zmd.cache.FileCache.Put(FileCache.java:240)
        at com.novell.zenworks.agent.core.zmd.cache.ZenCache.PutFile(ZenCache.java:203)
        at com.novell.zenworks.agent.core.zmd.cache.ZenCache.PutFile(ZenCache.java:123)
        at com.novell.zenworks.agent.core.zmd.cache.CacheCommandProvider._putfile(CacheCommandProvider.java:91)
        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:597)
        at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:300)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:285)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:221)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:434)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        ... 15 more
Nested Exception:
java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:434)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at com.novell.zenworks.agent.core.zmd.cache.checksum.Checksum.toString(Checksum.java:133)
        at com.novell.zenworks.agent.core.zmd.cache.EntryMetaData.setChecksum(EntryMetaData.java:185)
        at com.novell.zenworks.agent.core.zmd.cache.FileCache.Put(FileCache.java:240)
        at com.novell.zenworks.agent.core.zmd.cache.ZenCache.PutFile(ZenCache.java:203)
        at com.novell.zenworks.agent.core.zmd.cache.ZenCache.PutFile(ZenCache.java:123)
        at com.novell.zenworks.agent.core.zmd.cache.CacheCommandProvider._putfile(CacheCommandProvider.java:91)
        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:597)
        at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:300)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:285)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:221)
        at java.lang.Thread.run(Thread.java:619)