Re: strange ClassCastException in wicketstuff-push

2010-06-06 Thread Ingo Adler
Solved. It was a class loading problem - IntelliJ in combination with Jetty. WebAppContext context = new WebAppContext(); ... context.setParentLoaderPriority(true); // - Solution Ingo On 04.06.2010 00:52, Ingo Adler wrote: Hi, I'm trying to use wicketstuff-push in my project. I'm always

strange ClassCastException in wicketstuff-push

2010-06-03 Thread Ingo Adler
Hi, I'm trying to use wicketstuff-push in my project. I'm always getting a ClassCastException in the wicketstuff-push sources, which I can't explain: java.lang.ClassCastException: org.mortbay.cometd.continuation.ContinuationBayeux cannot be cast to org.cometd.Bayeux at

Re: strange classcastexception

2009-12-29 Thread Per Newgro
Not without the stacktrace. Please add it. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

strange classcastexception

2009-12-28 Thread Sam Barrow
I'm getting this exception when calling getConvertedInput() on birthDateField. java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date I'm using wicket 1.4.1 birthDateField = new TextFieldDate(birthDate, new ModelDate());

Re: strange classcastexception

2009-12-28 Thread Martin Makundi
You forgot to set Type of the textfield... you know, generics are only compile-deep. public TextField(final String id, final ClassT type) type - Date.class ** Martin 2009/12/28 Sam Barrow s...@sambarrow.com: I'm getting this exception when calling getConvertedInput() on birthDateField.

Re: strange classcastexception

2009-12-28 Thread Sam Barrow
I tried that too, still same error. On Mon, 2009-12-28 at 16:02 +0200, Martin Makundi wrote: You forgot to set Type of the textfield... you know, generics are only compile-deep. public TextField(final String id, final ClassT type) type - Date.class ** Martin 2009/12/28 Sam Barrow

Re: strange classcastexception

2009-12-28 Thread Martin Makundi
did you try debugger and breakpoint? 2009/12/28 Sam Barrow s...@sambarrow.com: I tried that too, still same error. On Mon, 2009-12-28 at 16:02 +0200, Martin Makundi wrote: You forgot to set Type of the textfield... you know, generics are only compile-deep. public TextField(final String id,

Re: strange classcastexception

2009-12-28 Thread Per Newgro
Hi Sam, did you try birthDateField = new TextFieldDate(birthDate, new ModelDate(), Date.class); Maybe it helps. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: strange classcastexception

2009-12-28 Thread Sam Barrow
tried that, didn't work. any other ideas? On Mon, 2009-12-28 at 16:11 +0100, Per Newgro wrote: Hi Sam, did you try birthDateField = new TextFieldDate(birthDate, new ModelDate(), Date.class); Maybe it helps. Cheers Per

Re: strange classcastexception

2009-12-28 Thread Martin Makundi
Just debug it to find the reason. ** Martin 2009/12/29 Sam Barrow s...@sambarrow.com: tried that, didn't work. any other ideas? On Mon, 2009-12-28 at 16:11 +0100, Per Newgro wrote: Hi Sam, did you try birthDateField = new TextFieldDate(birthDate, new ModelDate(), Date.class); Maybe

Strange ClassCastException with DropDownChoice

2008-04-17 Thread Michael Mehrle
I'm creating my own DropDownChoice: private class WeekdayChoice extends DropDownChoice { public WeekdayChoice(String id, IModel model) { super(id, model, new Model(new DateFormatSymbols().getWeekdays()));

Re: Strange ClassCastException with DropDownChoice

2008-04-17 Thread Nick Heudecker
It looks like your model object is returning a String[], while the class is expecting a List. On Thu, Apr 17, 2008 at 8:51 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I'm creating my own DropDownChoice: private class WeekdayChoice extends DropDownChoice {

Re: strange ClassCastException when deserializing a Page

2007-09-25 Thread Eelco Hillenius
Gee that looks weird. As far as I know, the only exotic stuff we do with serializing is an optimization for page references. But I can't see how that might relate to this. Johan, any ideas? Any chance you could make a test case out of it Xavier? Eelco On 9/24/07, Xavier Hanin [EMAIL PROTECTED]

Re: strange ClassCastException when deserializing a Page

2007-09-25 Thread Xavier Hanin
On 9/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Gee that looks weird. As far as I know, the only exotic stuff we do with serializing is an optimization for page references. But I can't see how that might relate to this. Johan, any ideas? Any chance you could make a test case out of it

Re: strange ClassCastException when deserializing a Page

2007-09-25 Thread Xavier Hanin
On 9/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 9/24/07, Xavier Hanin [EMAIL PROTECTED] wrote: On 9/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Gee that looks weird. As far as I know, the only exotic stuff we do with serializing is an optimization for page references. But