[ https://issues.apache.org/jira/browse/TAP5-1777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13165961#comment-13165961 ]
Bjoern Keucher commented on TAP5-1777: -------------------------------------- For the sake of bringing this Issue a bit forward here the Mailing list thread for those who haven't found it yet: http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-td5011831.html > 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.eketr...@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