You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Linda van der Pal <lv...@heritageagenturen.nl> on 2009/06/03 15:45:07 UTC

ListMultipleChoice and HashSet

I tried setting the model of a ListMultipleChoice to a HashSet (by using 
a CompoundPropertyModel and the id of the HashSet). The list of possible 
choices was an ArrayList. It shows my selected choices nicely. But I'm 
getting an error when I want to save the data. So I'm guessing the LMC 
doens't like cooperating with a HashSet, but then why does it allow the 
HashSet to determine which values in the list to select? Or am I doing 
something else wrong?

Here's the top of the stacktrace:
WicketMessage: Error calling method: public void 
nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on 
object: User: Test
Root cause:
java.lang.IllegalArgumentException: argument type mismatch

Regards,
Linda

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Johan Compagner <jc...@gmail.com>.
What does the converter of that component that is bound to the set
create? It seems to me that that doesnt create a set object but only a
user?? And then not a set of users is the argument but the user itself
so bang you get that exception you have..

On 04/06/2009, Igor Vaynberg <ig...@gmail.com> wrote:
> so looks like you are using a set as the model object but dont have a
> setter that takes a set as an argument in your domain model.
>
> -igor
>
> On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
> <lv...@heritageagenturen.nl> wrote:
>> Igor Vaynberg wrote:
>>>
>>> need to see more of the stacktrace....
>>>
>>> -igor
>>>
>>
>> This is the entire stacktrace that is shown:
>>
>> WicketMessage: Error calling method: public void
>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object:
>> User: Test
>>
>> Root cause:
>>
>> java.lang.IllegalArgumentException: argument type mismatch at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at java.lang.reflect.Method.invoke(Method.java:597) at
>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100)
>> at
>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>> at
>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>> at
>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>> at
>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>> at
>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>> at
>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>> at
>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
>> java.lang.reflect.Method.invoke(Method.java:597) at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>> at
>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>> at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>> at
>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>> at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>> at
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> at
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>> at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>> at
>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
>> at
>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
>> at
>> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>> at
>> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>> at
>> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
>> at
>> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>> at
>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
>> at
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>> at
>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>> at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>> at org.mortbay.jetty.Server.handle(Server.java:324) at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
>> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:619)
>>
>> Complete stack:
>>
>> org.apache.wicket.WicketRuntimeException: Error calling method: public
>> void
>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object:
>> User: Test at
>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109)
>> at
>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>> at
>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>> at
>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>> at
>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>> at
>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>> at
>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>> at
>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
>> java.lang.reflect.Method.invoke(Method.java:597) at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>> at
>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>> at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>> at
>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
Thanks for the help Igor! I was sure I had already tried to add the 
friends = new HashSet<User>(); line to my constructor and that it didn't 
work. Apparently I screwed up somehow, because it is working after all.

Regards,
Linda

