cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emanuele Maiarelli <>
Subject Re: Different DataContext
Date Wed, 22 Jul 2009 11:42:32 GMT
I think the problem is there:

    DataContext mycontext = Databinder.getContext();
    person = ObjectFactory.getInstance().getPerson(parameters.getInt("personid"),

'mycontext' isn't the same context of the one ObjectFactory is using , u should share the
same context between 
Wicket and your Singleton.

I hope this will solve,

Da: Reinout van Schouwen <>
Inviato: Mercoledì 22 luglio 2009, 13:32:29
Oggetto: Re: Different DataContext

Hello Emanuele,

Thanks for your reply.

2009/7/22 Emanuele Maiarelli <>:

>  i'm not an apache Wicket expert, but the Exception its obiusvly casted by
> the fact that ur application is casting objects into different DataContexts.

Yes, but I have no idea how that could happen.

>  What happen if u steps into

This part of the code works fine. It's the 'else' case that causes the


Reinout van Schouwen

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message