You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2010/11/02 14:54:49 UTC

RadioGroup bug?

Hi!

Is there a resolution to this bug/issue listviews with
setreuseitems=true but with radiochoice have some problems:

* http://www.mail-archive.com/users@wicket.apache.org/msg06560.html
* http://apache-wicket.1842946.n4.nabble.com/RadioGroup-test-fails-td1912239.html
* http://stackoverflow.com/questions/4074028/in-wicket-how-can-i-create-radiogroups-that-are-not-defined-by-component-hierarc
* http://web.archiveorange.com/archive/v/yH01cVJ9vM4gdgpzRJVp
* http://www.techienuggets.com/Comments?tx=122883

For me it occurs in production:
1. First it works ok,
2. After a while user begins getting this error and has difficulty
getting rid of it

Could it have someting to do with session? Can it timeout before real session?

I would be happy to reproduce this but it is very hard to reproduce. I
see this on production logs and discussing with users they say that
"it stops working suddenly" so they don't know what they are doing
wrong.

Really nasty.

**
Martin

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


Re: RadioGroup bug?

Posted by Martin Grigorov <mg...@apache.org>.
This is fixed in later Wicket 1.4.x and 1.5.x

On Tue, Jan 25, 2011 at 9:34 AM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:

> Hi!
>
> I suspect also bug with Page class. Sometimes our page stalls when
> user stays long time on page.
>
> /** Used to create page-unique numbers */
>        private short autoIndex;
>
>
> **
> Martin
>
> 2010/11/15 Martin Makundi <ma...@koodaripalvelut.com>:
> > Hi!
> >
> > We have a suspect for the cause of this bug. The Radio is using a
> > SHORT counter which has maximum limit of approx 32000. Funny also it
> > checks if uuid is initialized, only from its sign. So when you have
> > enough radioactivity to reach much over 32000, you get negative values
> > and it stops working.
> >
> > So we propose fix:
> >
> > Radio:
> >  private Short uuid; // null = uninitialized
> >
> >  public String getValue()
> >  {
> >    if (uuid == null)
> >    {
> >      uuid = getPage().getAutoIndex();
> >    }
> >    return "radio" + uuid;
> >  }
> >
> >
> >
> > We will commit quickstart to reproduce bug and also patch to jira later
> today.
> >
> >
> > **
> > Martin
> >
> > 2010/11/2 Martin Makundi <ma...@koodaripalvelut.com>:
> >> Hi!
> >>
> >> Is there a resolution to this bug/issue listviews with
> >> setreuseitems=true but with radiochoice have some problems:
> >>
> >> * http://www.mail-archive.com/users@wicket.apache.org/msg06560.html
> >> *
> http://apache-wicket.1842946.n4.nabble.com/RadioGroup-test-fails-td1912239.html
> >> *
> http://stackoverflow.com/questions/4074028/in-wicket-how-can-i-create-radiogroups-that-are-not-defined-by-component-hierarc
> >> * http://web.archiveorange.com/archive/v/yH01cVJ9vM4gdgpzRJVp
> >> * http://www.techienuggets.com/Comments?tx=122883
> >>
> >> For me it occurs in production:
> >> 1. First it works ok,
> >> 2. After a while user begins getting this error and has difficulty
> >> getting rid of it
> >>
> >> Could it have someting to do with session? Can it timeout before real
> session?
> >>
> >> I would be happy to reproduce this but it is very hard to reproduce. I
> >> see this on production logs and discussing with users they say that
> >> "it stops working suddenly" so they don't know what they are doing
> >> wrong.
> >>
> >> Really nasty.
> >>
> >> **
> >> Martin
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: RadioGroup bug?

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

I suspect also bug with Page class. Sometimes our page stalls when
user stays long time on page.

/** Used to create page-unique numbers */
	private short autoIndex;


**
Martin

2010/11/15 Martin Makundi <ma...@koodaripalvelut.com>:
> Hi!
>
> We have a suspect for the cause of this bug. The Radio is using a
> SHORT counter which has maximum limit of approx 32000. Funny also it
> checks if uuid is initialized, only from its sign. So when you have
> enough radioactivity to reach much over 32000, you get negative values
> and it stops working.
>
> So we propose fix:
>
> Radio:
>  private Short uuid; // null = uninitialized
>
>  public String getValue()
>  {
>    if (uuid == null)
>    {
>      uuid = getPage().getAutoIndex();
>    }
>    return "radio" + uuid;
>  }
>
>
>
> We will commit quickstart to reproduce bug and also patch to jira later today.
>
>
> **
> Martin
>
> 2010/11/2 Martin Makundi <ma...@koodaripalvelut.com>:
>> Hi!
>>
>> Is there a resolution to this bug/issue listviews with
>> setreuseitems=true but with radiochoice have some problems:
>>
>> * http://www.mail-archive.com/users@wicket.apache.org/msg06560.html
>> * http://apache-wicket.1842946.n4.nabble.com/RadioGroup-test-fails-td1912239.html
>> * http://stackoverflow.com/questions/4074028/in-wicket-how-can-i-create-radiogroups-that-are-not-defined-by-component-hierarc
>> * http://web.archiveorange.com/archive/v/yH01cVJ9vM4gdgpzRJVp
>> * http://www.techienuggets.com/Comments?tx=122883
>>
>> For me it occurs in production:
>> 1. First it works ok,
>> 2. After a while user begins getting this error and has difficulty
>> getting rid of it
>>
>> Could it have someting to do with session? Can it timeout before real session?
>>
>> I would be happy to reproduce this but it is very hard to reproduce. I
>> see this on production logs and discussing with users they say that
>> "it stops working suddenly" so they don't know what they are doing
>> wrong.
>>
>> Really nasty.
>>
>> **
>> Martin
>>
>

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


Re: RadioGroup bug?

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

We have a suspect for the cause of this bug. The Radio is using a
SHORT counter which has maximum limit of approx 32000. Funny also it
checks if uuid is initialized, only from its sign. So when you have
enough radioactivity to reach much over 32000, you get negative values
and it stops working.

So we propose fix:

Radio:
  private Short uuid; // null = uninitialized

  public String getValue()
  {
    if (uuid == null)
    {
      uuid = getPage().getAutoIndex();
    }
    return "radio" + uuid;
  }



We will commit quickstart to reproduce bug and also patch to jira later today.


**
Martin

2010/11/2 Martin Makundi <ma...@koodaripalvelut.com>:
> Hi!
>
> Is there a resolution to this bug/issue listviews with
> setreuseitems=true but with radiochoice have some problems:
>
> * http://www.mail-archive.com/users@wicket.apache.org/msg06560.html
> * http://apache-wicket.1842946.n4.nabble.com/RadioGroup-test-fails-td1912239.html
> * http://stackoverflow.com/questions/4074028/in-wicket-how-can-i-create-radiogroups-that-are-not-defined-by-component-hierarc
> * http://web.archiveorange.com/archive/v/yH01cVJ9vM4gdgpzRJVp
> * http://www.techienuggets.com/Comments?tx=122883
>
> For me it occurs in production:
> 1. First it works ok,
> 2. After a while user begins getting this error and has difficulty
> getting rid of it
>
> Could it have someting to do with session? Can it timeout before real session?
>
> I would be happy to reproduce this but it is very hard to reproduce. I
> see this on production logs and discussing with users they say that
> "it stops working suddenly" so they don't know what they are doing
> wrong.
>
> Really nasty.
>
> **
> Martin
>

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