Linda van der Pal wrote:
> I've created a quickstart and attached it to a jira: 
> https://issues.apache.org/jira/browse/WICKET-2318
> I hope I did everything right. Feel free to educate me if I didn't. 
> And as ever, thank you so very much for all the help!
>
> Regards,
> Linda
>
> Igor Vaynberg wrote:
>> generate an archetype with maven, cmd line is here
>>
>> wicket.apache.org/quickstart
>>
>> after you are done
>> mvn clean
>> zip the dir
>> attach to a jira
>>
>> -igor
>>
>> On Tue, Jun 9, 2009 at 1:40 AM, Linda van der
>> Pal<lv...@heritageagenturen.nl> wrote:
>>  
>>> I've found where the problem is residing, but I'm still not quite 
>>> sure what
>>> the problem is. So I've used the quickstart to make a small project 
>>> that
>>> reproduces the bug. Can anyone tell me what the procedure is to make 
>>> this
>>> into an actual quickstart that I can pass around? I can make some 
>>> guesses,
>>> but I'd rather do it right the first time.
>>>
>>> Regards,
>>> Linda
>>>
>>> Linda van der Pal wrote:
>>>    
>>>> Well it's unlikely to be a bug in Wicket (not that I was expecting 
>>>> one).
>>>> When I tried to make a quickstart, the quickstart didn't show the 
>>>> error. It
>>>> worked as I expected in the first place. So now I'm off to hunt for 
>>>> the bug
>>>> in my original code.
>>>>
>>>> Thanks for all the help!
>>>>
>>>> Linda.
>>>>
>>>> Igor Vaynberg wrote:
>>>>      
>>>>> you can create a quickstart and attach it to a jira issue. its 
>>>>> hard to
>>>>> tell without having all the code.
>>>>>
>>>>> -igor
>>>>>
>>>>> On Thu, Jun 4, 2009 at 11:49 PM, Linda van der
>>>>> Pal<lv...@heritageagenturen.nl> wrote:
>>>>>
>>>>>        
>>>>>> That is very strange, as this is the code in the domain model:
>>>>>>
>>>>>>  public Set<User> getFriends() {
>>>>>>      return friends;
>>>>>>  }
>>>>>>    public void setFriends(final Set<User> friends) {
>>>>>>      this.friends = friends;
>>>>>>  }
>>>>>>
>>>>>> So I don't see why it would recognize the getter, but not the 
>>>>>> setter.
>>>>>>
>>>>>> Linda
>>>>>>
>>>>>> Igor Vaynberg wrote:
>>>>>>
>>>>>>          
>>>>>>> so looks like you are using a set as the model object but dont 
>>>>>>> have a
>>>>>>> setter that takes a set as an argument in your domain model.
>>>>>>>
>>>>>>> -igor
>>>>>>>
>>>>>>> On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
>>>>>>> <lv...@heritageagenturen.nl> wrote:
>>>>>>>
>>>>>>>
>>>>>>>            
>>>>>>>> Igor Vaynberg wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>              
>>>>>>>>> need to see more of the stacktrace....
>>>>>>>>>
>>>>>>>>> -igor
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                 
>>>>>>>> This is the entire stacktrace that is shown:
>>>>>>>>
>>>>>>>> WicketMessage: Error calling method: public void
>>>>>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>>>>>> object:
>>>>>>>> User: Test
>>>>>>>>
>>>>>>>> Root cause:
>>>>>>>>
>>>>>>>> java.lang.IllegalArgumentException: argument type mismatch at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>>>>>>
>>>>>>>>
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>>>>>>>
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169) 
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938) 
>>>>>>>>
>>>>>>>> at 
>>>>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>>>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) 
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192) 
>>>>>>>>
>>>>>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>>>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>>>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>>>>>>
>>>>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) 
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) 
>>>>>>>>
>>>>>>>> at org.mortbay.jetty.Server.handle(Server.java:324) at
>>>>>>>>
>>>>>>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) 
>>>>>>>>
>>>>>>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
>>>>>>>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) 
>>>>>>>> at
>>>>>>>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) 
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) 
>>>>>>>>
>>>>>>>> at 
>>>>>>>> org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
>>>>>>>>
>>>>>>>> at java.lang.Thread.run(Thread.java:619)
>>>>>>>>
>>>>>>>> Complete stack:
>>>>>>>>
>>>>>>>> org.apache.wicket.WicketRuntimeException: Error calling method: 
>>>>>>>> public
>>>>>>>> void
>>>>>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>>>>>> object:
>>>>>>>> User: Test at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169) 
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938) 
>>>>>>>>
>>>>>>>> at 
>>>>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>>>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) 
>>>>>>>>
>>>>>>>> at
>>>>>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) 
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>>
>>>>>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192) 
>>>>>>>>
>>>>>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>>>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>>>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>>>>>>
>>>>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) 
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --------------------------------------------------------------------- 
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>               
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>
>>>>>>>  ------------------------------------------------------------------------ 
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> No virus found in this incoming message.
>>>>>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>>>>>> 270.12.53/2154 - Release Date: 06/04/09 05:53:00
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>             
>>>>>> --------------------------------------------------------------------- 
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>           
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>  ------------------------------------------------------------------------ 
>>>>>
>>>>>
>>>>>
>>>>> No virus found in this incoming message.
>>>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>>>> 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>>>>>
>>>>>
>>>>>         
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>>> 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>>>>
>>>>
>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>     
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>   
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 
>> 270.12.59/2165 - Release Date: 06/09/09 05:53:00
>>
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.339 / Virus Database: 270.12.59/2165 - Release Date: 06/09/09 05:53:00
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
I've created a quickstart and attached it to a jira: 
https://issues.apache.org/jira/browse/WICKET-2318
I hope I did everything right. Feel free to educate me if I didn't. And 
as ever, thank you so very much for all the help!

