Hi list,
I am making a very uncomplicated cfinvoke call to a webservice to get some
information about a visitor. The code works absolutely perfectly in
milliseconds every time except for the very first time I run the code after a
server restart.
What is more puzzling is that even though I am wrapping the code with a
cftry/cfcatch and setting a timeout on the cfinvoke of 4 seconds but I can't
seem to get the code block to stop executing the webservice. On that initial
call the page will run until it reaches the coldfusion timeout which is 5 min.
More, if I interrupt the request, the next request starts over from scratch.
The page must complete to an error, specifically "The request has exceeded the
allowable time limit Tag" before the code will work. Once I get the error,
every other request works perfectly.
A sample of the code is below, and I am experiencing the error in the following
systems:
Server Product ColdFusion MX
Version 7,0,2,142559
Edition Enterprise
Server Product ColdFusion MX
Version 7,0,2,142559
Edition Developer
Here is a sample of the code. I do not see any of the expected abort outputs,
instead I will get the time limit error above.
<cftry>
<cfinvoke
webservice = "resourceserver"
method = "getProperties"
returnvariable = "resultStructure"
timeout = "4">
<cfinvokeargument name = "application" value="1"/>
<cfinvokeargument name = "username" value="#pUsername#"/>
</cfinvoke>
<cfdump var="#resultstructure#"><cfabort>
<cfcatch type="any">
display error inside catch <cfabort>
</cfcatch>
</cftry>
display error after cftry <cfabort>
Good Fortune,
Rick Walters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291269
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4