Coldspring and Coldfusion 2016

25 views
Skip to first unread message

Raquel Septiane

unread,
Aug 11, 2018, 9:17:53 PM8/11/18
to ColdSpring-Users
Hi there,

I want to upgrade my CF from 11 to 2016. I'm using coldspring, mach II and transfer orm. 
Once I installed the CF 2016. everytime I reload my application I got an error 

A timeout occurred while attempting to lock myapplication


in my application.cfc
<cflock name="applicationStartUp" timeout="300" type="Exclusive" throwontimeout="yes">
<cflog file="application-startup.log" application="no" type="information" text="#thisUUID# #now()# #cgi.remote_addr# - [APPSTART] - CFLOCK">
<cfif NOT Application.isLoaded>
<cflog file="application-startup.log" application="no" type="information" text="#thisUUID# #now()# #cgi.remote_addr# - [APPSTART] [ATTEMPT #this.reloadAttempts#] - Begin loading framework">

<cftry>
<cflog file="application-startup.log" application="no" type="information" text="#thisUUID# #Now()# Line 56 application.cfc">
<cfset LoadFramework()>
<cfset Application.isLoaded = true>

<cflog file="application-startup.log" application="no" type="information" text="#thisUUID# #now()# #cgi.remote_addr# - [APPSTART] [ATTEMPT #this.reloadAttempts#] - SUCCESSFULLY LOADED.. ">
<cfset this.reloadAttempts = 0>
<cfset ORMReload() >
<cflog file="application-startup.log" application="no" type="information" text="#thisUUID# #Now()# Line 80 application.cfc">
<cfcatch type="any">
<cflog file="application-startup.log" application="no" type="information" text="#thisUUID# #Now()# Line 82 Exception handler in application.cfc">
<cflog file="application-startup.log" application="no" type="information" text="#thisUUID# #now()# #cgi.remote_addr# - [APPSTART] [ATTEMPT #this.reloadAttempts#] - FAILED... RETRYING">
<cfset Application.isLoaded = false>
<cfset this.reloadAttempts = this.reloadAttempts + 1>
<cfif this.reloadAttempts LT 3>
<cfset onApplicationStart() />
</cfif>
<cfabort>
</cfcatch>
</cftry>
</cfif>
</cflock>

is there anyone that has a similar experience when upgrading CF 11 to CF 2016?
is there anyone can help to direct me to resolve this lock issue

any comment is appreciated. thank you.

Kind Regards,
Raquel Septiane

Nolan Erck

unread,
Aug 11, 2018, 9:27:23 PM8/11/18
to coldspri...@googlegroups.com
Hi Raquel,

Where in your Application.cfc file do you have this code? Is it in the onApplicationStart() function? If so you should be able to remove the lock tags and just load ColdSpring and ORM without them.

Or am I misunderstanding your issue?

-nolan


--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldspring-users+unsubscribe@googlegroups.com.
To post to this group, send email to coldspring-users@googlegroups.com.
Visit this group at https://groups.google.com/group/coldspring-users.
For more options, visit https://groups.google.com/d/optout.

Raquel Septiane

unread,
Aug 14, 2018, 8:10:50 PM8/14/18
to coldspri...@googlegroups.com
Hi Nolan,

Thank you for your reply. Yes, I have that cflock since I installed CF 11 and there is no issue with that. 
Sorry if I'm clear enough. So, the issue that I experience now, I installed CF 2016 and want to use the same application from CF11 but it throws the error every time I recall the function onApplicationStart(). I need to recall that to reload my codes (coldspring/transfer).

Please let me know if you need more information. Thank you. 

Kind Regards,
Raquel Septiane

To unsubscribe from this group and stop receiving emails from it, send an email to coldspring-use...@googlegroups.com.
To post to this group, send email to coldspri...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldspring-use...@googlegroups.com.
To post to this group, send email to coldspri...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages