We are seeing this error too in production, not sure how to solve it though, clearing the cache is only a solution in development.
Cheers, Peter ----- Original Message ----- From: "Muhammad Gelbana" <m.gelb...@gmail.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Tuesday, 10 January, 2012 9:11:23 PM Subject: Re: [5.3] JSONArray Error while submitting forms When I had this problem, clearing the cache didn't solve it. I had move all my classes\tml\resources manually from my old tapestry project to a new tapestry 5.3.1 skeleton project. On Tue, Jan 10, 2012 at 5:32 PM, Lenny Primak <lpri...@hope.nyc.ny.us>wrote: > I think clearing the cache is not the full answer to this problem. > There aught to be a better answer. Perhaps versioning the formdata element? > > > On Jan 10, 2012, at 10:13 AM, Gunnar Eketrapp <gunnar.eketr...@gmail.com> > wrote: > > > I have already answered to this. > > > > The clearing of the cache seems to have solved my problem as well. > > > > 2012/1/10 Muhammad Gelbana <m.gelb...@gmail.com> > > > >> Shouldn't Gunnar decide first if the issue should be closed or not ? > >> > >> On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner <bobhar...@gmail.com> > wrote: > >> > >>> Is anyone still seeing this problem after clearing the browser cache? > >>> If not, we'll be able to close TAP5-1777. > >>> > >>> On Mon, Jan 9, 2012 at 9:52 AM, Michael Gentry <mgen...@masslight.net> > >>> wrote: > >>>> Hi Josh (and others), > >>>> > >>>> I was using Chrome and then tried my app in Safari and it worked in > >>>> Safari. I then cleared my Chrome cache and it started working in > >>>> Chrome, too. I suspect some JS was being cached somewhere that was > >>>> making things incompatible. Hope that helps others, too. > >>>> > >>>> Thanks, > >>>> > >>>> mrg > >>>> > >>>> > >>>> On Mon, Jan 9, 2012 at 9:34 AM, Michael Gentry <mgen...@masslight.net > > > >>> wrote: > >>>>> Hi Josh, > >>>>> > >>>>> Better late than never? :-) > >>>>> > >>>>> Here is with 5.3.1, which still didn't help: > >>>>> > >>>>> > >>> > >> > t:formdata:H4sIAAAAAAAAAJ2RvUsDMRjG3x4ofkAHncTFoWO5q6IguggiKpRSPCe39C6eKbkkJu > >>>>> 1dw5OgrOj/4OTH DUwbH/i4vOgrlWKOU61E5JHt43z4/nefqEua4L1UsVEO > >>>>> > >>> > >> > Is4i1GGeY7eVCl90QHXKSyQTddhIrlIpE1Gg4kDpyiSLBFXWRKGpQZztuIDXlrGXPWElBBRr3hIUhFZWmlgE1xk9aMTOGSXFxv7Garr/PO1Cqw3IgBWrJGySmCCv1NukQjxMReT5qJqL9VCEs5QDnsmkBJgLT0d0668zVJGQy0jJRFnh3WuCzfOs436r4FBP1UOtVX8rfHwXQa7iF0gBsZDQD2PYMYJv9tN9/9n96DkA62bRQn8mjR0FT/E99g8KwWN > >>>>> > >>> > >> > j/7X29np36IBTh4WAMzt9Gg4isSlRTmMrjKc0BGhYgLFHdwtq09IrTTtMJsbkvy4ilIdy808uCL9fOuk83QIAAA== > >>>>> t:submit:submitNext > >>>>> jumpToPage: > >>>>> radiogroup:USM > >>>>> submitNext:Continue > > >>>>> Response Headersview source > >>>>> > >>>>> The t:form is defined as: > >>>>> > >>>>> <t:form id="wizardInputs" t:id="wizardInputs" autocomplete="off"> > >>>>> > >>>>> The t:submit is defined as: > >>>>> > >>>>> <t:submit id="continueButton" t:id="submitNext" style="width: 7em;" > >>>>> value="Continue >" tabindex="100" /> > >>>>> > >>>>> Thanks, > >>>>> > >>>>> mrg > >>>>> > >>>>> > >>>>> On Wed, Dec 7, 2011 at 5:31 PM, Josh Canfield < > joshcanfi...@gmail.com > >>> > >>> wrote: > >>>>>> A copy of the request would be helpful. It seems like in the first > >>>>>> report the "t:submit" parameter was coming back as a quoted string, > >>>>>> but later reports seem to have it fixed by checking if it's empty. > >>>>>> > >>>>>> On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp > >>>>>> <gunnar.eketr...@gmail.com> wrote: > >>>>>>> I have no idea! For sure there must be something special with your > >>> case, my > >>>>>>> case and Seamus case. > >>>>>>> > >>>>>>> Or perhaps we are the only one using form's :-) > >>>>>>> > >>>>>>> My browser is Chrome ... > >>>>>>> > >>>>>>> I have coded around the problem for now by using my own 5.3.1 as > >>> reported > >>>>>>> above. > >>>>>>> > >>>>>>> > >>>>>>> 2011/12/7 Muhammad Gelbana <m.gelb...@gmail.com> > >>>>>>> > >>>>>>>> But how come this issue isn't causing enough noise !!! We must > have > >>>>>>>> something common in our code that is very unique !!! > >>>>>>>> I can't figure out what could be unique in my login page !!..2 > >> fields > >>>>>>>> form...1 submit button...1 event handling method ! > >>>>>>>> > >>>>>>>> On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp > >>>>>>>> <gunnar.eketr...@gmail.com>wrote: > >>>>>>>> > >>>>>>>>> I just created an issue for this > >>>>>>>>> https://issues.apache.org/jira/browse/TAP5-1777 > >>>>>>>>> > >>>>>>>>> I would love to see a fix for this otherwise I must go into > >>> production > >>>>>>>> with > >>>>>>>>> my own brewed 5.3.1 > >>>>>>>>> or revert to 5.2.6. > >>>>>>>>> > >>>>>>>>> Thanks in advance, > >>>>>>>>> Gunnar Eketrapp > >>>>>>>>> > >>>>>>>>> 2011/12/7 Muhammad Gelbana <m.gelb...@gmail.com> > >>>>>>>>> > >>>>>>>>>> Facing the same issue !! I didn't expect that to happen and it > >>> will > >>>>>>>> take > >>>>>>>>>> sometime to revert back to 5.2.6 :( > >>>>>>>>>> > >>>>>>>>>> I cleared my browser's cache and made sure I'm using tapestry's > >>> latest > >>>>>>>>>> css\js...still having the same problem with a form that has > >>> nothing to > >>>>>>>> do > >>>>>>>>>> ajax ! > >>>>>>>>>> > >>>>>>>>>> On Wed, Dec 7, 2011 at 8:36 AM, Gunnar Eketrapp > >>>>>>>>>> <gunnar.eketr...@gmail.com>wrote: > >>>>>>>>>> > >>>>>>>>>>> if (raw != null && *!raw.isEmpty() &&* > >>>>>>>>>>> new *JSONArray(raw)*.getString(1).equals > >>>>>>>>>>> > >>>>>>>>>>> This seems to have solved the problem. > >>>>>>>>>>> > >>>>>>>>>>> I made this fix in *Form.java, Submit.java* and > >>> *LinkSubmit.java*. > >>>>>>>>> Built > >>>>>>>>>>> and installed my own 5.3.1 in my local maven repo. > >>>>>>>>>>> > >>>>>>>>>>> Rebuilt my project and now I can login and run the app again. > >>>>>>>>>>> > >>>>>>>>>>> It has been been very quiet in this thread ... > >>>>>>>>>>> > >>>>>>>>>>> Can anyone (that understands web development) give a comment > >>> ... > >>>>>>>> please > >>>>>>>>>> ... > >>>>>>>>>>> > >>>>>>>>>>> Thanks in advance, > >>>>>>>>>>> Gunnar Eketrapp > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> 2011/12/6 Gunnar Eketrapp <gunnar.eketr...@gmail.com> > >>>>>>>>>>> > >>>>>>>>>>>> A possible solution would be to make a code around in the > >>> method > >>>>>>>>>>>> isFormCancelled() in Form.java. > >>>>>>>>>>>> > >>>>>>>>>>>> /Gunnar > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> if (raw != null && > >>>>>>>>>>>> new *JSONArray(raw)* > >>>>>>>>>>>> .getString(1).equals(InternalConstants.CANCEL_NAME)) > >>>>>>>>>>>> { > >>>>>>>>>>>> return true; > >>>>>>>>>>>> } > >>>>>>>>>>>> ------------------------ > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> if (raw != null && *!raw.isEmpty() &&* > >>>>>>>>>>>> new *JSONArray(raw)* > >>>>>>>>>>>> .getString(1).equals(InternalConstants.CANCEL_NAME)) > >>>>>>>>>>>> { > >>>>>>>>>>>> return true; > >>>>>>>>>>>> } > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> 2011/12/6 Seamus <smino...@yahoo.com> > >>>>>>>>>>>> > >>>>>>>>>>>>> Anyone have a solution to this. I have a form which I dont > >>> believe > >>>>>>>>> is > >>>>>>>>>>>>> making > >>>>>>>>>>>>> use of any ajax (unless tapestry is and I dont know about > >>> it I am > >>>>>>>>>> using > >>>>>>>>>>>>> the > >>>>>>>>>>>>> current T5.3 release) and I get this error. When > >> inspecting > >>> my > >>>>>>>> page > >>>>>>>>> in > >>>>>>>>>>>>> chrome and looking at the resources I see prototype 1.7 > >> and > >>>>>>>>>>> scriptaculous > >>>>>>>>>>>>> 1.9. > >>>>>>>>>>>>> > >>>>>>>>>>>>> I dont see any other versions loaded for me to try and > >>> remove. > >>>>>>>>>>>>> > >>>>>>>>>>>>> -- > >>>>>>>>>>>>> View this message in context: > >>>>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> > >>>>>>>> > >>> > >> > http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html > >>>>>>>>>>>>> Sent from the Tapestry - User mailing list archive at > >>> Nabble.com. > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>> > >>> --------------------------------------------------------------------- > >>>>>>>>>>>>> To unsubscribe, e-mail: > >>> users-unsubscr...@tapestry.apache.org > >>>>>>>>>>>>> For additional commands, e-mail: > >>> users-h...@tapestry.apache.org > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> -- > >>>>>>>>>>>> [Hem: 08-715 59 57, Mobil: 070-991 86 42] > >>>>>>>>>>>> Allévägen 2A, 132 42 Saltsjö-Boo > >>>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> -- > >>>>>>>>>>> [Hem: 08-715 59 57, Mobil: 070-991 86 42] > >>>>>>>>>>> Allévägen 2A, 132 42 Saltsjö-Boo > >>>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> -- > >>>>>>>>>> *Regards,* > >>>>>>>>>> *Muhammad Gelbana > >>>>>>>>>> Java Developer* > >>>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> -- > >>>>>>>>> [Hem: 08-715 59 57, Mobil: 070-991 86 42] > >>>>>>>>> Allévägen 2A, 132 42 Saltsjö-Boo > >>>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> -- > >>>>>>>> *Regards,* > >>>>>>>> *Muhammad Gelbana > >>>>>>>> Java Developer* > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -- > >>>>>>> [Hem: 08-715 59 57, Mobil: 070-991 86 42] > >>>>>>> Allévägen 2A, 132 42 Saltsjö-Boo > >>>>>> > >>>>>> > --------------------------------------------------------------------- > >>>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >>>>>> For additional commands, e-mail: users-h...@tapestry.apache.org > >>>>>> > >>>> > >>>> --------------------------------------------------------------------- > >>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >>>> For additional commands, e-mail: users-h...@tapestry.apache.org > >>>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >>> For additional commands, e-mail: users-h...@tapestry.apache.org > >>> > >>> > >> > >> > >> -- > >> *Regards,* > >> *Muhammad Gelbana > >> Java Developer* > >> > > > > > > > > -- > > [Hem: 08-715 59 57, Mobil: 070-991 86 42] > > Allévägen 2A, 132 42 Saltsjö-Boo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- *Regards,* *Muhammad Gelbana Java Developer*