Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Hessian

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-05-2012, 10:26 AM
dirichs dirichs is offline
Junior Member
 
Join Date: Jan 2012
Posts: 2
Default Hessian deserialization chokes on java.sql.Date/Timestamp/Time

When using fields of type java.sql.Date/Timestamp/Time with Hessian 4.0.7, I noticed that null values are not handled gracefully during deserialization. Is there a deeper reason for this or is it an implementation error? Detailed stack trace follows:

com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianFieldException: dynaserv.domain.Route.lastModifield: java.sql.Timestamp cannot be assigned from null
at com.caucho.hessian.client.HessianProxy.invoke(Hess ianProxy.java:221)
at $Proxy3.route(Unknown Source)
at dynaclient.actions.StartRouting.run(StartRouting.j ava:53)
at org.eclipse.jface.action.Action.runWithEvent(Actio n.java:498)
at org.eclipse.jface.action.ActionContributionItem.ha ndleWidgetSelection(ActionContributionItem.java:58 4)
at org.eclipse.jface.action.ActionContributionItem.ac cess$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$6. handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3161)
at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench. java:671)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
at dynaclient.Application.start(Application.java:24)
at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 110)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:14 07)
at org.eclipse.equinox.launcher.Main.main(Main.java:1 383)
Caused by: com.caucho.hessian.io.HessianFieldException: dynaserv.domain.Route.lastModifield: java.sql.Timestamp cannot be assigned from null
at com.caucho.hessian.io.UnsafeDeserializer.logDeseri alizeError(UnsafeDeserializer.java:774)
at com.caucho.hessian.io.UnsafeDeserializer$SqlTimest ampFieldDeserializer.deserialize(UnsafeDeserialize r.java:725)
at com.caucho.hessian.io.UnsafeDeserializer.readObjec t(UnsafeDeserializer.java:239)
at com.caucho.hessian.io.UnsafeDeserializer.readObjec t(UnsafeDeserializer.java:150)
at com.caucho.hessian.io.Hessian2Input.readObjectInst ance(Hessian2Input.java:2188)
at com.caucho.hessian.io.Hessian2Input.readObject(Hes sian2Input.java:1695)
at com.caucho.hessian.io.Hessian2Input.readObject(Hes sian2Input.java:1679)
at com.caucho.hessian.io.UnsafeDeserializer$ObjectFie ldDeserializer.deserialize(UnsafeDeserializer.java :417)
at com.caucho.hessian.io.UnsafeDeserializer.readObjec t(UnsafeDeserializer.java:239)
at com.caucho.hessian.io.UnsafeDeserializer.readObjec t(UnsafeDeserializer.java:150)
at com.caucho.hessian.io.Hessian2Input.readObjectInst ance(Hessian2Input.java:2188)
at com.caucho.hessian.io.Hessian2Input.readObject(Hes sian2Input.java:1695)
at com.caucho.hessian.io.Hessian2Input.readObject(Hes sian2Input.java:1679)
at com.caucho.hessian.io.Hessian2Input.readReply(Hess ian2Input.java:346)
at com.caucho.hessian.client.HessianProxy.invoke(Hess ianProxy.java:194)
... 31 more
Caused by: java.lang.NullPointerException
at com.caucho.hessian.io.UnsafeDeserializer$SqlTimest ampFieldDeserializer.deserialize(UnsafeDeserialize r.java:721)
... 44 more
Reply With Quote
 

Tags
deserialization, hessian, java.sql.date, nullpointerexceptioin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.