appfuse-wicket-ibatis projoct XXXList.class throws class unserializable exception

3 messages Options
Embed this post
Permalink
David Brown-48

appfuse-wicket-ibatis projoct XXXList.class throws class unserializable exception

Reply Threaded More More options
Print post
Permalink
Hello appfusers, I have a version of the appfuse-wicket-ibatis project running with all of the UserXXX.class objects duplicated as a separate process function. The target class is throwing a class unable to serialize exception (included below). I noticed the original project source class: UserList.java has the following:


private static final long serialVersionUID = -5202104862675278153L;


which obviously mitigates the serialization issues. I attempted the following in my XXXList.class:


private static final long serialVersionUID = 1L;


This makes no change in the exception thrown:


**********************************
java.io.NotSerializableException: org.apache.commons.logging.impl.SLF4JLocationAwareLog


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: appfuse-wicket-ibatis projoct XXXList.class throws class unserializable exception

Reply Threaded More More options
Print post
Permalink
I would try making your Logger variable transient or remove it.

Matt

On Fri, Jun 19, 2009 at 9:20 AM, David Brown <[hidden email]> wrote:
Hello appfusers, I have a version of the appfuse-wicket-ibatis project running with all of the UserXXX.class objects duplicated as a separate process function. The target class is throwing a class unable to serialize exception (included below). I noticed the original project source class: UserList.java has the following:


private static final long serialVersionUID = -5202104862675278153L;


which obviously mitigates the serialization issues. I attempted the following in my XXXList.class:


private static final long serialVersionUID = 1L;


This makes no change in the exception thrown:


**********************************
java.io.NotSerializableException: org.apache.commons.logging.impl.SLF4JLocationAwareLog


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


David Brown-48

Re: appfuse-wicket-ibatis projoct XXXList.class throws class unserializable exception

Reply Threaded More More options
Print post
Permalink
In reply to this post by David Brown-48
Hello Matt, thanks: adding transient worked! Regards, David.



----- Original Message -----
From: "Matt Raible" <[hidden email]>
To: [hidden email]
Sent: Friday, June 19, 2009 10:29:23 AM GMT -06:00 US/Canada Central
Subject: Re: [appfuse-user] appfuse-wicket-ibatis projoct XXXList.class throws  class unserializable exception

I would try making your Logger variable transient or remove it.

Matt

On Fri, Jun 19, 2009 at 9:20 AM, David Brown
<[hidden email]>wrote:

> Hello appfusers, I have a version of the appfuse-wicket-ibatis project
> running with all of the UserXXX.class objects duplicated as a separate
> process function. The target class is throwing a class unable to serialize
> exception (included below). I noticed the original project source class:
> UserList.java has the following:
>
>
> private static final long serialVersionUID = -5202104862675278153L;
>
>
> which obviously mitigates the serialization issues. I attempted the
> following in my XXXList.class:
>
>
> private static final long serialVersionUID = 1L;
>
>
> This makes no change in the exception thrown:
>
>
> **********************************
> java.io.NotSerializableException:
> org.apache.commons.logging.impl.SLF4JLocationAwareLog
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]