Questions tagged [cfthread]
41 questions
2
votes
1 answer
Can I queue a cfthread with the same name in a multi user environment?
User A fires off a cfthread called 'thread1'. This thread takes 30 minutes to complete, and is a 'set & forget' thread. In other words, the thread does not join back with the main page request. The thread contains routines that are highly memory…

Charles Robertson
- 1,760
- 16
- 21
2
votes
0 answers
My first memory leak? ColdFusion
A while back I posted an issue relating to an issue I was having relating to CFThread exceeding GC Overhead limit (Note: someone marked a response as the answer but the issue has never been resolved).
After months and months of reading and taking…

CPB07
- 679
- 3
- 13
- 23
2
votes
1 answer
Can't fire script with CFThread, CFExecute and Plink
I am needing to run a remote script on our network to import files. I have set up plink and have it working as needed if I run it manually.
plink name@localserver -ssh -i myKey.ppk /home/here/scriptName.sh
We are writing the code in ColdFusion so…

MinerB
- 43
- 4
2
votes
1 answer
coldfusion (railo) and cfthread not working as I would expect
I've not used cfthread before but i'm using the following code and it's not working.

James Privett
- 1,079
- 3
- 15
- 23
2
votes
2 answers
coldfusion threads within loops losing scope
I'm currently struggling to get to grips with threads. I have a feeling it might be to do with my scopes; however, I can't see where I am going wrong with this.
My CFC contains the function below:
…

Jarede
- 3,310
- 4
- 44
- 68
2
votes
3 answers
Undefined error when using CFThread in Custom Tags in ColdFusion 10
NOTE: I have completely rewritten this question to take into account new information. Please reread if you've already been through this one.
I'm getting errors when using a cfthread from within a custom tag in ColdFusion 10. In the Application log,…

Dan Short
- 9,598
- 2
- 28
- 53
1
vote
0 answers
CFPDF merge error: Error casting an object of type com.adobe.internal.pdftoolkit.core.types.ASString cannot be cast to [B to an incompatible type
I am trying to merge a series of pdf files I have created with cfthread. I am using the following code:
select * from mytable
user6601292
1
vote
1 answer
CFThread Arguments vs Attributes
For years, I've been using the following code across multiple ColdFusion environments:
…

Gary Stanton
- 1,435
- 12
- 28
1
vote
1 answer
Check on coldfusion threads
I am trying to do the following, and it's not throwing an error, but I can't tell if it's doing anything either. Is there a way to check a thread status in Coldfusion?

Patrick Schomburg
- 2,494
- 1
- 18
- 46
1
vote
0 answers
How to delete dynamic cfm file only AFTER the code runs?
I'm using the in-memory file system to execute dynamic CFM files. How can I delete the temporary file only AFTER it is finished running? If I do it right after the cfinclude, it won't get deleted if the dynamic code has an abort or location tag…

Cabby
- 11
- 2
1
vote
1 answer
SQL deadlock in ColdFusion thread
I'm trying to figure out why I would be getting a deadlock error when executing a simple query inside a thread. I'm running CF10 with SQL Server 2008 R2, on a Windows 2012 server.
Once per day, I've got a process that caches a bunch of blog feeds in…

Redtopia
- 4,947
- 7
- 45
- 68
1
vote
1 answer
“JRun Master Request Limits” section missing from CFAdmin
I am getting the below error in my ColdFusion application:
*
11/21 11:23:43 Debug [scheduler-1] - Next mail spool run in 15
seconds. java.lang.RuntimeException: Request timed out waiting for an
available thread to run. You may want to consider…

Vasu
- 319
- 5
- 19
1
vote
1 answer
Why is CFTHREAD not running query and creating a file?
I have a function that should check the date of a file. If the file is greater than sixty seconds, a query should run and create a new file. The query takes sixty seconds to run.
This process works perfectly when it's not wrapped in a CFTHREAD.…

Evik James
- 10,335
- 18
- 71
- 122
1
vote
0 answers
Can CFThread, when wrapping over cfhttp, solves my Timeout error issue?
My application pulls lots of data from different applications according to the selected scopes. For e.g. Org level and SubOrg level scopes, this can cause to bring server down and everyday causes server crashing and timeouts.
So I wanted to know…

Vasu
- 319
- 5
- 19
1
vote
0 answers
Trying to implement CFTHREAD...unsuccessfully :(
I previously made the post cfhttp in cfloop limit? use cfthread regarding making multiple CFHTTP requests to which I implemented the solution of making a XMLHttpRequest in a JS function to call my CFHTTP request from another file.
I've amended this…

CPB07
- 679
- 3
- 13
- 23