[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

Java error when our url is accessed from .Net application

A company we are doing business with is attempting to access a url we have given them via http post request. When they  attempt to submit their data, the following error occurs. I believe this error is occuring when the server tries to process the request, before the page being called is even accessed.

      at coldfusion.filter.FormScope.parseQueryString(FormScope.java:267)
      at coldfusion.filter.FormScope.parsePostData(FormScope.java:239)
      at coldfusion.filter.FormScope.fillForm(FormScope.java:190)
      at coldfusion.filter.FusionContext.SymTab_initForRequest(FusionContext.java:345)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.CfmServlet.service(CfmServlet.java:105)
      at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • 4
  • 3
1 Solution

The page that is being called is accessed. Something there is not working but I can't see what it is.
Have you tried to leave some code out of the page to see if its works???


zsTangoAuthor Commented:
I have commented out all of the code on the page, and the error still occurs. Also the error does not occur if I try to access the page  through the url on a browser or if I make a CF page and hit it. It only occurs for this company who are a .Net shop.

Our test url is http://ptm.activeaero.com/app_ptm/ignoreapplicationcfm/integres_xml_feed.cfm

also no includes or application.cfm / onrequestend.cfm????

what kind of data is submitted?
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

zsTangoAuthor Commented:
also, if I hit our url from inside their system with no data, the page gets resolved, and it works.

There is an application.cfm

<cfapplication name="JETNET" sessionmanagement="Yes">
<cferror type="EXCEPTION" template="../../default_validation_error_page.cfm" exception="any">
<cferror type="REQUEST" template="../../default_validation_error_page.cfm">

also tried it with the two cferror tags commented out.
thats it for that.

there is no onRequestEnd.cfm

according to their information:
Post HTTP/1.1
Content-Type: application/x-www-form-urlencoded

this is their test form:

<form name="Form1" method="post" action="manualpost.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="dDwtMTQzNjg2OTQ1NDs7Ph6sBh+DMB6gWpd0tab6KyJ/dz1B" />
<input name="txtUrl" type="text" value="http://ptm.activeaero.com/app_ptm/ignoreapplicationcfm/integres_xml_feed.cfm" id="txtUrl" style="height:24px;width:520px;Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 16px" />
<span id="Label3" style="height:14px;width:116px;Z-INDEX: 107; LEFT: 11px; POSITION: absolute; TOP: 263px">Result of posting</span><textarea name="txtData" id="txtData" style="height:196px;width:582px;Z-INDEX: 102; LEFT: 9px; POSITION: absolute; TOP: 63px"></textarea><input type="submit" name="cmdPost" value="Post" id="cmdPost" style="height:21px;width:55px;Z-INDEX: 103; LEFT: 560px; POSITION: absolute; TOP: 16px" /><textarea name="txtResult" id="txtResult" style="height:120px;width:581px;Z-INDEX: 104; LEFT: 10px; POSITION: absolute; TOP: 282px">
<span id="Label2" style="height:5px;width:164px;Z-INDEX: 106; LEFT: 10px; POSITION: absolute; TOP: 44px">Data to post</span></form>
can you post your code here?

Do you always get an error when you submit data to that page?
zsTangoAuthor Commented:
On the page being requested, there is no code. Only the text "Success!!!!". Which is why I believe that the error is occuring before the page gets hit. Also there is nothing in the CF-Administrator logs. Checking the IIS logs shows the reuqest being made, but that's it.

The only time an error occurs (AFAIK), is when that specific company is making the request.

I have not been able to replicate it anywhere else.
zsTangoAuthor Commented:
Okay, I found the issue. If, in their test form I put in "?xml=" in the text field before I put the xml I want to send the page the request makes it to the intended page. If I leave it out it bombs consistently on CFMX servers of the same version as mine This issue doesnt occur on CF 5. I have not tested it on the latest updated version.

I am assuming that they must be dynamically creating their url string and forgot the first part. I have not been able to look at their code, so I dont know for sure.
PAQed with points refunded (500)

Community Support Moderator

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now