coldfusion

coldFusion jvm Garbage Collection not

梦想的初衷 提交于 2019-12-23 12:54:59
问题 I have a cfc method that is looping through a list and making a series of SOAP calls via cfhttp. Then inserts the result into a database. The process itself works great the problem is that the java memory slowly fills up and eventually (depending on the number of elements in the records being returned) just stops working. There is no error or anything visible it just stops. If I look at the application log file via the coldfusion admin I see one or both of the following errors: GC overhead

Treat a # in ColdFusion output as just text and not a variable?

天大地大妈咪最大 提交于 2019-12-23 12:46:19
问题 I have made a JQuery list that I want to fill up with license plate numbers from a database, and to do so, I created a new cfm file and had it output what I wanted in html so I could just convert it later like this: setPlates.cfm <cfquery name="q_sample" datasource="cars_live"> SELECT LICENSE FROM veh_rec </cfquery> <cfoutput query="q_sample" > <li><a href='#Student'>#license#</a></li> </cfoutput> I call the get function to go into the setPlates.cfm file so I can add the license plates from

ColdFusion Converting Form Values into a Struct

半城伤御伤魂 提交于 2019-12-23 12:10:02
问题 I am building a form for my ColdFusion application using the naming format report[{field-name}] which when using RoR or CFWheels would give me a struct on the backend called report containing all of my field names. I am using FW/1 so all of my form fields get put into the RC scope rather than remaining in the Form scope. I know that it is possible to convert my form fields into a ColdFusion struct, because, as I said, CFWheels does it. I just have no idea how to make my application do it.

not picking up form values from checkbox

坚强是说给别人听的谎言 提交于 2019-12-23 11:58:45
问题 I have a form in Cold Fusion which contains a set of checkboxes. I am submitting this form to the page frag5.cfm. There is only one line of code in frag5.cfm. <cfoutput>values are #form.f1# </cfoutput> This line shows "values are " -- that is, the form values for the checkboxes, all with name f1 are not being picked up. Is this the wrong way to pick up these values? Could someone tell me the right thing to do? The original form is below: <form name = "fields" action = "frag5.cfm" method =

Submitting a 50 field form to multiple tables; regular POST, AJAX POST or other?

那年仲夏 提交于 2019-12-23 10:39:54
问题 Long time reader of Stackoverflow; first time poster, so hope you'll be gentle :) I have a form on a page consisting of about 50 fields of varying types (checkboxes/text/decimal/date etc. etc.). The values are pulled in from about 8 tables through one query roughly like so: SELECT * FROM p LEFT JOIN pd on p.id=pd.id LEFT JOIN pc on p.id=pc.id LEFT JOIN pie on p.id=pie.id etc. WHERE p.id = xxx I started the day thinking I'd just use a simple POST on the form, write a bunch of validation and

"How to fix `remove default alphabetical ordering of SerializeJSON() `

好久不见. 提交于 2019-12-23 09:33:23
问题 I'm trying to add the serialized data in a request to third party API which needs a specific order of the data to be maintained, but SerializeJSON orders in alphabetical order which breaks the format required by the third party API. Could someone help me to figure it out INPUT: <cfset data ={ "Booking": { "ActionCode":"DI", "AgencyNumber":"23", "Touroperator":"TVR", "BookingNumber":"323", }, "Payment": { "__type":"paymenttype", "PaymentProfile": { "Value": 4, "Manual": false }, "PaymentType":

What is the difference between using cfinvoke and createObject to run a component function?

帅比萌擦擦* 提交于 2019-12-23 09:26:53
问题 In my company's code, I've often seen component files used by initializing an object of that component and calling the methods off the object. However, it seems to me somewhat more straightforward to use the cfinvoke method, especially when only using one method from the component file. What are the differences between these 2 methods of calling a component function and what are the pros/cons of each? When should I use which? 回答1: cfinvoke can only be used in tags. createObject can be used in

ColdFusion: Multiple SQL statements in a query?

爱⌒轻易说出口 提交于 2019-12-23 08:54:48
问题 Apparently ColdFusion doesn't like multiple SQL statements within a single query... so what once was this: SET @sender_user_id = 3, @recipient_user_id = 5; INSERT INTO messages (message_type, sender_id, message_title, message_content) VALUES(3, @sender_user_id, 'One more thing...', 'I am testing this message'); SET @saved_message_id = LAST_INSERT_ID(); INSERT INTO message_recipient (message_id, user_id) VALUES(@saved_message_id, @recipient_user_id); INSERT INTO message_status (message_id,

Error consuming web service: An existing connection was forcibly closed

混江龙づ霸主 提交于 2019-12-23 08:26:38
问题 I have a Winforms appplication written in C# that consumes web services from a Windows 2008 IIS Coldfusion server. All the web service calls succeed but one, which fails about 50% of the time with the following error: System.InvalidOperationException was unhandled by user code Message=There is an error in XML document (1254, 7). with an inner exception of: InnerException: System.IO.IOException Message=Unable to read data from the transport connection: An existing connection was forcibly

Error consuming web service: An existing connection was forcibly closed

本小妞迷上赌 提交于 2019-12-23 08:26:28
问题 I have a Winforms appplication written in C# that consumes web services from a Windows 2008 IIS Coldfusion server. All the web service calls succeed but one, which fails about 50% of the time with the following error: System.InvalidOperationException was unhandled by user code Message=There is an error in XML document (1254, 7). with an inner exception of: InnerException: System.IO.IOException Message=Unable to read data from the transport connection: An existing connection was forcibly