Web News


MobileMonday Toronto has Mobile Moguls Looking...
On Monday, February 5th, MobileMonday Toronto, the mobile industry networking group, will open the floor for prospective mobile entrepreneurs to pitch their business ideas to some of Canada's leading Venture....

Canadian who founded Internet company faces...
A Canadian who founded a company that processes Internet gambling transactions was led into a U.S. Virgin Islands court in ankle chains to face money...

TK Maxx customers hit by hacking scare
Customers' credit card details have been stolen from the company that owns the popular TK Maxx cut-price retail chain. The details were stolen by a hacker who broke into the systems of parent company TJX. The theft...


01.22.07


Flex/ColdFusion Mystery And A Very Simple Answer

By Raymond Camden

I was working on a Flex project when I hit a brick wall. I had a very simple form.

Flex was using remoting to send the form information to ColdFusion. ColdFusion was doing nothing with the data.

It was just an empty method. However, every time I'd try to send the data I'd get an error.

Here is where things got weird. The first thing I tried was launching ServiceCapture so I could see the response from ColdFusion.

However - when I would send the form data, ServiceCapture would actually hang. I had to force it down.

So then I went to my ColdFusion logs. Nothing was reported in the error log but an empty string. At this point I'm really confused.

I go into my Application.cfc file's onError and added this:



Now I get somewhere. When I look at the file, I see no message, no detail, but I do see a type for the error:



Cost Effective Website and Network Monitoring
IPCheck Server Monitor - Free Download

What the heck? (Ok, I didn't say heck.) So now I start trying random crap. First I change the method names. Doesn't help. Finally I change my Flex code to send nothing to ColdFusion. And it works.

Um. Ok.

I restored my code and noticed something....



username and password were the form elements, not the values of the form elements. Somehow Flex thought this was ok. Can you really send a component over the wire? Flex could. And while it didn't die, it was enough to freak out ServiceCapture and ColdFusion.

Changing my Flex to:



made everything kosher. Whew!

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 DevWebProCanada
DevWebProCanada is for professional developers ... those who build and manage applications and sophisticated websites. DevWebProCanada delivers via news and expert advice New Strategies In Development.

DevWebProCanada 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


-- DevWebProCA 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


Delivering IT Solutions DevWebProCanada News Archives About Us Feedback DevWebProCanada Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact