Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Here's a fun one...

Guest
Nov 05, 2009 Nov 05, 2009

Error invoking CFC.

BUT IT WAS WORKING YESTERDAY!!!

I'm on a Windows VPS and this morning I went onto my website to do some browsing and I get a wonderful "Error invoking CFC..." error.

I have a related dropdown the uses a cfc and a bind.  It's very similar to Forta's multiple dropdown tutorial.  It has been working great for months then out of nowhere I get that error.  The first part of the cfc/bind works.  It queries the db for a list of U.S. states and returns them into the dropdown.  Ok no problem.  The second part takes the data from the first and queries the db based on the state selected.  Error time.

What's worse is that the output tells me nothing.  -1?  What is -1?

Here is the error: Error invoking CFC /<path_to_cfc>: -1 [Enable debugging yada yada yada]

Page: http://www.kayakingcommunity.com/kayaking_mvc/kayaking/kayaking_waters.cfm

TOPICS
Advanced techniques
823
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 05, 2009 Nov 05, 2009

The error message randomly changes.  Sometimes it inserts that ugly -1, and sometimes instead of -1 it just says Internal Server Error.

I had the folks on the VPS support team remove the CFIDE directory and put yesterday's version in its place and the same thing is happening.

The first part of the cfc works and binds to the cfselect, once that is selected the next bind fails.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 05, 2009 Nov 05, 2009

have you checked out the logs?

things to try...

1. try to bind to a URL instead, and see if it works.

2. its trying to bind to _kpcfc_select.cfc . take off the underscore ( _ ) in the filename, modify your code to point to this new cfc name and see how it goes.

HTH.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 05, 2009 Nov 05, 2009

I'll try these but it doesn't make me feel less concerned with IIS 7 and CF8.

Why did this start happening when the code has been working fine?  The hosting company has made no updates to the server...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 05, 2009 Nov 05, 2009

Removed the old CFIDE directory and replaced with a new one.  Used an archived version of the CFC.

Working now.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 06, 2009 Nov 06, 2009
LATEST

What is -1?...

Here is the error: Error invoking CFC /<path_to_cfc>: -1 [Enable debugging yada yada yada]...

Sometimes it inserts that ugly -1, and sometimes instead of -1 it just says Internal Server Error.

Binding involves an asynchronous call. I think the -1 means that the call, hence binding, failed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources