Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Using Riena and JodaTime
Using Riena and JodaTime [message #574239] Thu, 04 September 2008 06:37
boss182  is currently offline boss182 Friend
Messages: 10
Registered: July 2009
Junior Member
Hi Riena Team,

I encountered some problems when using Riena in combination with JodaTime
(i.e. org.joda.time.LocalDate). When sending over the wire from server to
client everything works fine. The other direction causes an
java.lang.InstantiationException, because hessian tries to instantiate the
abstract class Chronology instead of the real class ISOChronology. A part
of the stacktrace is following below.

Perhaps you can help me with some useful hints to solve or bypass this
problem. While googling the problem i found
http://maillist.caucho.com/pipermail/hessian-interest/2007-A pril/000054.html,
but this thread is not really a help.

Thanks in advance
Johannes

----Part of the Stacktrace----
Caused by: com.caucho.hessian.io.HessianFieldException:
org.joda.time.LocalDate.iChronology: org.joda.time.Chronology:null
at
com.caucho.hessian.io.JavaDeserializer.logDeserializeError(J avaDeserializer.java:586)
at
com.caucho.hessian.io.JavaDeserializer$ObjectFieldDeserializ er.deserialize(JavaDeserializer.java:387)
at
com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeseriali zer.java:199)
at
com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeseriali zer.java:141)
at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input .java:1634)
at
com.caucho.hessian.io.JavaDeserializer$ObjectFieldDeserializ er.deserialize(JavaDeserializer.java:383)
at
com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeseriali zer.java:199)
at
com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeseriali zer.java:141)
at
com.caucho.hessian.io.SerializerFactory.readMap(SerializerFa ctory.java:343)
at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input .java:1929)
at
com.caucho.hessian.io.CollectionDeserializer.readList(Collec tionDeserializer.java:78)
at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input .java:1666)
at
com.caucho.hessian.io.JavaDeserializer$ObjectFieldDeserializ er.deserialize(JavaDeserializer.java:383)
at
com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeseriali zer.java:199)
at
com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeseriali zer.java:141)
at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input .java:1634)
at
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkel eton.java:149)
at
org.eclipse.riena.communication.publisher.hessian.HessianRie naDispatcherServlet.service(HessianRienaDispatcherServlet.ja va:153)
... 18 more
Caused by: com.caucho.hessian.io.IOExceptionWrapper:
org.joda.time.Chronology:null
at
com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeseriali zer.java:147)
at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input .java:1634)
at
com.caucho.hessian.io.JavaDeserializer$ObjectFieldDeserializ er.deserialize(JavaDeserializer.java:383)
... 34 more
Caused by: java.lang.InstantiationException
at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.ne wInstance(InstantiationExceptionConstructorAccessorImpl.java :30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at
com.caucho.hessian.io.JavaDeserializer.instantiate(JavaDeser ializer.java:270)
at
com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeseriali zer.java:139)
... 36 more
Previous Topic:Riena Software Update
Next Topic:Riena Widgets :: Code Snippets
Goto Forum:
  


Current Time: Sun Dec 21 02:50:13 GMT 2014

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

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