[coldbox-3.5.0-BE] Element coldbox.system.extensions.plugins.json is undefined in a Java object of type class java.util.concurrent.ConcurrentHashMap.

I just started receiving this error and I am a little loss as to what could be causing it… Any ideas?

Oops! Exception Encountered### Application Execution ExceptionError Type: Expression : [N/A]

Error Messages: Element coldbox.system.extensions.plugins.json is undefined in a Java object of type class java.util.concurrent.ConcurrentHashMap.

Tag Context:
ID: ??
LINE: 54
Template: C:\Projects\kostizi\coldbox\system\ioc\scopes\Singleton.cfc
ID: CF_TEMPLATEPROXY
LINE: 262
Template: C:\Projects\kostizi\coldbox\system\ioc\Injector.cfc
ID: CF_TEMPLATEPROXY
LINE: 141
Template: C:\Projects\kostizi\coldbox\system\web\services\PluginService.cfc
ID: CF_UDFMETHOD
LINE: 157
Template: C:\Projects\kostizi\coldbox\system\web\services\PluginService.cfc
ID: CF_TEMPLATEPROXY
LINE: 325
Template: C:\Projects\kostizi\coldbox\system\web\Controller.cfc
ID: CF_TEMPLATEPROXY
LINE: 176
Template: C:\Projects\kostizi\coldbox\system\FrameworkSupertype.cfc
ID: CF_UDFMETHOD
LINE: 204
Template: C:\Projects\kostizi\coldbox\system\plugins\Utilities.cfc
ID: CF_TEMPLATEPROXY
LINE: 235
Template: C:\Projects\kostizi\coldbox\system\Coldbox.cfc
ID: CF_UDFMETHOD
LINE: 55
Template: C:\Projects\kostizi\Application.cfc
Framework Snapshot
Current Event: ajax.getCardLoadBalances
Current Layout: N/A (Module: )
Current View: N/A
Bug Date: 03/15/2012 09:27:21 AM
Coldfusion ID: CFID= ; CFToken= ; JSessionID=843067851b942578ae061a117f7970274486
Template Path : C:\Projects\kostizi\index.cfm
Path Info :
Host & Server: cwstore.cityweekly.net WIN-KOSTIZI
Query String:
Referrer: The City Weekly Store
Browser: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; FunWebProducts)
Remote Address: 97.75.162.2
Form variables:
EVENT: ajax.getCardLoadBalances
CONSUMERINFOIDKEY: 2891
Session Storage:
isD2m: 0
isMSL: 1
search_city:
qPartnerPreferences: qPartnerPreferences [complex]
hasLostCard: 0
search_deals: 0
dateTimeCardRequested:
alphaFilter: all
cardNumber: 5674563475779824
search_state: 0
rowsPerPage: 5
consumerId: 99683282433
search_subCategories:
qCardBalances: qCardBalances [complex]
search_regions:
email:

password:

consumerInfoId: 2891
baseURL: https://cwstore.cityweekly.net
sessionId: 48661
cardId:
search_showDepleted: 0
mpId: 2
TotalSavings: 1208.5325
search_Categories:
search_zip:
search_inventoryType: all
search_range: 0
search_keyword:
Cookies:
__gads: ID=aa5a6107106e92d7:T=1297974041:S=ALNI_MYfnWJOjVtGU89vYZWGBGN265q28w
__utma: 52554743.1898172516.1331563239.1331650141.1331825411.4
__utmz: 52554743.1331825411.4.4.utmcsr=CWStore: 25% off 3.15.12|utmccn=St. Paddy’s|utmcmd=email
__qca: P0-1969182604-1297974094729
_jsuid: 8444604998420413740
__utmb: 52554743.2.10.1331825411
__utmc: 52554743
CFID: 87703678
CFTOKEN: 69155659
JSESSIONID: 843067851b942578ae061a117f7970274486
Stack Trace:

coldfusion.runtime.UndefinedElementException: Element coldbox.system.extensions.plugins.json is undefined in a Java object of type class java.util.concurrent.ConcurrentHashMap.
	at coldfusion.runtime.CfJspPage.ArrayGetAt(CfJspPage.java:961)
	at coldfusion.runtime.CfJspPage._arrayGetAt(CfJspPage.java:972)
	at coldfusion.runtime.CfJspPage._arrayGetAt(CfJspPage.java:967)
	at cfSingleton2ecfc148435008$funcGETFROMSCOPE.runFunction(C:\Projects\kostizi\coldbox\system\ioc\scopes\Singleton.cfc:54)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337)
	at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
	at cfInjector2ecfc1954593894$funcGETINSTANCE.runFunction(C:\Projects\kostizi\coldbox\system\ioc\Injector.cfc:262)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337)
	at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
	at cfPluginService2ecfc459197921$funcNEW.runFunction(C:\Projects\kostizi\coldbox\system\web\services\PluginService.cfc:141)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:517)
	at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2547)
	at cfPluginService2ecfc459197921$funcGET.runFunction(C:\Projects\kostizi\coldbox\system\web\services\PluginService.cfc:157)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337)
	at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
	at cfController2ecfc561303673$funcGETPLUGIN.runFunction(C:\Projects\kostizi\coldbox\system\web\Controller.cfc:325)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:517)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:496)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:355)
	at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301)
	at cfFrameworkSupertype2ecfc771306154$funcGETPLUGIN.runFunction(C:\Projects\kostizi\coldbox\system\FrameworkSupertype.cfc:176)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
	at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2582)
	at cfUtilities2ecfc1925768255$funcMARSHALLDATA.runFunction(C:\Projects\kostizi\coldbox\system\plugins\Utilities.cfc:204)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:517)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:496)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:355)
	at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301)
	at cfColdbox2ecfc429874985$funcPROCESSCOLDBOXREQUEST.runFunction(C:\Projects\kostizi\coldbox\system\Coldbox.cfc:235)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
	at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2582)
	at cfApplication2ecfc239579282$funcONREQUESTSTART.runFunction(C:\Projects\kostizi\Application.cfc:55)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
	at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
	at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
	at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
	at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
	at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491)
	at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337)
	at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88)
	at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:258)
	at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:349)
	at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
	at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
	at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
	at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
	at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
	at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
	at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
	at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
	at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
	at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
	at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
	at coldfusion.CfmServlet.service(CfmServlet.java:200)
	at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
	at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
	at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
	at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
	at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
	at jrun.servlet.FilterChain.service(FilterChain.java:101)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
	at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
	at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
	at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
	at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
	at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
	at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Extra Information Dump
[N/A]

I forgot to mention that I am using this plugin here, because we wrote a ton of code dependent on it. Since it was depreciated in this version, I needed to override the new functionality, rather than rewrite a bunch of code.

I also got this error, that seems related, but it wasn’t properly caught, so I don’t have a full bug report. I thought maybe it would be helpful:

Error building: coldbox.system.plugins.Renderer -> Element coldbox.system.plugins.htmlhelper is undefined in a Java object of type class java.util.concurrent.ConcurrentHashMap. with constructor arguments: {controller={[(Component=coldbox.system.web.Controller)]}}

I think I just found one issue and I am sure sure what is going on. I noticed that this is a wirebox feature and wirebox should be turned off in my app. Here is my line attempt to do that in my Coldbox.cfc:

//WireBox Integration
wireBox = {
enabled = false,
singletonReload=true
};

However, when I dump getSetting(‘wireBox’), here is what I get:

struct
BINDER [empty string]
BINDERPATH [empty string]
ENABLED true
SINGLETONRELOAD true

What am I doing wrong?

And you did reinit your application?

You have singleton reload, meaning every request cleans the singleton cache. Not good for production. I hope this is development. Also, we added a better lock for this in BE

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Yeah, I did reinit, but it didn’t help.

Shouldn’t the singletonReload be irrelevant because I am turning wirebox off? I am only doing this because it seems as though plugins are being dropped by wirebox and it is causing me these random errors.

Thanks for the responses.

WireBox is always on in 3.5 whether you use it for your objects or not. ColdBox uses it to create all its internal objects. You have it for singleton reload, meaning nothing persists, which is not good for production just for development.

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

I also have been getting a variation of the same error:

undefined in a Java object of type class
java.util.concurrent.ConcurrentHashMap.

Do we know what cayses this error though?

I'm on CB 3.5 as well. I currently have singletonReload = true in my
Coldbox.cfc, but it's good to know that I should turn that off as I
will be going live with a new site shortly so thanks for the tip Luis.

Yes, please remember guys, singletonReload = true is a development developer laziness setting that allows on each request the entire singleton map to be cleared so you can see your chances on development ONLY!

There might be times where it blows up due to concurrency, but that is the nature of the setting.

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano