Skip navigation
Currently Being Moderated

Unable to invoke CFC - Invalid CFML construct found on line 1 at column 1

Nov 13, 2010 3:28 PM

Hi there,

 

I need HELP! Please, I build a Flex 3 Application using Flash Remoting using CF 8,


Apache and MS-SQL Server 2005, have been working fine for the last year, until Thursday when then hosting provider upgrade to CF 9.01:

 

Any time I try to access one of my components (CFC) I receive a this message:

 

“Unable to invoke CFC - Invalid CFML construct found on line 1 at column 1”

 

Above a simple example of one component, when I call from Flex,  I receive from Flex the same Error Message:

 

<cfcomponent output="false">
<cffunction name="testConnect" access="remote" returntype="string"output="false">   
    <cfset myResult="foo">
    <cfreturn myResult>
</cffunction>
       
</cfcomponent>

 

I really need your help…
best regards
 
Replies
  • Currently Being Moderated
    Nov 13, 2010 5:03 PM   in reply to Alirio Boquin

    What message do you get if you navigate to it via URL?

     

    http://localhost/path/to/cfc/myComponent.cfc?method=testConnect

     

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 13, 2010 5:14 PM   in reply to Alirio Boquin

    How are you trying to call the method?

     

    Jason

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2010 10:26 AM   in reply to Alirio Boquin

    See if this helps:

     

    http://www.flexnedir.com/flex-ve-coldfusion-channel-connect-failed/

     

    Has to do with modifying the cross-domain file.  I think after changing it, it'll require a restart of the CF App Server.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 15, 2010 1:50 AM   in reply to Alirio Boquin

    Hi,

     

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2010 2:41 AM   in reply to Alirio Boquin

    Probably, sounds weird;  are you having the first statement as CFCOMPONENT tag right??

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2010 3:02 AM   in reply to Alirio Boquin

    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?

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 27, 2011 6:31 AM   in reply to Alirio Boquin

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points