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<[email protected]> 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<[email protected]> 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
>>>>> <[email protected]> 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: [email protected]
>>>>>> For additional commands, e-mail: [email protected]
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [email protected]
>>>>> For additional commands, e-mail: [email protected]
>>>>>
>>>>>  ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> 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: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>> ------------------------------------------------------------------------
>>
>>
>> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to