You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Bob Harner (Commented) (JIRA)" <ji...@apache.org> on 2012/01/09 23:07:39 UTC

[jira] [Commented] (TAP5-1777) JSONArray Error while submitting forms

    [ https://issues.apache.org/jira/browse/TAP5-1777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182849#comment-13182849 ] 

Bob Harner commented on TAP5-1777:
----------------------------------

Upon further investigation, this bug appears to be caused by old JavaScript from Tapestry 5.2.x, left in the browser cache after upgrading to Tapestry 5.3.x. Clearing the browser cache (or pressing Control-F5 in Windows, or Command-Shift-R on a Mac) seems to resolve it in the cases that I and some others have seen.

If any one sees this bug after clearing or bypassing the browser cache, please comment. Otherwise we'll probably close this issue after updating the release documentation.
                
> JSONArray Error while submitting forms 
> ---------------------------------------
>
>                 Key: TAP5-1777
>                 URL: https://issues.apache.org/jira/browse/TAP5-1777
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3
>            Reporter: Gunnar Eketrapp
>
> There is a thread in Tapestry mailing list describing this issue.
> The bottom line is that there are users that experience stack traces when
> submitting forms after upgrading to T 5.3
> ----------------------------------------------------
> 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.
> ----------------------------------------------------------------------------------------------------------------------------------
> Copy of problem from Chrome
> Request URL:
> http://localhost:8080/index.utskicketlayout.loginform;jsessionid=1gg3akfavo976gp2becnahbhv
> Request Method:
> POST
> Status Code:
> 500 Internal Server Error
> Request Headersview source
> Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Charset:
> ISO-8859-1,utf-8;q=0.7,*;q=0.3
> Accept-Encoding:
> gzip,deflate,sdch
> Accept-Language:
> sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4
> Cache-Control:
> max-age=0
> Connection:
> keep-alive
> Content-Length:
> 596
> Content-Type:
> application/x-www-form-urlencoded
> Cookie:
> JSESSIONID=1gg3akfavo976gp2becnahbhv
> Host:
> localhost:8080
> Origin:
> http://localhost:8080
> Referer:
> http://localhost:8080/
> User-Agent:
> Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
> Form Dataview URL encoded
> t:formdata:
> H4sIAAAAAAAAAJWRvUoDQRSFrwuBSDrBQsSfoLYbBdNoYxCEQBBhsZbZ2Zt1zOzMOnPX3TSpfAkbn0Cs9AlS2PkOPoCNhZWFuyuRBUOI1Qzf3MM5Z 7DO9TSLWh2VYDZQUJ2IPgASbKhTsglzKgvUAYXu9ZAW5vQZTHjl gSi9GSGbZdrg1K4bs s h2/BwyTieFaNtDSuKd83Hjbfnly4GFHjS4VmS0PGUREiz1rtgNa0mmwpZHRqjwMIsJGhXbebN1/pvtzGiO1nqJHwlrhVbjx2C//3n/6gBkcdqEjem2MbM21SbYs9cwAiBY/CVziApNLV2D1elzUodC5W2OZrbhOoq1QkXWLePT3zJ33sfK89PtsQNOD pciny6GxTuxRJQYpSDYgklKj69VnpPznQT1qdHNBgKS2jK nWC gRUrrPUkcgfquofULl A8xRqk2TAgAA
> t:submit:
> textfield_0:
> gunnar.eketrapp@gmail.com
> password1: xxxxxxx
> pass_temp:
> Ditt lösenord
> Response Headersview source
> Content-Length:
> 19867
> Content-Type:
> text/html; charset=utf-8
> Server:
> Jetty(6.1.26)
> X-Tapestry-ErrorMessage:
> A%20JSONArray%20text%20must%20start%20with%20%27%5B%27%20at%20character%200%20of%20

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira