Skip to main content
Participant
September 9, 2011
Question

Significant Load Issues (CF8 and Model Glue 2)

  • September 9, 2011
  • 1 reply
  • 418 views

I'm running an enterprise-level application running CF8 and Model Glue 2 that has seen a recent spike in users.  Several hundred users are submitting complex forms at any one time, which then trigger e-mails.

During our peaks, we're seeing the following error messages pour in:

Either there are no methods with the specified method name and argument types, or the getUserID method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that matched the provided arguments. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.

Has anybody run into these types of errors before.  I'd really appreciate your guidance.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    September 9, 2011

    Sounds like you have an issue with the var scope.

    Model Glue controllers are singletons and this means one single instance of

    the controller is shared among all requests. While this is a great way to

    increase performance, it does mean you must be careful to use the ColdFusion

    var keyword properly.

    Since this is showing up under load, I am going to bet this is the issue. *Here

    is what you need to do:*

    Short Version:

    1. Download this: http://varscoper.riaforge.org/

    2. Run it against your application and fix everything it finds.

    Long Version:

    1. Read this:

    http://www.nodans.com/index.cfm/2007/9/27/Is-your-code-Thread-Safe-How-do-you-know

    2. Watch this:

    http://www.schierberl.com/blog/thread-safety-and-the-var-scope-live-example/

    3. Download this: http://varscoper.riaforge.org/

    4. Run it against your application and fix everything it finds.

    Dan Wilson