AShoes
AShoes

Reputation: 23

Coldfusion - Method not found in component after restarting services

I keep encountering a "The method was not found in component" error upon restarting CF services. Upon stopping and starting again this method will then be fine.

The method not found happens to be the most recently added function to a CFC that has been in production for years. None of the other functions in that CFC are throwing errors just this one. I have attempted clearing caches, etc. All CFC are defined in Application.cfm.

Has anyone encountered this issue or have any advice or solution?

Thanks.

Upvotes: 1

Views: 618

Answers (1)

Adrian J. Moreno
Adrian J. Moreno

Reputation: 14859

The method not found happens to be the most recently added function

  • Is the method marked access="private"?
  • Is the method marked access="package"?
  • Is the method spelled correctly?
  • Is the reference to the method spelled correctly?
  • Can other methods in the same CFC be called?
  • Are you sure you've deployed that file change to production?
  • Have you checked the actual file on the server to make sure the method is there?
  • Have you verified that your CF Admin is pointing to the correct mapping path?
  • Is that path where this CFC is actually located?
  • In CF admin, is "Component cache" unchecked?

Upvotes: 2

Related Questions