tracker issue : CF-3739102

select a category, or use search below
(searches all categories and all time range)
Title:

XMLSearch() is not thread safe

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 04/08/2014

Components: Core Runtime

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / CF10_Update14

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win All

Vote Count: 6

Problem Description:

XMLSearch() throws Expression exception Unable to process the result of the XMLSearch for '' under load if xml object is shared between thread via Application scope or variables scope of a CFC in Application scope.

Steps to Reproduce:
 1. Create XML object in a shared scope like APPLICATION. 

 2. Search the object with different XMLSearch() xpath expressions in 
multiple requests at the same time under significant load. 

Actual Result:

Type 	Expression
Message 	Unable to process the result of the XMLSearch for ''.
Detail 	ColdFusion is unable to process the result of the XPath search. You may have an undefined variable in the xpath expression.

Expected Result:

(no exception)

Any Workarounds:

Do not use XMLSearch on the same xml object by different request or thread.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3739102

External Customer Info:
External Company:  
External Customer Name: henrylearn2rock
External Customer Email:  
External Test Config: My Hardware and Environment details:



Win server 2012

Attachments:

Comments:

First reported in CF7: http://house-of-fusion.10909.n7.nabble.com/XMLSearch-not-thread-safe-td65967.html
Comment by External U.
12760 | April 08, 2014 05:05:22 PM GMT
We use XML files for application configuration and occasionally encounter this behavior under load. Fix, please.
Vote by External U.
12770 | April 08, 2014 09:37:11 PM GMT
See here for repro: http://cfmlblog.adamcameron.me/2014/04/ye-olde-xmlsearche-bugge.html -- Adam
Comment by External U.
12761 | April 10, 2014 10:56:49 AM GMT
Shoulda been fixed back in CFMX7. Should still be fixed now. -- Adam
Vote by External U.
12771 | April 10, 2014 10:57:12 AM GMT
I have a client who is experiencing significant issues with XMLSearch() under load after a migration to CF10. Please address.
Vote by External U.
12772 | April 15, 2014 07:19:20 AM GMT
This is directly affecting client business and I have spent several weeks attempting to isolate and work around this issue. The workaround for us seems to be reloading the XML before every XMLSearch(), which is clearly less than ideal when you have many concurrent users. The symptoms experienced are similar to the OPs report. Under single-user testing XMLSearch() works fine - under load it fails miserably.
Comment by External U.
12762 | April 15, 2014 07:23:41 AM GMT
I have spent untold weeks of my life unknowingly battling this issue as documented here: https://bugbase.adobe.com/index.cfm?event=bug&id=CF-3546959
Comment by External U.
12763 | July 11, 2014 04:58:02 PM GMT
I am bald due to battling this bug over the last 3 years: https://bugbase.adobe.com/index.cfm?event=bug&id=CF-3546959
Vote by External U.
12773 | July 11, 2014 04:58:28 PM GMT
I checked into this issues and a fix is targeted for CF10 Updater 14 which is targeted for August 2014.
Comment by External U.
12764 | July 22, 2014 07:27:34 AM GMT
mcollins323, how do you know either of those two things? (which fix it'll be in, and what the ETA for said fix is).
Comment by External U.
12765 | July 22, 2014 12:35:52 PM GMT
Adam - I am a ColdFusion Technical Account Manager. I talked to the Product team this morning about this issue for a TAM account.
Comment by External U.
12766 | July 22, 2014 12:42:20 PM GMT
OK, cool thanks. Pity they don't see fit to circulate this stuff to the rest of their community. But there's always "constraints" on comms, I guess.
Comment by External U.
12767 | July 22, 2014 12:44:26 PM GMT
@mcollins323 do you have a twitter account? It'd be great if you can tweet information like this with #coldfusion. :)
Comment by External U.
12768 | July 22, 2014 01:01:42 PM GMT
I do have a twitter. collinsmikej - not as active as I should be. I will think about #coldfusion when I get some good info. I was a little surprised that it was pending the next updater and it was not already reported. It would be nice to have a list of upcoming fixes as they are being completed.
Comment by External U.
12769 | July 22, 2014 01:15:09 PM GMT
I have to create work-around code or else one of my major sites starts throwing errors all of the time.
Vote by External U.
12774 | July 23, 2014 10:45:37 AM GMT
! noted this on Bug CF-3546959 as well. We are still seeing this under CF10 Update 14 and Java 1.7.0_67. It locks up a production instance a couple of times a day for us.
Vote by External U.
12775 | October 30, 2014 08:50:29 AM GMT