DevNewz News Archives About Us Feedback

Recent Articles

Vista, IIS7 & BlueDragon
I'm trying to set up a full-blown development environment on Vista, just to see how I get on and to compare it with my regular development environment on OS X.

ASP.NET - Trackback Spam Fighting
Recently, I joined the Subkismet project which is an open source stand-alone comment spam filtering library for ASP.NET web applications founded by Phil Haack. My task is to write mechanisms for fighting trackback and...

Preventing Direct Access To A CFC
Chad asks: I am using a CFC for an AJAX-based shopping cart and it works great. But along comes a customer who is behind a proxy. The proxy is trying to request the...

Testing Your Code
I was asked to write a post about my views on unit testing because it is a hot subject at the moment. I'm very ambivalent about unit testing and always have been for many different reasons. Although testing is...

Money - A Good Measure Of OSS Success?
This comment from Stacey (Hyperic) got me thinking…is money a good measure of OSS success? Before I go on, let me clear something up. My 1.8% comment was...



Recent WebProNews Articles

SES: The Almighty Conversion
If you run an e-commerce site, you want visitors to become buyers. Panelists at SES San Jose suggested making those visitors feel secure while you make...

SES: Searcher? Oh, Behave!
The way searchers behave on search engines provides a lot of insight into what companies can do to improve their search services. A SES San Jose panel covered...

ComScore qScore Tallies Well For Google
Search sites measured by comScore under their new qScore 2.0 methodology will benefit from the hosted and affiliated search traffic they send back to the main search engine. It's a scenario that offers Google...

Let The Domain Drive
Domainers have been enjoying some additional attention these days, and that extends to a session at SES San Jose 2007 where they discussed tips and the power...

SES San Jose Opens Today
Four days of the search industry's biggest gathering starts in San Jose, where attendees can learn the finer points about marketing effectively and ranking well with the drivers of search-related traffic. We would be remiss...


08.22.07


Interesting Bug With Query Columns

By Raymond Camden

An interesting bug (not a ColdFusion bug, but a user bug) cropped up in a discussion last week in the ColdFusion IRC channel.

Unfortunately I don't remember his IRC name, but after we worked together on this for an hour or so, he was kind enough to send me a real nice and simple code sample to replicate the issue.

So let's back up a bit and talk about what he saw. The user had a web service that returned a structure. Before he actually used it as a web service he did his testing locally like so:




As you can see, the function creates a query and then copies values to a structure. His real code was obviously a bit more complex. So he then switched to using a web service:



And something odd occurred. This is the output from running both his local and remote tests:


As you can see - the remote call returned a structure of arrays - not a structure of simple values. Why? While I can't answer why one method returned different data then the other, I can point out the problem with the code in the method. Notice how he copied the values from the query:



What helped diagnose this issue was inspecting the data he had in MyStruct. When he examined the particular Java class when invoked remotely, he saw that it was a QueryColumn (I don't have the full class name in front of me, but that is the approximate name), not a simple value as he would have expected.

Comments


About the Author:
Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com

Raymond Camden is Vice President of Technology for roundpeg, Inc. A long time ColdFusion user, Raymond has worked on numerous ColdFusion books and is the creator of many of the most popular ColdFusion community web sites. He is an Adobe Community Expert, user group manager, and the proud father of three little bundles of joy.


About DevNewz
DevNewz has assembled experts around the world to deliver helpful advice to application developers. Our in-house news staff focuses on keeping you updated with the latest new software and trends in application development. DevNewz provides Knowlege For Application Developers.

DevNewz is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITmanagementNews.com


-- DevNewz is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


Knowlege For Application Developers DevNewz Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact