ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 17th, 2005, 01:43 PM
mlearn mlearn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 13 mlearn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 58 m 12 sec
Reputation Power: 0
Very odd Error... Need Help... related to a coldfusion cluster...

So, hopefully someone out there can help me, I have a very strange error that I can not track down...

Where I work, we have a development environment with a single Cold Fusion server (for this project they are still using Cold Fusion 5 and upgrading is not a possible solution). The code that I wrote works fine on here. We have a second environment, a test environment with a single Coldfusion 5 server. My code works in here fine… Now comes the problem, in the production environment, we have a load balanced cluster of three Coldfusion 5 servers.

The code does this:
-Use a query to retrieve a value from a database
-Set a variable called “code” to a specific string from the query
-Insert record in the database using query results
-Call another page with CFInclude

Until this point, everything is correct on all servers but the value of “CODE’ is no longer accurate, but only when the page is loaded on the cluster… the value of CODE is set using <cfset code = query…> and the value is used in another query on the included page, but the value comes out at 1 when it should be a 25 character string.

Any ideas???

-Matt

Reply With Quote
  #2  
Old May 17th, 2005, 02:50 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,681 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 22 m 41 sec
Reputation Power: 53
No idea...I can't see any reason why it being on a cluster would matter. Are these sets of queries inside a single cftransaction block?
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old May 17th, 2005, 03:05 PM
mlearn mlearn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 13 mlearn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 58 m 12 sec
Reputation Power: 0
Quote:
Originally Posted by kiteless
No idea...I can't see any reason why it being on a cluster would matter. Are these sets of queries inside a single cftransaction block?


Because none of the queries really depend on each other, they are not inside a cftransaction block... I usually do my error handling by checking for number of records returned and so on. The query that is having problems is just a SELECT statement with it's value coming from another SELECT statement, who's output is used successfully in an insert statement right above the CFINCLUDE statement.

If it would help, here is the code...
file 1:
Code:
<cfquery name="EmailInfo" datasource="DSN">
SELECT * FROM Application_Approvals 
WHERE Approval_Step_ID = #ID# AND
   Application_ID = #ID_2# AND Is_Active = 1
</cfquery>

<cfquery name="logging" datasource="DSN">
INSERT INTO AAPDS_History (...)
		VALUES (... 'Event Coordinator (#EmailInfo.Specific_Name#) had marked an approval (#approved#) for Application ID: #EmailInfo.Application_ID#'...)
</cfquery>
<cfset Applicant_ID_To_Send = EmailInfo.Application_ID>
<cfset code = EmailInfo.Approval_Hash>
<cfinclude template="#session.html_root#Applicants/send_approval_notification.cfm">

The bold sections are where I just took out some various parts that are not needed... The italics section is where the varible in question get set... Also, the CFINCLUDE does work correctly with the full path, we added the mappings, but the same problem was orccuring when we were using relative paths...

File 2:
Code:
... Start of query ....
WHERE AA.Approval_Hash = '#Code#' AND AA.Is_Active = 1
ORDER BY AAS.Step_Number
</cfquery>

Again, I cut out most of the query, but it is a standard select statement, and it works when not working from our production cluster. There is nothing above the query that checks or does anything with the CODE variable. In the code that works, CODE is equal to a 25 character string while in the cluster enviorment the value is 1

I hope someone can help me out... Thanks...
-Matt

Reply With Quote
  #4  
Old May 17th, 2005, 04:05 PM
mlearn mlearn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 13 mlearn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 58 m 12 sec
Reputation Power: 0
Solved...

Never mind... I have solved the problem, somehow when I recreated my database the last time in production one of my VARCHAR fields got converted to a NVARCHAR field, which Coldfusion does not like. This seemed to only have happened in my production database, thus the reason that my other enviornments were not affected...

Oh well....
Live and learn...

-Matt

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Very odd Error... Need Help... related to a coldfusion cluster...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT