Smart Category: ColdFusion (rss)
1 | Next Page

Follow up to ColdFusion Axis2 Web Service Issue

Aug 21, 2014 2:40 PM
Rating: (Total Clicks 7)

Last month I blogged about an odd issue with Axis2 web services. Basically, the CFC was persisting past the initial hit. Normally CFCs are recreated on every request. This didn't seem to be case with Axis2 web services. I filed a bug report for the issue and today I got a response form an engineer: This is a change in behavior in how we designed the Axis 2 web services support. In Axis 1, For every web service request we created a new CFC instance and the request was handled by this new instance. That is why the variables always (translate)

Innovation to solve business problems

Aug 20, 2014 7:24 AM
Rating: (Total Clicks 2)

As a provider of IT solutions to government and private organizations, Digicon leverages Adobe ColdFusion to give itself a unique competitive advantage. Specifically, Digicon uses ColdFusion to build modules for internal implementation, then rapidly provision and host the results commercially.   “Our ability to build applications in ColdFusion and quickly deliver them to customers gives us a huge advantage over competitors who use other development environments,” says Mark DeLaney, senior application developer at Digicon.   Successful projects include a youth summer job program in which Digicon replaced 50 paper forms with a new digital application system. The web-based system can (translate)

ColdFusion Per-Application Datasources Don't Work In The OnApplicationEnd() Event Handler

Aug 19, 2014 1:22 PM
Rating: (Total Clicks 18)

Ben Nadel demonstrates that the per-application datasource doesn't work in the onApplicationEnd() event handler in the ColdFusion application framework.... (translate)

Enabling Leading Wildcard Search In Coldfusion

Aug 19, 2014 9:24 AM
Rating: (Total Clicks 5)

In the current version of Solr supported by Coldfusion, leading wildcard search is not supported by default. A ’*’ as the leading character in a search will not work.  For example this code : <cfsearch collection="new" name="x" criteria="*title*" categorytree="books/history/english"> Will throw an error : There was a problem while attempting to perform a search. Error executing query : org.apache.lucene.queryParser.ParseException: Cannot parse '*title*': '*' or '?' not allowed as first character in WildcardQuery   Workaround for this is to tweak schema.xm of the collection and add ReversedWildcardFilterFactory  filter. To enable "*criteria*" kinda search go to schema.xml file of the corresponding collection and (translate)

ColdFusion Per-Application Mappings Don't Work In The OnApplicationEnd() Event Handler

Aug 18, 2014 1:03 PM
Rating: (Total Clicks 20)

Ben Nadel demonstrates that per-application mappings don't work in the onApplicationEnd() event handler in a ColdFusion application.... (translate)

Eventbrite API Demos

Aug 15, 2014 1:21 PM
Rating: (Total Clicks 11)

A few days ago a client of mine, Rich Swier of HuB asked if I could build him two quick demos that made use of the Eventbrite API. I whipped up the two demos for him and once done, he graciously allowed me to share it on my blog. (Thank you Rich!) I will warn you that this code was written for ColdFusion 8 so it is entirely tag based. At the very end a mod was made for ColdFusion 9. Obviously it could be converted to script and perhaps improved in other ways as well, but I hope this (translate)

Jakarta Redirect Error when adding new IIS Websites to an existing ColdFusion 10 Install

Aug 12, 2014 3:22 PM
Rating: (Total Clicks 31)

Does this look familiar to you? I spent a few hours on 3 different days trying to figure out what was wrong, here. I was trying to add a new website to an existing CF10 installation on a Windows Server Box with IIS7.5. The other sites were working fine. What led me astray was that as part of the initial setup of this new site, I also added a web.config file with a port of the old .htaccess URL Rewriting rules from the site's previous hosting. This whole time I was chasing what I thought were edge cases in Rewrite (translate)

ColdFusion Bug with image functions on OSX with Java7

Aug 12, 2014 12:31 PM
Rating: (Total Clicks 12)

Yesterday afternoon I found myself getting the very same exception message as this bug report from May 2014: java.lang.ClassNotFoundException: javax.media.jai.util.ImagingException What sort of horrible monstrosity of code was I attempting to slip by ColdFusion? var img = imageRead( imagePath ); Oh, the humanity. So, what crimes am I guilty of, thus causing this error? I'm using Java 7 (build 1.7.0_60-b19, to be precise) on OSX Mavericks (10.9.4 build 13E28, to be precise). Let's see: ColdFusion 10 Update 13 added support for OSX 10.9, and I'm running update 13. CF 10 Update 8 added support for Java 7 Update 15. I'm (translate)

Application datasources in ColdFusion

Aug 11, 2014 11:24 AM
Rating: (Total Clicks 11)

Reproduced from original post here. Datasources in ColdFusion have always been defined either in CFAdmin or through Admin API. This made it difficult for applications to be portable across ColdFusion servers. CF11 brings application specific datasources to ColdFusion. With this, applications can register their own datasources (when they start) without messing with the server-wide datasources defined in CFAdmin. The datasource details can be defined in Application.cfc Syntax:- ------------ this.datasources.derbyds={ driver="Apache Derby Embedded", database= "C:/dev/ColdFusion/cf_main/cfusion/db/artgallery/"}; this.datasources.dsn1={"database"="regression","host"="localhost\MSSQL2008", "driver"="MSSQLServer", "username"="sa", "password"="password"}; this.datasources.dsn2={"driver"="MSSQLServer", url="jdbc:macromedia:sqlserver://localhost\MSSQL2008; databaseName=regression; sendStringParametersAsUnicode=false; querytimeout=0; MaxPooledStatements=1000", "username"="sa", "password"="pass"}; this.datasources.customDSN = { "driver" = "other", "url" = "jdbc:sqlserver://localhost\MSSQL2008; databaseName=pubs; sendStringParametersAsUnicode=false; querytimeout=0; MaxPooledStatements=1000", "username" (translate)

Avoid Zero (or super short) Application Timeouts

Aug 8, 2014 8:24 PM
Rating: (Total Clicks 26)

So here's a doozy for you. Over the past week or so I exchanged emails with a reader who was having an odd issue with ColdFusion mappings. Specifically the code he wrote to actually use the mappings would fail to work if he used application specific mappings. Switching to mappings defined on the server fixed it. After I failed to notice it (and you can guess what's coming up based on the title of the entry), user BKBK on the Adobe forums pointed out that he had a 0-length application timeout: this.applicationTimeout = createTimeSpan(0,0,0,0);. Basically the application, and its settings, (translate)

1 | Next Page