Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Coldfusion 8 Unable to invoke CFC always added to error message

1 view
Skip to first unread message

Khuffie

unread,
Dec 10, 2008, 9:55:53 AM12/10/08
to
Since switching to ColdFusion 8, I noticed some weird issues with the returned
error messages from the CFC. Let's say I call my login function from my Flex
app, and the username and password are incorrect. The ColdFusion code would
throw the following error:

<cfabort showerror="You have entered an invalid username or password." />

When I trace the returned fault event in the client (event.fault.faultString),
I get the following message: "Unable to invoke CFC - You have entered an
invalid username or password."

Notice the additional "Unable to invoke CFC - " part to the message. For some
reason it seems to be added to the message I returned. This was not an issue in
ColdFusion 7, and it would be a pain in the ass to go through my Flex app and
strip out that wherever an error is returned.

In ColdFusion, I have tried throwing the error this way:
<cfthrow message="You have entered an invalid username or password." />

It still had the same issue. Any ideas?

0 new messages