Regards,
Linda

Igor Vaynberg wrote:
> generate an archetype with maven, cmd line is here
>
> wicket.apache.org/quickstart
>
> after you are done
> mvn clean
> zip the dir
> attach to a jira
>
> -igor
>
> On Tue, Jun 9, 2009 at 1:40 AM, Linda van der
> Pal<lv...@heritageagenturen.nl> wrote:
>   
>> I've found where the problem is residing, but I'm still not quite sure what
>> the problem is. So I've used the quickstart to make a small project that
>> reproduces the bug. Can anyone tell me what the procedure is to make this
>> into an actual quickstart that I can pass around? I can make some guesses,
>> but I'd rather do it right the first time.
>>
>> Regards,
>> Linda
>>
>> Linda van der Pal wrote:
>>     
>>> Well it's unlikely to be a bug in Wicket (not that I was expecting one).
>>> When I tried to make a quickstart, the quickstart didn't show the error. It
>>> worked as I expected in the first place. So now I'm off to hunt for the bug
>>> in my original code.
>>>
>>> Thanks for all the help!
>>>
>>> Linda.
>>>
>>> Igor Vaynberg wrote:
>>>       
>>>> you can create a quickstart and attach it to a jira issue. its hard to
>>>> tell without having all the code.
>>>>
>>>> -igor
>>>>
>>>> On Thu, Jun 4, 2009 at 11:49 PM, Linda van der
>>>> Pal<lv...@heritageagenturen.nl> wrote:
>>>>
>>>>         
>>>>> That is very strange, as this is the code in the domain model:
>>>>>
>>>>>  public Set<User> getFriends() {
>>>>>      return friends;
>>>>>  }
>>>>>    public void setFriends(final Set<User> friends) {
>>>>>      this.friends = friends;
>>>>>  }
>>>>>
>>>>> So I don't see why it would recognize the getter, but not the setter.
>>>>>
>>>>> Linda
>>>>>
>>>>> Igor Vaynberg wrote:
>>>>>
>>>>>           
>>>>>> so looks like you are using a set as the model object but dont have a
>>>>>> setter that takes a set as an argument in your domain model.
>>>>>>
>>>>>> -igor
>>>>>>
>>>>>> On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
>>>>>> <lv...@heritageagenturen.nl> wrote:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Igor Vaynberg wrote:
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> need to see more of the stacktrace....
>>>>>>>>
>>>>>>>> -igor
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>> This is the entire stacktrace that is shown:
>>>>>>>
>>>>>>> WicketMessage: Error calling method: public void
>>>>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>>>>> object:
>>>>>>> User: Test
>>>>>>>
>>>>>>> Root cause:
>>>>>>>
>>>>>>> java.lang.IllegalArgumentException: argument type mismatch at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>>>>>
>>>>>>>
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>>>>>>> at
>>>>>>> org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>>>>>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876)
>>>>>>> at
>>>>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>>>>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>>>>>
>>>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>>>>>> at
>>>>>>>
>>>>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>>>>>> at
>>>>>>>
>>>>>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>>>>>> at
>>>>>>>
>>>>>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>>>>>>> at
>>>>>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>>>>>>> at
>>>>>>>
>>>>>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>>>>>>> at org.mortbay.jetty.Server.handle(Server.java:324) at
>>>>>>>
>>>>>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>>>>>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
>>>>>>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
>>>>>>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
>>>>>>>
>>>>>>>
>>>>>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>>>>>>> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>>> at java.lang.Thread.run(Thread.java:619)
>>>>>>>
>>>>>>> Complete stack:
>>>>>>>
>>>>>>> org.apache.wicket.WicketRuntimeException: Error calling method: public
>>>>>>> void
>>>>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>>>>> object:
>>>>>>> User: Test at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>>>>>>> at
>>>>>>> org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>>>>>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876)
>>>>>>> at
>>>>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>>>>>>> at
>>>>>>>
>>>>>>>
>>>>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>>>>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>>>>>
>>>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>  ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> No virus found in this incoming message.
>>>>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>>>>> 270.12.53/2154 - Release Date: 06/04/09 05:53:00
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>  ------------------------------------------------------------------------
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>>> 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>>>>
>>>>
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>> ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>> 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.339 / Virus Database: 270.12.59/2165 - Release Date: 06/09/09 05:53:00
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Igor Vaynberg <ig...@gmail.com>.
generate an archetype with maven, cmd line is here

wicket.apache.org/quickstart

after you are done
mvn clean
zip the dir
attach to a jira

-igor

On Tue, Jun 9, 2009 at 1:40 AM, Linda van der
Pal<lv...@heritageagenturen.nl> wrote:
> I've found where the problem is residing, but I'm still not quite sure what
> the problem is. So I've used the quickstart to make a small project that
> reproduces the bug. Can anyone tell me what the procedure is to make this
> into an actual quickstart that I can pass around? I can make some guesses,
> but I'd rather do it right the first time.
>
> Regards,
> Linda
>
> Linda van der Pal wrote:
>>
>> Well it's unlikely to be a bug in Wicket (not that I was expecting one).
>> When I tried to make a quickstart, the quickstart didn't show the error. It
>> worked as I expected in the first place. So now I'm off to hunt for the bug
>> in my original code.
>>
>> Thanks for all the help!
>>
>> Linda.
>>
>> Igor Vaynberg wrote:
>>>
>>> you can create a quickstart and attach it to a jira issue. its hard to
>>> tell without having all the code.
>>>
>>> -igor
>>>
>>> On Thu, Jun 4, 2009 at 11:49 PM, Linda van der
>>> Pal<lv...@heritageagenturen.nl> wrote:
>>>
>>>>
>>>> That is very strange, as this is the code in the domain model:
>>>>
>>>>  public Set<User> getFriends() {
>>>>      return friends;
>>>>  }
>>>>    public void setFriends(final Set<User> friends) {
>>>>      this.friends = friends;
>>>>  }
>>>>
>>>> So I don't see why it would recognize the getter, but not the setter.
>>>>
>>>> Linda
>>>>
>>>> Igor Vaynberg wrote:
>>>>
>>>>>
>>>>> so looks like you are using a set as the model object but dont have a
>>>>> setter that takes a set as an argument in your domain model.
>>>>>
>>>>> -igor
>>>>>
>>>>> On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
>>>>> <lv...@heritageagenturen.nl> wrote:
>>>>>
>>>>>
>>>>>>
>>>>>> Igor Vaynberg wrote:
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> need to see more of the stacktrace....
>>>>>>>
>>>>>>> -igor
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> This is the entire stacktrace that is shown:
>>>>>>
>>>>>> WicketMessage: Error calling method: public void
>>>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>>>> object:
>>>>>> User: Test
>>>>>>
>>>>>> Root cause:
>>>>>>
>>>>>> java.lang.IllegalArgumentException: argument type mismatch at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>>>>
>>>>>>
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>>>>>> at
>>>>>> org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>>>>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876)
>>>>>> at
>>>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>>>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>>>>
>>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>>>>> at
>>>>>>
>>>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>>>>> at
>>>>>>
>>>>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>>>>> at
>>>>>>
>>>>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>>>>>> at
>>>>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>>>>>> at
>>>>>>
>>>>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>>>>>> at org.mortbay.jetty.Server.handle(Server.java:324) at
>>>>>>
>>>>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>>>>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
>>>>>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
>>>>>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
>>>>>>
>>>>>>
>>>>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>>>>>> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
>>>>>>
>>>>>>
>>>>>> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>> at java.lang.Thread.run(Thread.java:619)
>>>>>>
>>>>>> Complete stack:
>>>>>>
>>>>>> org.apache.wicket.WicketRuntimeException: Error calling method: public
>>>>>> void
>>>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>>>> object:
>>>>>> User: Test at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>>>>>> at
>>>>>> org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>>>>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876)
>>>>>> at
>>>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>>>>>> at
>>>>>>
>>>>>>
>>>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>>>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>>>>
>>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>  ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> No virus found in this incoming message.
>>>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>>>> 270.12.53/2154 - Release Date: 06/04/09 05:53:00
>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>> 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>> 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
I've found where the problem is residing, but I'm still not quite sure 
what the problem is. So I've used the quickstart to make a small project 
that reproduces the bug. Can anyone tell me what the procedure is to 
make this into an actual quickstart that I can pass around? I can make 
some guesses, but I'd rather do it right the first time.

Regards,
Linda

Linda van der Pal wrote:
> Well it's unlikely to be a bug in Wicket (not that I was expecting 
> one). When I tried to make a quickstart, the quickstart didn't show 
> the error. It worked as I expected in the first place. So now I'm off 
> to hunt for the bug in my original code.
>
> Thanks for all the help!
>
> Linda.
>
> Igor Vaynberg wrote:
>> you can create a quickstart and attach it to a jira issue. its hard to
>> tell without having all the code.
>>
>> -igor
>>
>> On Thu, Jun 4, 2009 at 11:49 PM, Linda van der
>> Pal<lv...@heritageagenturen.nl> wrote:
>>  
>>> That is very strange, as this is the code in the domain model:
>>>
>>>   public Set<User> getFriends() {
>>>       return friends;
>>>   }
>>>     public void setFriends(final Set<User> friends) {
>>>       this.friends = friends;
>>>   }
>>>
>>> So I don't see why it would recognize the getter, but not the setter.
>>>
>>> Linda
>>>
>>> Igor Vaynberg wrote:
>>>    
>>>> so looks like you are using a set as the model object but dont have a
>>>> setter that takes a set as an argument in your domain model.
>>>>
>>>> -igor
>>>>
>>>> On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
>>>> <lv...@heritageagenturen.nl> wrote:
>>>>
>>>>      
>>>>> Igor Vaynberg wrote:
>>>>>
>>>>>        
>>>>>> need to see more of the stacktrace....
>>>>>>
>>>>>> -igor
>>>>>>
>>>>>>
>>>>>>           
>>>>> This is the entire stacktrace that is shown:
>>>>>
>>>>> WicketMessage: Error calling method: public void
>>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>>> object:
>>>>> User: Test
>>>>>
>>>>> Root cause:
>>>>>
>>>>> java.lang.IllegalArgumentException: argument type mismatch at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>
>>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169) 
>>>>>
>>>>> at 
>>>>> org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938) 
>>>>>
>>>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) 
>>>>> at
>>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>
>>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192) 
>>>>>
>>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288) 
>>>>>
>>>>> at
>>>>>
>>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) 
>>>>>
>>>>> at
>>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 
>>>>>
>>>>> at
>>>>>
>>>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) 
>>>>>
>>>>> at
>>>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) 
>>>>>
>>>>> at
>>>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) 
>>>>>
>>>>> at 
>>>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>>>>> at
>>>>>
>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59) 
>>>>>
>>>>> at
>>>>>
>>>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) 
>>>>>
>>>>> at
>>>>>
>>>>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) 
>>>>>
>>>>> at
>>>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) 
>>>>>
>>>>> at org.mortbay.jetty.Server.handle(Server.java:324) at
>>>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) 
>>>>>
>>>>> at
>>>>>
>>>>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) 
>>>>>
>>>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
>>>>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
>>>>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
>>>>>
>>>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) 
>>>>>
>>>>> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
>>>>>
>>>>> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344) 
>>>>>
>>>>> at
>>>>>
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
>>>>>
>>>>> at
>>>>>
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
>>>>>
>>>>> at java.lang.Thread.run(Thread.java:619)
>>>>>
>>>>> Complete stack:
>>>>>
>>>>> org.apache.wicket.WicketRuntimeException: Error calling method: 
>>>>> public
>>>>> void
>>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>>> object:
>>>>> User: Test at
>>>>>
>>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169) 
>>>>>
>>>>> at 
>>>>> org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938) 
>>>>>
>>>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) 
>>>>> at
>>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>>
>>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) 
>>>>>
>>>>> at
>>>>>
>>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192) 
>>>>>
>>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) 
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>>>         
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>  ------------------------------------------------------------------------ 
>>>>
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>>> 270.12.53/2154 - Release Date: 06/04/09 05:53:00
>>>>
>>>>
>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>     
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>   
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 
>> 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>>
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.339 / Virus Database: 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
Well it's unlikely to be a bug in Wicket (not that I was expecting one). 
When I tried to make a quickstart, the quickstart didn't show the error. 
It worked as I expected in the first place. So now I'm off to hunt for 
the bug in my original code.

Thanks for all the help!

Linda.

Igor Vaynberg wrote:
> you can create a quickstart and attach it to a jira issue. its hard to
> tell without having all the code.
>
> -igor
>
> On Thu, Jun 4, 2009 at 11:49 PM, Linda van der
> Pal<lv...@heritageagenturen.nl> wrote:
>   
>> That is very strange, as this is the code in the domain model:
>>
>>   public Set<User> getFriends() {
>>       return friends;
>>   }
>>     public void setFriends(final Set<User> friends) {
>>       this.friends = friends;
>>   }
>>
>> So I don't see why it would recognize the getter, but not the setter.
>>
>> Linda
>>
>> Igor Vaynberg wrote:
>>     
>>> so looks like you are using a set as the model object but dont have a
>>> setter that takes a set as an argument in your domain model.
>>>
>>> -igor
>>>
>>> On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
>>> <lv...@heritageagenturen.nl> wrote:
>>>
>>>       
>>>> Igor Vaynberg wrote:
>>>>
>>>>         
>>>>> need to see more of the stacktrace....
>>>>>
>>>>> -igor
>>>>>
>>>>>
>>>>>           
>>>> This is the entire stacktrace that is shown:
>>>>
>>>> WicketMessage: Error calling method: public void
>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>> object:
>>>> User: Test
>>>>
>>>> Root cause:
>>>>
>>>> java.lang.IllegalArgumentException: argument type mismatch at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> at java.lang.reflect.Method.invoke(Method.java:597) at
>>>>
>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100)
>>>> at
>>>>
>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>>>> at
>>>>
>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>>>> at
>>>>
>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>>>> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>
>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>>>> at
>>>>
>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>>> at
>>>>
>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>>>> at
>>>>
>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>>> at
>>>>
>>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
>>>> at
>>>>
>>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>>> at
>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>>>> at
>>>>
>>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>>> at
>>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>>> at
>>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>>>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>>>> at
>>>>
>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
>>>> at
>>>>
>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
>>>> at
>>>>
>>>> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>>>> at
>>>>
>>>> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>>>> at
>>>>
>>>> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
>>>> at
>>>>
>>>> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>>>> at
>>>>
>>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
>>>> at
>>>>
>>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>>>> at
>>>>
>>>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>>>> at
>>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>>>> at org.mortbay.jetty.Server.handle(Server.java:324) at
>>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>>>> at
>>>>
>>>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
>>>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
>>>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
>>>>
>>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>>>> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
>>>>
>>>> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
>>>> at
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>> at
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>> at java.lang.Thread.run(Thread.java:619)
>>>>
>>>> Complete stack:
>>>>
>>>> org.apache.wicket.WicketRuntimeException: Error calling method: public
>>>> void
>>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>>> object:
>>>> User: Test at
>>>>
>>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109)
>>>> at
>>>>
>>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>>>> at
>>>>
>>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>>>> at
>>>>
>>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>>>> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>>>> at
>>>>
>>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
>>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>>
>>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>>>> at
>>>>
>>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>>> at
>>>>
>>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>>>> at
>>>>
>>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>>> 270.12.53/2154 - Release Date: 06/04/09 05:53:00
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.339 / Virus Database: 270.12.56/2161 - Release Date: 06/07/09 17:53:00
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Igor Vaynberg <ig...@gmail.com>.
you can create a quickstart and attach it to a jira issue. its hard to
tell without having all the code.

-igor

