Random Errors

here is a stacktrace of that error (8 simultaneously requests, 7 succeeded and 1 one failed)… it is encoded in json, i hope that’s ok :slight_smile:

“StackTrace”: [{
“FileName”: “CfJspPage.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.CfJspPage”,
“LineNumber”: “303”,
“MethodName”: “_get”
}, {
“FileName”: “CfJspPage.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.CfJspPage”,
“LineNumber”: “283”,
“MethodName”: “_get”
}, {
“FileName”: “CfJspPage.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.CfJspPage”,
“LineNumber”: “271”,
“MethodName”: “_get”
}, {
“FileName”: “D:\ColdFusion9\wwwroot\Commerce\handlers\AdPageDoc.cfc”,
“NativeMethod”: false,
“ClassName”: “cfAdPageDoc2ecfc421851043$funcLOAD”,
“LineNumber”: “14”,
“MethodName”: “runFunction”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “472”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ReturnTypeFilter”,
“LineNumber”: “405”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ArgumentCollectionFilter”,
“LineNumber”: “368”,
“MethodName”: “invoke”
}, {
“FileName”: “FunctionAccessFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.FunctionAccessFilter”,
“LineNumber”: “55”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “321”,
“MethodName”: “runFilterChain”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “517”,
“MethodName”: “invoke”
}, {
“FileName”: “TemplateProxy.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.TemplateProxy”,
“LineNumber”: “496”,
“MethodName”: “invoke”
}, {
“FileName”: “TemplateProxy.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.TemplateProxy”,
“LineNumber”: “355”,
“MethodName”: “invoke”
}, {
“FileName”: “CfJspPage.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.CfJspPage”,
“LineNumber”: “2301”,
“MethodName”: “_invoke”
}, {
“FileName”: “InvokeTag.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.tagext.lang.InvokeTag”,
“LineNumber”: “389”,
“MethodName”: “doEndTag”
}, {
“FileName”: “CfJspPage.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.CfJspPage”,
“LineNumber”: “2723”,
“MethodName”: “_emptyTcfTag”
}, {
“FileName”: “D:\ColdFusion9\wwwroot\Commerce\coldbox\system\web\Controller.cfc”,
“NativeMethod”: false,
“ClassName”: “cfController2ecfc635787919$funcINVOKER”,
“LineNumber”: “699”,
“MethodName”: “runFunction”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “472”,
“MethodName”: “invoke”
}, {
“FileName”: “SilentFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.SilentFilter”,
“LineNumber”: “47”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ReturnTypeFilter”,
“LineNumber”: “405”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ArgumentCollectionFilter”,
“LineNumber”: “368”,
“MethodName”: “invoke”
}, {
“FileName”: “FunctionAccessFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.FunctionAccessFilter”,
“LineNumber”: “55”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “321”,
“MethodName”: “runFilterChain”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “220”,
“MethodName”: “invoke”
}, {
“FileName”: “CfJspPage.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.CfJspPage”,
“LineNumber”: “2582”,
“MethodName”: “_invokeUDF”
}, {
“FileName”: “D:\ColdFusion9\wwwroot\Commerce\coldbox\system\web\Controller.cfc”,
“NativeMethod”: false,
“ClassName”: “cfController2ecfc635787919$funcRUNEVENT”,
“LineNumber”: “584”,
“MethodName”: “runFunction”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “472”,
“MethodName”: “invoke”
}, {
“FileName”: “SilentFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.SilentFilter”,
“LineNumber”: “47”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ReturnTypeFilter”,
“LineNumber”: “405”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ArgumentCollectionFilter”,
“LineNumber”: “368”,
“MethodName”: “invoke”
}, {
“FileName”: “FunctionAccessFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.FunctionAccessFilter”,
“LineNumber”: “55”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “321”,
“MethodName”: “runFilterChain”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “517”,
“MethodName”: “invoke”
}, {
“FileName”: “TemplateProxy.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.TemplateProxy”,
“LineNumber”: “496”,
“MethodName”: “invoke”
}, {
“FileName”: “TemplateProxy.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.TemplateProxy”,
“LineNumber”: “355”,
“MethodName”: “invoke”
}, {
“FileName”: “CfJspPage.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.CfJspPage”,
“LineNumber”: “2301”,
“MethodName”: “_invoke”
}, {
“FileName”: “D:\ColdFusion9\wwwroot\Commerce\coldbox\system\Coldbox.cfc”,
“NativeMethod”: false,
“ClassName”: “cfColdbox2ecfc1140413951$funcPROCESSCOLDBOXREQUEST”,
“LineNumber”: “243”,
“MethodName”: “runFunction”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “472”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ReturnTypeFilter”,
“LineNumber”: “405”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ArgumentCollectionFilter”,
“LineNumber”: “368”,
“MethodName”: “invoke”
}, {
“FileName”: “FunctionAccessFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.FunctionAccessFilter”,
“LineNumber”: “55”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “321”,
“MethodName”: “runFilterChain”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “220”,
“MethodName”: “invoke”
}, {
“FileName”: “CfJspPage.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.CfJspPage”,
“LineNumber”: “2582”,
“MethodName”: “_invokeUDF”
}, {
“FileName”: “D:\ColdFusion9\wwwroot\Commerce\Application.cfc”,
“NativeMethod”: false,
“ClassName”: “cfApplication2ecfc1302058916$funcONREQUESTSTART”,
“LineNumber”: “71”,
“MethodName”: “runFunction”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “472”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ReturnTypeFilter”,
“LineNumber”: “405”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod$ArgumentCollectionFilter”,
“LineNumber”: “368”,
“MethodName”: “invoke”
}, {
“FileName”: “FunctionAccessFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.FunctionAccessFilter”,
“LineNumber”: “55”,
“MethodName”: “invoke”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “321”,
“MethodName”: “runFilterChain”
}, {
“FileName”: “UDFMethod.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.UDFMethod”,
“LineNumber”: “220”,
“MethodName”: “invoke”
}, {
“FileName”: “TemplateProxy.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.TemplateProxy”,
“LineNumber”: “491”,
“MethodName”: “invoke”
}, {
“FileName”: “TemplateProxy.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.TemplateProxy”,
“LineNumber”: “337”,
“MethodName”: “invoke”
}, {
“FileName”: “AppEventInvoker.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.AppEventInvoker”,
“LineNumber”: “88”,
“MethodName”: “invoke”
}, {
“FileName”: “AppEventInvoker.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.runtime.AppEventInvoker”,
“LineNumber”: “258”,
“MethodName”: “onRequestStart”
}, {
“FileName”: “ApplicationFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.ApplicationFilter”,
“LineNumber”: “349”,
“MethodName”: “invoke”
}, {
“FileName”: “RequestMonitorFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.RequestMonitorFilter”,
“LineNumber”: “48”,
“MethodName”: “invoke”
}, {
“FileName”: “MonitoringFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.MonitoringFilter”,
“LineNumber”: “40”,
“MethodName”: “invoke”
}, {
“FileName”: “PathFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.PathFilter”,
“LineNumber”: “94”,
“MethodName”: “invoke”
}, {
“FileName”: “LicenseFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.LicenseFilter”,
“LineNumber”: “27”,
“MethodName”: “invoke”
}, {
“FileName”: “ExceptionFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.ExceptionFilter”,
“LineNumber”: “70”,
“MethodName”: “invoke”
}, {
“FileName”: “ClientScopePersistenceFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.ClientScopePersistenceFilter”,
“LineNumber”: “28”,
“MethodName”: “invoke”
}, {
“FileName”: “BrowserFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.BrowserFilter”,
“LineNumber”: “38”,
“MethodName”: “invoke”
}, {
“FileName”: “NoCacheFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.NoCacheFilter”,
“LineNumber”: “46”,
“MethodName”: “invoke”
}, {
“FileName”: “GlobalsFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.GlobalsFilter”,
“LineNumber”: “38”,
“MethodName”: “invoke”
}, {
“FileName”: “DatasourceFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.DatasourceFilter”,
“LineNumber”: “22”,
“MethodName”: “invoke”
}, {
“FileName”: “CachingFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.filter.CachingFilter”,
“LineNumber”: “62”,
“MethodName”: “invoke”
}, {
“FileName”: “CfmServlet.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.CfmServlet”,
“LineNumber”: “200”,
“MethodName”: “service”
}, {
“FileName”: “BootstrapServlet.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.bootstrap.BootstrapServlet”,
“LineNumber”: “89”,
“MethodName”: “service”
}, {
“FileName”: “FilterChain.java”,
“NativeMethod”: false,
“ClassName”: “jrun.servlet.FilterChain”,
“LineNumber”: “86”,
“MethodName”: “doFilter”
}, {
“FileName”: “MonitoringServletFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.monitor.event.MonitoringServletFilter”,
“LineNumber”: “42”,
“MethodName”: “doFilter”
}, {
“FileName”: “BootstrapFilter.java”,
“NativeMethod”: false,
“ClassName”: “coldfusion.bootstrap.BootstrapFilter”,
“LineNumber”: “46”,
“MethodName”: “doFilter”
}, {
“FileName”: “FilterChain.java”,
“NativeMethod”: false,
“ClassName”: “jrun.servlet.FilterChain”,
“LineNumber”: “94”,
“MethodName”: “doFilter”
}, {
“FileName”: “FilterChain.java”,
“NativeMethod”: false,
“ClassName”: “jrun.servlet.FilterChain”,
“LineNumber”: “101”,
“MethodName”: “service”
}, {
“FileName”: “ServletInvoker.java”,
“NativeMethod”: false,
“ClassName”: “jrun.servlet.ServletInvoker”,
“LineNumber”: “106”,
“MethodName”: “invoke”
}, {
“FileName”: “JRunInvokerChain.java”,
“NativeMethod”: false,
“ClassName”: “jrun.servlet.JRunInvokerChain”,
“LineNumber”: “42”,
“MethodName”: “invokeNext”
}, {
“FileName”: “JRunRequestDispatcher.java”,
“NativeMethod”: false,
“ClassName”: “jrun.servlet.JRunRequestDispatcher”,
“LineNumber”: “286”,
“MethodName”: “invoke”
}, {
“FileName”: “ServletEngineService.java”,
“NativeMethod”: false,
“ClassName”: “jrun.servlet.ServletEngineService”,
“LineNumber”: “543”,
“MethodName”: “dispatch”
}, {
“FileName”: “WebService.java”,
“NativeMethod”: false,
“ClassName”: “jrun.servlet.http.WebService”,
“LineNumber”: “172”,
“MethodName”: “invokeRunnable”
}, {
“FileName”: “ThreadPool.java”,
“NativeMethod”: false,
“ClassName”: “jrunx.scheduler.ThreadPool$DownstreamMetrics”,
“LineNumber”: “320”,
“MethodName”: “invokeRunnable”
}, {
“FileName”: “ThreadPool.java”,
“NativeMethod”: false,
“ClassName”: “jrunx.scheduler.ThreadPool$ThreadThrottle”,
“LineNumber”: “428”,
“MethodName”: “invokeRunnable”
}, {
“FileName”: “ThreadPool.java”,
“NativeMethod”: false,
“ClassName”: “jrunx.scheduler.ThreadPool$UpstreamMetrics”,
“LineNumber”: “266”,
“MethodName”: “invokeRunnable”
}, {
“FileName”: “WorkerThread.java”,
“NativeMethod”: false,
“ClassName”: “jrunx.scheduler.WorkerThread”,
“LineNumber”: “66”,
“MethodName”: “run”
}]

