What message do you get if you navigate to it via URL?
Though I don't recommend enabling Robust Exception on production (and your host may have it disabled) I believe with CF 9 you can set this.enableRobustException to true in order to get in-depth debug info.
How are you trying to call the method?
Thank you Aegis
But the components are fine they have been working for about a year.
If I use a CF template they return the data....
I made a test I copy the component INSIDE the same directory with swf (a test Flex App) but now the error is other:
Fault faultString="Channel disconnected"
faultDetail="Channel disconnected before an acknowledgement was received"
I try it too, in my local machine everything works fine
See if this helps:
Has to do with modifying the cross-domain file. I think after changing it, it'll require a restart of the CF App Server.
We had this same problem in our Production server.
We were using CFC's in our local machines and we were using wwwroot folder(coldfusion root)
In production, the path where they host the application was different and they have set some virtual path to access the application.so the CFCs did not work.
I think, this might be due to the path problem.
Please check whether your local machine path directory is same as the PROD.
Thank you Aegis Kleais,
It's in the application it's in the same directory. I never need it before. I create the file, but didn't work. Thank you!
It's a really good point, but I am very careful handle the different paths application from development server and the production server. The last update I made to de Flex application was July, 2009.
Here is the complete Flash Player error message:
RPC Fault faultString="Unable to invoke CFC - Invalid CFML construct found on line 1 at column 1."
faultDetail="ColdFusion was looking at the following text:<p><</p><p>The CFML compiler was processing:<ul>< marks the beginning of a ColdFusion tag.Did you mean LT or LTE?</ul>"]
Probably, sounds weird; are you having the first statement as CFCOMPONENT tag right??
1 person found this helpful
Do you have an Application.cfc upstream from the CFC you're invoking, and does that have an onRequest() method in it?
Or... if your production server CFMX7 and your dev environment CF8+, and you're using the new < comparison operator somewhere?
Is there anything in the CF or JRun logs that clarify matters from a CF POV?
Thank you Adam, you were so close to the solution.
Thank you ALL!!!
I really appreciate your post.
The Flex Application it's working fine, thanks to ColdFusion Jedi Raymond, and João Fernandes.
I made a couple of thinks:
The update of my Flex 3 SDK to version 3.5 this was a really help, for CF9 works best with the new LCDS that came included.
I done this because João If you are using LCDS with ColdFusion 9, then the Flash Remoting works on LCDS 2.6.1.
Then I create a vacuum Application.cfm in the directory where all the components of the Web site.
This was the solution was the error it's gone.
Maybe will help some in the future.
I'm posting this here not to help the original poster but for others who may have landed here searching on "Invalid CFML construct found on line1 at column 1." I got that message on the Application.cfc file of an old app I thought I had lost but found in my subversion account. It turned out I had misnamed it with the .cfm extension. I renamed to Appliction.cfc and the error went away.