On Thu, Jun 4, 2009 at 11:49 PM, Linda van der
Pal<lv...@heritageagenturen.nl> wrote:
> That is very strange, as this is the code in the domain model:
>
>   public Set<User> getFriends() {
>       return friends;
>   }
>     public void setFriends(final Set<User> friends) {
>       this.friends = friends;
>   }
>
> So I don't see why it would recognize the getter, but not the setter.
>
> Linda
>
> Igor Vaynberg wrote:
>>
>> so looks like you are using a set as the model object but dont have a
>> setter that takes a set as an argument in your domain model.
>>
>> -igor
>>
>> On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
>> <lv...@heritageagenturen.nl> wrote:
>>
>>>
>>> Igor Vaynberg wrote:
>>>
>>>>
>>>> need to see more of the stacktrace....
>>>>
>>>> -igor
>>>>
>>>>
>>>
>>> This is the entire stacktrace that is shown:
>>>
>>> WicketMessage: Error calling method: public void
>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>> object:
>>> User: Test
>>>
>>> Root cause:
>>>
>>> java.lang.IllegalArgumentException: argument type mismatch at
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at java.lang.reflect.Method.invoke(Method.java:597) at
>>>
>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100)
>>> at
>>>
>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>>> at
>>>
>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>>> at
>>>
>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>>> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>
>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>>> at
>>>
>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>> at
>>>
>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>>> at
>>>
>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>> at
>>>
>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
>>> at
>>>
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>> at
>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>>> at
>>>
>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>> at
>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>> at
>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>>> at
>>>
>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
>>> at
>>>
>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
>>> at
>>>
>>> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>>> at
>>>
>>> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>>> at
>>>
>>> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
>>> at
>>>
>>> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>>> at
>>>
>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
>>> at
>>>
>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>>> at
>>>
>>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>>> at
>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>>> at org.mortbay.jetty.Server.handle(Server.java:324) at
>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>>> at
>>>
>>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
>>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
>>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
>>>
>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>>> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
>>>
>>> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
>>> at
>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> at
>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>> Complete stack:
>>>
>>> org.apache.wicket.WicketRuntimeException: Error calling method: public
>>> void
>>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on
>>> object:
>>> User: Test at
>>>
>>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109)
>>> at
>>>
>>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>>> at
>>>
>>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>>> at
>>>
>>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>>> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>>> at
>>>
>>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
>>> java.lang.reflect.Method.invoke(Method.java:597) at
>>>
>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>>> at
>>>
>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>> at
>>>
>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>>> at
>>>
>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
>> 270.12.53/2154 - Release Date: 06/04/09 05:53:00
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
That is very strange, as this is the code in the domain model:

    public Set<User> getFriends() {
        return friends;
    }
   
    public void setFriends(final Set<User> friends) {
        this.friends = friends;
    }

So I don't see why it would recognize the getter, but not the setter.

Linda

Igor Vaynberg wrote:
> so looks like you are using a set as the model object but dont have a
> setter that takes a set as an argument in your domain model.
>
> -igor
>
> On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
> <lv...@heritageagenturen.nl> wrote:
>   
>> Igor Vaynberg wrote:
>>     
>>> need to see more of the stacktrace....
>>>
>>> -igor
>>>
>>>       
>> This is the entire stacktrace that is shown:
>>
>> WicketMessage: Error calling method: public void
>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object:
>> User: Test
>>
>> Root cause:
>>
>> java.lang.IllegalArgumentException: argument type mismatch at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at java.lang.reflect.Method.invoke(Method.java:597) at
>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100)
>> at
>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>> at
>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>> at
>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) at
>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>> at
>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>> at
>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>> at
>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
>> java.lang.reflect.Method.invoke(Method.java:597) at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>> at
>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>> at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>> at
>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
>> at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>> at
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at
>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
>> at
>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
>> at
>> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>> at
>> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>> at
>> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
>> at
>> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>> at
>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
>> at
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>> at
>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>> at org.mortbay.jetty.Server.handle(Server.java:324) at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
>> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:619)
>>
>> Complete stack:
>>
>> org.apache.wicket.WicketRuntimeException: Error calling method: public void
>> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object:
>> User: Test at
>> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109)
>> at
>> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
>> at
>> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
>> at
>> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
>> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) at
>> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
>> at
>> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
>> at
>> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
>> at
>> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
>> at
>> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
>> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
>> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
>> java.lang.reflect.Method.invoke(Method.java:597) at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
>> at
>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>> at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>> at
>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
>> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.339 / Virus Database: 270.12.53/2154 - Release Date: 06/04/09 05:53:00
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Igor Vaynberg <ig...@gmail.com>.
so looks like you are using a set as the model object but dont have a
setter that takes a set as an argument in your domain model.

-igor

On Wed, Jun 3, 2009 at 11:57 PM, Linda van der Pal
<lv...@heritageagenturen.nl> wrote:
> Igor Vaynberg wrote:
>>
>> need to see more of the stacktrace....
>>
>> -igor
>>
>
> This is the entire stacktrace that is shown:
>
> WicketMessage: Error calling method: public void
> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object:
> User: Test
>
> Root cause:
>
> java.lang.IllegalArgumentException: argument type mismatch at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100)
> at
> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
> at
> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
> at
> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) at
> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
> at
> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
> at
> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
> at
> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
> at
> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
> at
> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
> at
> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
> java.lang.reflect.Method.invoke(Method.java:597) at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
> at
> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
> at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
> at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
> at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
> at
> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
> at
> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
> at
> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
> at
> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
> at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
> at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:324) at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at
> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Error calling method: public void
> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object:
> User: Test at
> org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109)
> at
> org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
> at
> org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
> at
> org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
> at org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) at
> org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344)
> at
> org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223)
> at
> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488)
> at
> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467)
> at
> org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439)
> at
> org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970)
> at
> org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938)
> at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at
> org.apache.wicket.markup.html.form.Form.process(Form.java:908) at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) at
> java.lang.reflect.Method.invoke(Method.java:597) at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
> at
> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at
> org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
Igor Vaynberg wrote:
> need to see more of the stacktrace....
>
> -igor
>   
This is the entire stacktrace that is shown:

WicketMessage: Error calling method: public void 
nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on 
object: User: Test

Root cause:

java.lang.IllegalArgumentException: argument type mismatch at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at java.lang.reflect.Method.invoke(Method.java:597) at 
org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1100) 
at 
org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582) 
at 
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) 
at 
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169) 
at 
org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) 
at 
org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344) 
at 
org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223) 
at 
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488) 
at 
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467) 
at 
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439) 
at 
org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970) 
at 
org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938) 
at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at 
org.apache.wicket.markup.html.form.Form.process(Form.java:908) at 
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) 
at java.lang.reflect.Method.invoke(Method.java:597) at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) 
at 
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) 
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) 
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192) 
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at 
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at 
org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455) 
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288) 
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) 
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) 
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) 
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) 
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) 
at 
org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40) 
at 
org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65) 
at 
org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46) 
at 
org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58) 
at 
org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48) 
at 
org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47) 
at 
org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59) 
at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) 
at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) 
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) 
at org.mortbay.jetty.Server.handle(Server.java:324) at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) 
at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) 
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at 
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at 
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) 
at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) at 
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
at java.lang.Thread.run(Thread.java:619)

Complete stack:

org.apache.wicket.WicketRuntimeException: Error calling method: public 
void nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on 
object: User: Test at 
org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1109) 
at 
org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582) 
at 
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136) 
at 
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169) 
at 
org.apache.wicket.Component.setDefaultModelObject(Component.java:3021) 
at 
org.apache.wicket.markup.html.form.ListMultipleChoice.updateModel(ListMultipleChoice.java:344) 
at 
org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:223) 
at 
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:488) 
at 
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:467) 
at 
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:439) 
at 
org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1970) 
at 
org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1938) 
at org.apache.wicket.markup.html.form.Form.process(Form.java:960) at 
org.apache.wicket.markup.html.form.Form.process(Form.java:908) at 
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) 
at java.lang.reflect.Method.invoke(Method.java:597) at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) 
at 
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) 
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) 
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192) 
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271) at 
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370) at 
org.apache.wicket.RequestCycle.request(RequestCycle.java:501) at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ListMultipleChoice and HashSet

Posted by Igor Vaynberg <ig...@gmail.com>.
need to see more of the stacktrace....

-igor

On Wed, Jun 3, 2009 at 6:45 AM, Linda van der Pal
<lv...@heritageagenturen.nl> wrote:
> I tried setting the model of a ListMultipleChoice to a HashSet (by using a
> CompoundPropertyModel and the id of the HashSet). The list of possible
> choices was an ArrayList. It shows my selected choices nicely. But I'm
> getting an error when I want to save the data. So I'm guessing the LMC
> doens't like cooperating with a HashSet, but then why does it allow the
> HashSet to determine which values in the list to select? Or am I doing
> something else wrong?
>
> Here's the top of the stacktrace:
> WicketMessage: Error calling method: public void
> nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object:
> User: Test
> Root cause:
> java.lang.IllegalArgumentException: argument type mismatch
>
> Regards,
> Linda
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org