Hi,

I think there are two issues here:

1) somewhere in your code you call session.setMetaData(someKey, exception)
// here exception is ListenerInvocationNotAllowedException
find this code and re-think it

2) you keep a hard reference to your Session from a page
Wicket serializes the stateful pages at the end of each request. There is
no need to serialize the session with a page


On Thu, Jul 25, 2013 at 3:59 PM, Lipatov Alexander <[email protected]>wrote:

> Hi to all! I use wicket 6.9.1 and I have errors like that:
> I can reproduce it in my project (we use wicket ajax) but I can't
> understand what the cause of error. I have no idea how that strange object
> can be stored in session.
> We have no usages of "RequestListenerInterface" in our projects.
>
> Any ideas how to fix/investigate?
>
> [25-Jul-2013 16:38:56,571] ERROR [http-bio-8080-exec-7
> JavaSerializer.java:95] - Error serializing object class
> com.pixonic.pixapi.web.PixdeskSession
> [object=com.pixonic.pixapi.web.PixdeskSession@799ea4b1]
> org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException:
> The object type is not Serializable!
> A problem occurred while checking object with type:
> org.apache.wicket.RequestListenerInterface
> Field hierarchy is:
>    [class=com.pixonic.pixapi.web.PixdeskSession]
>     private org.apache.wicket.MetaDataEntry[]
> org.apache.wicket.Session.metaData
> [class=[Lorg.apache.wicket.MetaDataEntry;]
>       private org.apache.wicket.MetaDataEntry[]
> org.apache.wicket.Session.metaData[0]
> [class=org.apache.wicket.MetaDataEntry]
>         java.lang.Object org.apache.wicket.MetaDataEntry.object
> [class=org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException]
>           private final org.apache.wicket.RequestListenerInterface
> org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException.iface
> [class=org.apache.wicket.RequestListenerInterface] <----- field that is
> causing the problem
>         at
> org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:387)
>         at
> org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361)
>
> --
> Thank you,
> Alexander Lipatov
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to