Hi Henk,

IIRC dates aren't handled in their serialized form, but are rather  
converted to a string representation. This is handled correctly with  
input injection, but I seem to have forgotten to add a dedicated  
getInputDate method. You can achieve the same with  
(Date)Convert.toType(getInput("active_date"), Date.class)

Hope this helps,

Geert

On 10 Jul 2007, at 15:18, Henk wrote:

>
> Hi,
>
> I'm using a global variable called 'active_date'.   I read and set
> this in the same element (because the element shows a list with  
> paging):
>
> Date date = getInputSerializable("active_date");
> and at the end of the element code:
> setOutput("active_date", fBean.getStartdate());
>
>
> I now get this exception:
>
> com.uwyn.rife.engine.exceptions.InputsDeserializationException: An
> error occurred while deserializing the input 'active_date' of element
> 'eventlist.xml'.
>       at com.uwyn.rife.engine.ElementSupport.getInputSerializable
> (ElementSupport.java:2294)
>       at com.uwyn.rife.engine.ElementSupport.getInputSerializable
> (ElementSupport.java:2253)
>       at be.marsman_it.mob.elements.pub.EventList.processElement
> (EventList.java:117)
>       at com.uwyn.rife.engine.ElementContext.processContext
> (ElementContext.java:460)
>       at com.uwyn.rife.engine.RequestState.service(RequestState.java:368)
>       at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:187)
>       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:585)
>       at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:162)
>       at org.mortbay.jetty.servlet.WebApplicationHandler
> $CachedChain.doFilter(WebApplicationHandler.java:823)
>       at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:473)
>       at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:567)
>       at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
>       at org.mortbay.jetty.servlet.WebApplicationContext.handle
> (WebApplicationContext.java:635)
>       at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
>       at org.mortbay.http.HttpServer.service(HttpServer.java:954)
>       at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
>       at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java: 
> 981)
>       at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
>       at org.mortbay.http.SocketListener.handleConnection
> (SocketListener.java:244)
>       at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>       at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> Caused by:
> com.uwyn.rife.tools.exceptions.DeserializationErrorException: Errors
> occurred during deserialization.
>       at com.uwyn.rife.tools.SerializationUtils.deserializeFromString
> (SerializationUtils.java:31)
>       at com.uwyn.rife.engine.ElementSupport.getInputSerializable
> (ElementSupport.java:2290)
>
>
> Any idea what this can be?
>
> Thanks
>
> Henk
>
> Henk
> [EMAIL PROTECTED]
>
>
>
>
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to