Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Problem deserializing sun.util.calendar.ZoneInfo object
Problem deserializing sun.util.calendar.ZoneInfo object [message #479790] Wed, 12 August 2009 14:16
Eclipse UserFriend
Originally posted by: mads.tandrup.capgemini.com

Hi

First off I'm new to OSGi bundling, so it's probably me that have
overlooked some detail. I am using the Equinox 3.5 release, and starting
my bundle using the console.

However during some CORBA communication the application fails. The problem
boils down to this:
In the bundle I make a call to java.util.TimeZone.getDefault(), it works
fine. However when I serialize the result of
java.util.TimeZone.getDefault() and then deserialize it I get this error:

java.lang.ClassNotFoundException: sun.util.calendar.ZoneInfo
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:489)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:405)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
java.io.ObjectInputStream.resolveClass(ObjectInputStream.jav a:585)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream .java:1544)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.ja va:1466)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre am.java:1699)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 348)

Apparantly java.util.TimeZone.getDefault() returns an object from the
sun.util.calendar package. It doesn't seem to be posible to import the
package (And I would rather avoid having to import a sun package).

Do you have any suggestions on solving this problem?

Best regards,
Mads T
Previous Topic:e
Next Topic:p2 Installer Installation Not complete
Goto Forum:
  


Current Time: Fri Apr 19 10:29:03 GMT 2024

Powered by FUDForum. Page generated in 0.02051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top