You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by pradeepchy <pr...@gmail.com> on 2012/04/23 16:20:06 UTC

problem while submitting the form

Dear users-

I am getting this exception sometime while clicking a submit button on a
page from the application, this problem is intermittent in nature and do not
replicated very often. I am not able to figure out the actual problem yet,
The stacktrace of the application log are below :

ERROR [2012-03-28 11:48:36,273] essor3159 (            Registry:127 ) - A
JSONArray text must start with '[' at character 1 of submit_2
ERROR [2012-03-28 11:48:36,274] essor3159 (            Registry:128 ) -
Operations trace:
ERROR [2012-03-28 11:48:36,274] essor3159 (            Registry:137 ) - [ 1]
Triggering event 'action' on RequestUsageReports:usagereportform
ERROR [2012-03-28 11:48:36,275] essor3159 (RequestExceptionHandler:63  ) -
Processing of request failed with uncaught exception: A JSONArray text must
start wit                                                                                                                              
h '[' at character 1 of submit_2
org.apache.tapestry5.ioc.internal.OperationException: A JSONArray text must
start with '[' at character 1 of submit_2 [at
classpath:com/proquest/apps/lad/pages/                                                                                                                              
RequestUsageReports.tml, line 11]
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
        at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1047)
        at
org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:81)
        at
org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
        at $ComponentEventRequestHandler_e08b248d7ea71.handle(Unknown
Source)
        at
org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
        at $ComponentEventRequestHandler_e08b248d7ea71.handle(Unknown
Source)
        at
org.apache.tapestry5.upload.internal.services.UploadExceptionFilter.handle(UploadExceptionFilter.java:75)
        at $ComponentEventRequestHandler_e08b248d7ea71.handle(Unknown
Source)
        at
org.apache.tapestry5.services.TapestryModule$40.handle(TapestryModule.java:2454)
        at $ComponentEventRequestHandler_e08b248d7ea71.handle(Unknown
Source)
        at $ComponentEventRequestHandler_e08b248d7e898.handle(Unknown
Source)
        at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43)
        at
org.apache.tapestry5.services.InitializeActivePageName.handleComponentEvent(InitializeActivePageName.java:39)
        at
$ComponentRequestHandler_e08b248d7e89a.handleComponentEvent(Unknown Source)
        at
$ComponentRequestHandler_e08b248d7e828.handleComponentEvent(Unknown Source)
        at
com.proquest.apps.corelib.tapestry.dispatchers.RedirectComponentEventDispatcher.dispatch(RedirectComponentEventDispatcher.java:50)
        at $Dispatcher_e08b248d7e82d.dispatch(Unknown Source)
        at $Dispatcher_e08b248d7e826.dispatch(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
        at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
        at $RequestHandler_e08b248d7e827.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
        at $RequestHandler_e08b248d7e827.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
        at $RequestHandler_e08b248d7e827.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
        at $RequestHandler_e08b248d7e827.service(Unknown Source)
        at
com.proquest.apps.corelib.AppCoreLibModule$16.service(AppCoreLibModule.java:714)
        at $RequestFilter_e08b248d7e822.service(Unknown Source)
        at $RequestHandler_e08b248d7e827.service(Unknown Source)
        at $RequestHandler_e08b248d7e81b.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
        at
org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44)
        at $HttpServletRequestHandler_e08b248d7e81d.service(Unknown Source)
        at
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
        at $HttpServletRequestHandler_e08b248d7e81d.service(Unknown Source)
        at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
        at $HttpServletRequestFilter_e08b248d7e819.service(Unknown Source)
        at $HttpServletRequestHandler_e08b248d7e81d.service(Unknown Source)
        at
com.proquest.apps.corelib.AppCoreLibModule$17.service(AppCoreLibModule.java:852)
        at $HttpServletRequestFilter_e08b248d7e817.service(Unknown Source)
        at $HttpServletRequestHandler_e08b248d7e81d.service(Unknown Source)
        at
org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
        at $HttpServletRequestHandler_e08b248d7e81d.service(Unknown Source)
        at $HttpServletRequestHandler_e08b248d7e816.service(Unknown Source)
        at
org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.tapestry5.runtime.ComponentEventException: A JSONArray
text must start with '[' at character 1 of submit_2 [at
classpath:com/proquest/apps                                                                                                                              
/lad/pages/RequestUsageReports.tml, line 11]
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1048)
        at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        ... 64 more
Caused by: java.lang.RuntimeException: A JSONArray text must start with '['
at character 1 of submit_2
        at
org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384)
        at org.apache.tapestry5.json.JSONArray.parse(JSONArray.java:126)
        at org.apache.tapestry5.json.JSONArray.<init>(JSONArray.java:95)
        at
org.apache.tapestry5.corelib.components.Form.isFormCancelled(Form.java:590)
        at
org.apache.tapestry5.corelib.components.Form.advised$onAction_e08b248d7e8d2(Form.java:511)
        at
org.apache.tapestry5.corelib.components.Form$Invocation_onAction_e08b248d7e8d1.proceedToAdvisedMethod(Unknown
Source)
        at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
        at
org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:37)
        at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
        at org.apache.tapestry5.corelib.components.Form.onAction(Form.java)
        at
org.apache.tapestry5.corelib.components.Form.dispatchComponentEvent(Form.java)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:923)
        at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1106)
        ... 68 more

--
View this message in context: http://tapestry.1045711.n5.nabble.com/problem-while-submitting-the-form-tp5659515p5659515.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: problem while submitting the form

Posted by Lance Java <la...@googlemail.com>.
See the last comment on the issue

Since this is fixed by clearing the browser cache, I'm marking this as
resolved. If anyone feels strongly that Tapestry should have a better
mechanism for preventing old JavaScript from hanging around after an app is
upgraded to a newer Tapestry version (such as having the Tapestry version
be part of the asset URLs), please open a separate ticket with the proposal.

Re: problem while submitting the form

Posted by pradeepchy <pr...@gmail.com>.
Thanks Lance for taking a look into the problem.

Is clearing the browser cache, only solution to this problem ?



--
View this message in context: http://tapestry.1045711.n5.nabble.com/problem-while-submitting-the-form-tp5659515p5659673.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: problem while submitting the form

Posted by Lance Java <la...@googlemail.com>.
Try clearing your browser's cache

See the jira for TAP5-1777