Does anyone have any further thoughts on this. I'm at the end of my
rope and getting pretty depressed about the whole situation. This is
now a full blown disaster for our company. We have four programmers
working on this application that is now live for several large
clients. Our plan was to transition more programmers to Coldbox based
projects and for all new development to be Coldbox based. All of that
is on hold now. At least one client wants a meeting to discuss
rewriting the application if we can't solve this soon.

The application ran well during testing. Perhaps we should have load
tested more aggressively. I agree with those who have said that this
problem seems more related to simultaneous hits than it does to load
but it certainly happens more often when our site are under heavy
load. That's probably just a matter of statistics (more hits, more
chances to hit just the right combination).

The partial traces below are typical of the errors I get. Most of the
time they seem to just pop up at random. At other times a site will
get in a state where every hit that uses a particular component will
error until that site get an fwreinit.

Twice today, I had a server get so munged up that I had to restart Coldfusion.

My gut tells me this is somehow related to CacheBox and or injection
but I can't make any sense out of what's going on.

ANY suggestions would be appreciated.

Bob

This error is fairly frequent. Why would this one plugin have trouble loading?

coldfusion.tagext.lang.LockTag$TimeoutException: A timeout occurred
while attempting to lock
WireBox.CacheBoxScope.coldbox350.system.plugins.CookieStorage.
  at coldfusion.tagext.lang.LockTag.doStartTag(LockTag.java:220)
  at cfCacheBox2ecfc542358089$funcGETFROMSCOPE.runFunction(/mnt/cm/wwwfs/www/iact1/wwwroot/coldbox350/system/ioc/scopes/CacheBox.cfc:43)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)

If I start seeing a lot of these errors, I know I'm in real trouble.
While other errors seem to be transient (next hit will work fine),
once this error starts it's usually time for fwreinit and a server
restart is often needed.

coldfusion.runtime.TemplateProxyFactory$InvalidComponentNameException:
The '' name is not a valid component or interface name.
  at coldfusion.runtime.TemplateProxyFactory.getTemplateFileHelper(TemplateProxyFactory.java:1512)
  at coldfusion.runtime.MetadataUtils.getComponentMetadata(MetadataUtils.java:112)
  at coldfusion.runtime.CfJspPage.GetComponentMetaData(CfJspPage.java:2667)
  at cfMapping2ecfc1950957049$funcPROCESS.runFunction(/mnt/cm/wwwfs/www/iact1/wwwroot/coldbox350/system/ioc/config/Mapping.cfc:542)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)

I don't even know what this one means.

coldfusion.runtime.CustomException: The onInvalid event is also invalid
  at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142)
  at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
  at cfUtil2ecfc1931211117$funcTHROWIT.runFunction(/mnt/cm/wwwfs/www/iact1/wwwroot/coldbox350/system/core/util/Util.cfc:164)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
  at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
  at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)

I think I used this example before. DSORDERS is an injected setting.

coldfusion.runtime.UndefinedVariableException: Variable DSORDERS is undefined.
  at coldfusion.runtime.CfJspPage._get(CfJspPage.java:303)
  at coldfusion.runtime.CfJspPage._get(CfJspPage.java:283)
  at coldfusion.runtime.CfJspPage._get(CfJspPage.java:271)
  at cfmOrders2ecfc1235860604$funcLIST.runFunction(/mnt/cm/wwwfs/www/iact1/wwwroot/DTSBase_20120501/dts/model/mOrders.cfc:30)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)

Without evaluating the code it is really impossible to assume how you have put together your application. I would suggest getting off list and doing a review if needed.

Also I would probably suggest changing your injection from property or setter injection to constructor injection.

Constructor injection has extra locks on object creation that setter or property injection do not have as they need to allow for circular dependencies.

But yet gain we would need to revise the code as in terms of concurrency and scaling is where we shine.

Again the mee info we can et the more we can help and make you shine as well.

Luis

Hi Luis,

thanks for these hints, constructor injection seems to work without these errors, but one thing i want to mention is, that constructor injection for handler is not available in Coldbox 3.1, because the init method is called with the controller as only argument during construction, but with CB 3.5 it seems to work fine. Am i right, that your other post here about the threadSafe annotation will solve this problem with property injection in future releases?

Thanks for clarifying the problem in the other post aswell!

No problem. Let me know how it goes