I am getting the following ColdFusion error when I try to do an asynchronous
POST from a form submit button using the Yahoo User Interface Connection
Manager:
05/10 15:54:43 warning Error while parsing POST data
java.lang.IllegalArgumentException
at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:149)
at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:252)
at jrun.servlet.JRunRequest.parsePostData(JRunRequest.java:381)
at jrun.servlet.JRunRequest.getParameters(JRunRequest.java:361)
at jrun.servlet.JRunRequest.getInputStream(JRunRequest.java:239)
at
javax.servlet.ServletRequestWrapper.getInputStream(ServletRequestWrapper.java:191)
at
coldfusion.filter.FusionContext.getRequestContent(FusionContext.java:602)
at coldfusion.filter.FormScope.fillForm(FormScope.java:198)
at
coldfusion.filter.FusionContext.SymTab_initForRequest(FusionContext.java:384)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:33)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
The request works successfully with the same markup and Javascript if I make
any one of the following changes:
1. Use type="button" rather than type="submit" on the submit button. This one
is understandable, since there is no potential submission to ColdFusion.
2. Copy the entire contents of the required YUI Javascript libraries into the
cfm, rather than loading them from .js files via <script> tags.
3. Use an asynchronous GET rather than a POST.
4. Use PHP instead of ColdFusion. The error occurs in both ColdFusion 6.1 and 7.
Does anyone have an explanation for items 2-4 and a solution (as opposed to a
workaround)?
Rebecca Younes
Cornell University
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277870
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4