Random error message

Hey Guys,

Could anyone point me in the right direction. Over the last month or so we have been getting a lot of error emails for one of our websites which contains the following text.

“The containsInstance method was not found”

Obviously I now which method its talking about but the method is present and correct. It just seems to be random but we are getting between 30 and 100 messages a day even though we are testing/using the site daily and we never see any errors. Although its not causing us any issues apart from SPAM effect in our inbox, it is still something I would like to get to the bottom of.

Thank you in advance.

Ellis Wood BSc

Ellis,

I’m having a similar issue… I know its not helpful but sometimes its nice to have someone else see a similar problem.

I’m using Ubuntu 12.04 + Tomcat 7 (latest production) + Railo Bleeding Edge & ColdBox Bleeding Edge and the error I see is “The put method was not found” and like you the error happens completely randomly. And from what I’ve observed it never happens to the user.

Very strange indeed.

What OS/system/version are you using?

If I was to guess, you’ve got an argument to a method that accepts an object but sometimes gets a string instead.

Can we see a full stack trace? Is this line of code in the framework?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Hmmm thats interesting guys. We do pass objects around a bit and it throws problems in my IDE (CFBuilder so its always gonna have a problem with something lol ) Its happening more and more these days. The error is coming from the framework itself in particular ‘Wirebox’ here is the message we get from our error handler:

An unhandled exception has occurred. Please look at the diagnostic information below:

Type

Object

Message

The containsInstance method was not found.

Detail

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

Extended Info

Tag Context

E:\coldbox\system\ioc\adapters\WireBoxAdapter.cfc (57)
E:\coldbox\system\plugins\IOC.cfc (120)
E:\coldbox\system\plugins\BeanFactoryCompat.cfc (930)
E:\coldbox\system\plugins\BeanFactoryCompat.cfc (632)
E:\coldbox\system\plugins\BeanFactoryCompat.cfc (538)
E:\coldbox\system\plugins\BeanFactory.cfc (280)
E:\coldbox\system\interceptors\Autowire.cfc (136)
E:\coldbox\system\interceptors\Autowire.cfc (91)
E:\coldbox\system\web\context\InterceptorState.cfc (139)
E:\coldbox\system\web\context\InterceptorState.cfc (86)
E:\coldbox\system\web\services\InterceptorService.cfc (115)
E:\coldbox\system\web\services\HandlerService.cfc (84)
E:\coldbox\system\web\services\HandlerService.cfc (133)
E:\coldbox\system\web\Controller.cfc (494)
E:\coldbox\system\Coldbox.cfc (232)
E:\www\gudstjeneste.no\wwwroot\Application.cfc (72)

Thanks for the help guys. Unfortunately the error inbox is getting a pain to trawl through now as 99% of the messages are these and we might be missing valid errors.

Best regards

Ellis

What version of ColdBox are you on? You shouldn’t be using the autowire interceptor if it’s a recent one.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

TBH I lost track of where we were up to. Its somewehere between 3.1 and 3.5 smile I generally leave that to another developer

Then you should remove the autowire interceptor and make sure there’s no references to the bean factory compat stuff. You should be on pure, unadulterated WireBox by now! There should be no “ioc” settings should be in your config.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Cheers Brad. I will mention it to my counterparts in Norway and pass it off as my own :wink: