coldfusion

Getting a list of running requests in ColdFusion 9 standard edition

限于喜欢 提交于 2019-12-12 18:59:40
问题 Does anyone know if there is a way in Adobe ColdFusion 9 standard edition to get a list of the running requests? Maybe by invoking a method from one of the CF Java objects, like coldfusion.server.ServiceFactory??? I know in enterprise you can use the server monitor for this but as we are using standard edition we do not have the server monitor available. Thanks. 回答1: Thanks to the steer from @barnyr I have managed to get some code that will output a list of the currently running script names,

CFHTTP and IIS 7 Connection Failture (NOT SSL)

喜你入骨 提交于 2019-12-12 18:35:18
问题 I'm trying to do a very simple CFHTTP GET call to a local website running on IIS7, however it throws a 408 Connection Failure. I've done all the obvious things: The site is listed in the hosts file locally I've added the CFHTTPPARAM tags for IIS compression issues (deflate;q=0) Surfing to the URL in the browser works fine Doing a CFHTTP to google.com works fine, no local sites work at all. When searching on Google there are others that have had this, but no solutions. Anyone successfully got

Using Java libraries with ColdFusion 9

混江龙づ霸主 提交于 2019-12-12 18:31:49
问题 I am currently running a Java application which applies some natural language processing techniques to analyze data. This application includes a Java Class file and 1 library of .bin extension The application works fine on my development server but on the live server I get the error below: Object instantiation exception. An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: opennlp/tools/util/ObjectStream. Stack Trace java

ColdFusion CFPDFFORM does not populate PDF form fields

我的未来我决定 提交于 2019-12-12 18:30:40
问题 I created a quick PDF file with two form fields, first name and last name (or FirstName and LastName), with a Submit button and used the following code to try to populate these fields in a new PDF file: <cfpdfform action="populate" source="#variables.AbsPath#\test.pdf"> <cfpdfformparam name="FirstName" value="foo" /> <cfpdfformparam name="LastName" value="bar" /> </cfpdfform> However, I receive this error: The system has attempted to use an undefined value, which usually indicates a

Servlet filter for ColdFusion SOAP web service works for WSDL, but fails on SOAP requests

六月ゝ 毕业季﹏ 提交于 2019-12-12 18:26:21
问题 I'm trying to create a workaround for a terrible ColdFusion bug that results in my SOAP web service returning inconsistent results. What I want to do is replace "remote_api.tafkan" with "remote_api" in the output of any call to a CFC. I've created a Java servlet filter to do this, and it works when I call the WSDL, but it breaks when I make a SOAP call to one of the service's methods. Here's the code for my filter: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public

coldfusion add an id to certain classes

烈酒焚心 提交于 2019-12-12 18:14:28
问题 Currently I have a bunch of HTML stored in a variable that I am outputting to the page that looks a little like this: <p class="firstpara">some stuff</p> <p class="subhead">a heading</p> <p class="subsubhead">a subheading</p> <p>wording and such</p> <p class="subsubhead">another subheading</p> you get the idea. and is output like: <cfoutput> #request.oEntry.getHTMLStuff()# </cfoutput> Anyway, I need to find all classes of "subsubhead" and add in a id="x" where x corresponds to a database id i

coldfusion 9 dynamically call method

浪子不回头ぞ 提交于 2019-12-12 18:11:31
问题 I'm attempting to build a method call from strings that have been passed into an object that refer to another object. normally when calling an object we write the code like this: application.stObj.oNewsBusiness.getNews(argumentCollection=local.stArgs); However what I have done is created an array that contains the object name, the method name and the argument collection. <cfscript> local.stArgs = {}; local.stArgs.nNewsID = 19; local.stArgs.sAuthor = "John"; local.aData = []; local.aData[1] =

CSS bleed-through with cfinput type=“datefield”

北城余情 提交于 2019-12-12 17:48:15
问题 I have a form using multiple <cfinput type="datefield" ...> . They are positioned in such a way that the pop-up CSS calendar should appear over the field for others. However, the text fields for the other dates end up in front of the calendar. This is only an IE issue as Firefox and Safari work just fine. Is there a simple CSS hack or some other simple thing I can do to get the calendar to act as it should? Re-arranging the form is not very helpful. 回答1: Well, you have to encapsulate your

Returning value from Coldfusion CFC called with JQuery Ajax

安稳与你 提交于 2019-12-12 17:34:20
问题 I'm trying to call an CFC component with Ajax. But I need to pass the value returned by the CFC to my javascript routine. The done function creates the correct message when I display msg in an alert. But the ret variable is never populated with that value. I need the value returned to alter the javascript data flow. What am I doing wrong? var ret = $.ajax({ type: "post", url: "cfc/CFCSemae.cfc", data: { method: "verificaCadastro", returnformat: "plain", queryformat: "column", nro_cadastro:

Date format error in ColdFusion and mySQL

回眸只為那壹抹淺笑 提交于 2019-12-12 17:34:00
问题 I have set up a file that reads an xml file from one database and inserts that data into another. All works well except a strange error on the date format. The date format I need is yyyy-mm-dd . However, the original data is set up as format dd-mm-yyyy . My code reads and inserts all the data, but when it reads the date field, there is an issue when the day is under 12. It strangely inserts it the other way around. If a date is 11/10/2014 , it pulls it in as 2014/11/10 But, if a date is 13/10