coldfusion

Coldfusion Server Monitoring - Not Working

Hi there. I am trying to launch the Coldfusion Server Monitor on a Windows Server 2003 (Web Edition) machine running Coldfusion 8 (ver. 8,0,0,176276). It is running in stand-alone configuration. The pop-up window launches as http://www.mydomain.com/CFIDE/administrator/monitor/launch-monitor.cfm. However, I get a Flash dialogue box the...

openbd cfloop over a date

I'm trying to convert my sites from CF8 to openBD. I have a cfloop in a site that loops over a date range. In essence, I want to insert a new record into the db for every 2 weeks (step) of a date range (from and to) my loop looks like this... <cfloop from = "#form.startDate#" to = "#form.endDate#" index = "i" step =...

Coldfusion adding extra quotes when constructing database queries in strings

I am coding in ColdFusion, but trying to stay in cfscript, so I have a function that allows me to pass in a query to run it with <cfquery blah > #query# </cfquery> Somehow though, when i construct my queries with sql = "SELECT * FROM a WHERE b='#c#'" and pass it in, coldfusion has replaced the single quotes with 2 single quotes. ...

Cannot turn off persistent tracking cookies in CFMX 8

CFMX 8 Enterprise I have turned on the "Use J2EE session variables" setting under Memory Variables because security requirements state that persistent cookies cannot be used. I understood that turning this setting on will tell CF to only create a use a "JSESSIONID" session cookie. However, my server still appears to be creating and us...

Accessing a ColdFusion datasource from Java code

I have a servlet that I would like to run within ColdFusion MX 7. I would like to make use of an existing ColdFusion DSN as a javax.sql.DataSource, if possible. I thought something like coldfusion.server.ServiceFactory.getDataSourceService().getDatasource(dsname); would work, but unfortunately the servlet returns java.lang.NoClassD...

.NET CF Application and Out of Memory Exception

Hi, I am developing a .NET CF 3.5 network game. My issue is the app loads all the resources at first instance. However upon subsequent launches, the app gives me memory out of exception while loading resources especially sounds or big images. Please guide me ...

Data type support in ColdFusion querynew()

Does anyone know of a way to store values as NVARCHAR in a manually created query in ColdFusion using the querynew() function? I have multiple parts of a largish program relying on using a query as an input point to construct an excel worksheet (using Ben's POI) so it's somewhat important I can continue to use it as a query to avoid a r...

Special characters in CFMail

I'm trying to auto-generate a plain text email with a trademark symbol in it. I've tried everything I can think of but it's still not going through. <cfmail from="#x#" to="#y#" subject="test" charset="UTF-8"> ™ &trade; #Chr(153)# </cfmail> ...

Windows CPU notification for misbehaving Coldfusion application

I have a web application, written in Coldfusion, which periodically starts using 100% of the server's CPU and crashes the Coldfusion service. Since I have been unable to reproduce the problem myself, I'd like to find a utility which will notify me by email when the CPU usage begins to climb, so I can hop on the server, look at FusionRea...

Extend a CFC using a relative path

I want to extend a CFC in a different directory and I have a couple of options, but can't figure out how to do this: A) Use a dynamic mapping (this will have to be dynamic based on the site, e.g. for the live site it would be cfc.myPackage.MyCFC but on a dev site it would be myCfcRoot.myPackage.MyCFC) - I've tried putting expressions in...

calling a .jar from Coldfusion

I have a .jar file that i've placed in my D:\Coldfusion8\wwwroot\web-inf\lib\ directory. The file is abcdef.jar This is my first time doing this, not sure what the path should be in my createObject(). <cfset abcObj = createObject("java","com.abcdef") /> <cfset result = acbObj.doStuff("123456") /> But when I run it, I get Object In...

When should I use Scope Locking (Application, Server, etc...) vs named locking in ColdFusion?

When is it appropriate to use <cflock scope="application"> or it's ilk as opposed to <cflock name="foo">? Specifically, I'm interested in using CFLock to protect shared objects in the application, session, or server scopes, but I'm also interested in finding out about different uses of locking in ColdFusion. ...

Double click text selection in CFEclipse

In CFEclipse, I do a lot of double-clicking to select text. The standard behavior is to select all text within the nearest word boundaries. This is problematic when editing code where the original editor didn't use camel-case; for example, they wrote "myObject" as "my_object". Is there a way to change the double-click selection behavior...

Coldfusion locking question

Hello, I am wondering if I need to lock some code created in the application scope. If I create an object say userDAO.cfc in application scope so its available to all pages. Then if I have a method in that object say getUserInfo(userID) that would be called in different parts of the applications, do I need to lock this method? Thanks...

Extending application.cfc in a subdirectory

I have the following two files and would like the second to extend the first: wwwroot\site\application.cfc wwwroot\site\dir\application.cfc However, when I go to declare the component for the second file, I'm not sure what to put in the extends attribute. My problem is that several dev sites (with a shared SVN repository) are runnin...

Calling external gps app from VB.NET in CF 3.5 and returning back to VB.NET app

Hi All, I'm writing an app in VB.NET that allows the user to call Garmin Mobile XT to get a route. I've got a form that stays open behind Garmin and upon quitting Garmin, allows the user to go back. Sometimes, however, this form is automatically hidden by the WM OS. Any ideas how I can either get the form to stay put - or can I put a...

Accessing scripts inside IIS virtual directory

I have an IIS 6 server with a virtual directory pointing to a network share on another machine. That web server also serves ColdFusion scripts. When I access regular HTML pages that reside in the virtual directory, they are served properly. Anytime I try to get to a ColdFusion script, however, ColdFusion throws a "File not Found" error. ...

How to save file as UTF-8 format

We need to send email which contains Pound (currency) symbols in ColdFusion. Before sending email, we are dumping the data into a html file for preview. How to send a email with utf-8 encoding in ColdFusion How to save a file with utf-8 encoding in ColdFusion ...

How can I validate both for integers and in a range in a ColdFusion form?

In a CF8 form, I'm using a tag such as the following: <cfinput type = "Text" name = "Num" value = "0" validate = "range,integer" range = "0,1000" validateAt="onBlur,onSubmit" required = "yes" message = "Invalid Value" > When the field loses focus (onBlur), the input is validated for only the fi...

Specifying cfhttp referring IP address on shared server

I'm using CFHTTP to post data to my payment gateway (Protx). Protx requires that I whitelist the IP that will send this request. I am hosted on a shared server running Windows 2008. This morning, my hosting company assigned a new IP to this server for a customer who required an SSL certificate. Since then, my CFHTTP post appears to be...