java.lang.NullPointerException when intercepting contentbox.model.content.ContentVersionService

133 views
Skip to first unread message

J Garrett

unread,
Jan 12, 2017, 3:32:31 PM1/12/17
to ColdBox Platform
I have a project I started two years ago in which I am finally trying to eliminate an error that is consistently getting thrown, though it results in no issues in the site's performance.

For every page load on the site, I get a series of entries in the coldfusion-out.log like this:
174102Jan 12, 2017 14:55:59 PM Error [ajp-bio-8014-exec-1] -
174103Jan 12, 2017 14:55:59 PM Error [ajp-bio-8014-exec-1] -
174104Jan 12, 2017 14:55:59 PM Error [ajp-bio-8014-exec-1] -
174105Jan 12, 2017 14:55:59 PM Error [ajp-bio-8014-exec-1] -
174106Jan 12, 2017 14:56:00 PM Error [ajp-bio-8014-exec-1] -
The series is actually much longer, between 30 and 40 such lines for each page load. 

For each such individual log entry in the coldfusion-out.log, there are two corresponding entries in the exception.log:
61920"Error","ajp-bio-8014-exec-1","01/12/17","14:56:00",,""
61921java.lang.NullPointerException
So for the series of 30-40 entries per page load, there are 30-40 such pairs in the exception.log. There are no further entries in the exception.log per each individual error. I have been trying to determine the source of the error for a while. Previously (before I began working on tracking this down) each such coldfusion-out.log entry had a stack trace in the exception.log. Those stack traces ended as follows:

405"Error","ajp-bio-8014-exec-2","01/12/17","12:22:12",,""
406java.lang.NullPointerException
407at coldfusion.util.Utils.getServletPath(Utils.java:108)
408at coldfusion.util.Utils.getServletPath(Utils.java:98)
409at coldfusion.util.Utils.getBaseTemplatePath(Utils.java:461)
410at coldfusion.runtime.TemplateProxyFactory.getTemplateFileHelper(TemplateProxyFactory.java:1595)
411at coldfusion.runtime.MetadataUtils.getComponentMetadata(MetadataUtils.java:134)
412at coldfusion.runtime.CfJspPage.GetComponentMetadata(CfJspPage.java:2945)
413at coldfusion.runtime.TemplateProxy.getRuntimeComponentMetadata(TemplateProxy.java:1933)
414at coldfusion.runtime.TemplateProxy.getRuntimeMetadata(TemplateProxy.java:1792)
415at coldfusion.runtime.MetadataUtils.getMetaData(MetadataUtils.java:55)
416at coldfusion.runtime.CfJspPage.GetMetadata(CfJspPage.java:2918)
417at cfContentBoxOverrides2ecfc2104071172$funcAFTERINSTANCECREATION.runFunction(C:\inetpub\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\modules\[CUSTOM MODULE NAME]\interceptors\interceptor.cfc:43)
The full trace is 400 lines, but the final lines above are the key.

Looking in my interceptor I found that the referenced line was this:
var objectName = GetMetaData(interceptData.target).name;

That's it.

My ContentBox site includes five custom modules. Two of these modules have interceptors for afterInstanceCreation. I use the interceptors to point certain events to my custom handlers. The code I use to do this is as follows:

public void function afterInstanceCreation(event,interceptData,buffer) output="true"  {
var handlerService = "";

var objectName = GetMetaData(interceptData.target).name;
objectName = REReplace(objectName,"^(" & application.root.NameSpace & ")?modules\.","");

switch(objectName){
handlerService = controller.getHandlerService();
interceptData.target = handlerService.gethandler(handlerService.getRegisteredHandler("[CUSTOM MODULE NAME]:page.init"),controller.getRequestService().getContext());
break;

default:
return;
}
}

Each interceptor has a different series of cases in the switch/case block, but otherwise they are the same. 

I added logging as follows so I could add some identifying log entries before and after the errors to confirm the offending line and determine which case(s) caused the issue:

public void function afterInstanceCreation(event,interceptData,buffer) output="true"  {
var handlerService = "";

if (structKeyExists(url, "showMe"))
{
WriteLog("---------------------------------");
WriteLog("START (Module A)");
}

var objectName = GetMetaData(interceptData.target).name;

if (structKeyExists(url, "showMe"))
{
WriteLog("objectName: #objectName#");
WriteLog("---------------------------------");
}

objectName = REReplace(objectName,"^(" & application.root.NameSpace & ")?modules\.","");

switch(objectName){
handlerService = controller.getHandlerService();
interceptData.target = handlerService.gethandler(handlerService.getRegisteredHandler("[CUSTOM MODULE NAME]:page.init"),controller.getRequestService().getContext());
break;

default:
return;
}
}

Looking at the resulting log entries, I found that the errors only happen when GetMetaData(interceptData.target).name equals contentbox.model.content.ContentVersionService

174036Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - ---------------------------------
174037Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - START (Module B)
174038Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - objectName: contentbox.model.content.ContentService
174039Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - ---------------------------------
174040Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - ---------------------------------
174041Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - START (Module A)
174042Jan 12, 2017 14:41:59 PM Error [ajp-bio-8014-exec-1] -
174043Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - objectName: contentbox.model.content.ContentVersionService
174044Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - ---------------------------------
174045Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - ---------------------------------
174046Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - START (Module B)
174047Jan 12, 2017 14:41:59 PM Error [ajp-bio-8014-exec-1] -
174048Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - objectName: contentbox.model.content.ContentVersionService
174049Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - ---------------------------------
174050Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - ---------------------------------
174051Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - START (Module A)
174052Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - objectName: coldbox.system.plugins.Utilities
174053Jan 12, 2017 14:41:59 PM Information [ajp-bio-8014-exec-1] - ---------------------------------

I of course looked at memory, but with my JVM Heap Size max at 8192, the Windows Task Manager Performance monitoring of memory shows that overall physical memory usage holds steady at 18-19 GB during a page load. ColdFusion's physical memory usage holds steady around 2,400,000KB. The CPU usage spikes to anywhere from 50-100%, then returns to its normal 10-20%.

So something in GetMetaData(interceptData.target).name is throwing what is obviously a caught error (since the application continues to run and the function returns a value). While my site works despite this error, I would love to prevent it from happening so my logs are not cluttered with all of these entries.

Any thoughts/help would be appreciated.

The issue occurs in both dev and production. Here are the dev specs:

ContentBox: v.2.1.0.00122
ColdBox v.3.8.1.00076
Windows 10 64-bit
IIS 7.5
ColdFusion 11,0,11,301867
Java version 
1.8.0_25 
 

br...@bradwood.com

unread,
Jan 12, 2017, 3:57:26 PM1/12/17
to col...@googlegroups.com
Is that interceptor being run async.  The stack trace is getting the servlet path, which would likely be a communication with the web server (much like the cgi scope).  My first thought is that the code is running in a thread after the request has ended.
 
Also, see these pages:
 
Can you post the full stack trace so I can see the path of the files.  Perhaps this is being run as part of ORM init or something very early in the request lifecycle.
 
Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
Subject: [coldbox:26223] java.lang.NullPointerException when intercepting contentbox.model.content.ContentVersionService
From: "J Garrett" <jgar...@imtechcorp.com>
Date: 1/12/17 2:32 pm
To: "ColdBox Platform" <col...@googlegroups.com>

I have a project I started two years ago in which I am finally trying to eliminate an error that is consistently getting thrown, though it results in no issues in the site's performance.
 
For every page load on the site, I get a series of entries in the coldfusion-out.log like this:
174102 Jan12,201714:55:59 PM Error[ajp-bio-8014-exec-1]-
174103 Jan12,201714:55:59 PM Error[ajp-bio-8014-exec-1]-
174104 Jan12,201714:55:59 PM Error[ajp-bio-8014-exec-1]-
174105 Jan12,201714:55:59 PM Error[ajp-bio-8014-exec-1]-
174106 Jan12,201714:56:00 PM Error[ajp-bio-8014-exec-1]-

 

--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/c29cab30-7386-42cd-b877-864b29c1f2aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

J Garrett

unread,
Jan 12, 2017, 4:00:33 PM1/12/17
to ColdBox Platform
BTW, apologies for forgetting to put [ColdBox 3.8] in front of my subject line.
Also, I know contentbox.model.content.ContentVersionService is a ContentBox service, but I thought I would post here since it seems to be ColdBox overall, though I obviously could be wrong.

J Garrett

unread,
Jan 12, 2017, 5:20:21 PM1/12/17
to ColdBox Platform
Brad,

As always, thanks for your help.

I'm not starting any threads, so it shouldn't be async. It's ContentBox/Coldbox web page request.

In reference to the discussions you linked to:
  • getPageContext().getRequest().setAttribute("javax.servlet.include.servlet_path", javaCast("null", "")); has no effect.
  • Component is only being generated once and not being extended, so I don't think extending it is the issue.
  • It appears that isInstanceOf() will work with a rewrite from switch/case to if/elseif. So that is a solution. 
Thus, we have a working solution with isInstanceOf(). That said, I think it would be interesting to  figure out why this issue is happening.

The following is a complete stack track from when I was getting them. Note I have obfuscated the directory structure, but you should be able to recognize things to read through it.

"Error","ajp-bio-8014-exec-2","01/12/17","12:22:12",,""
java.lang.NullPointerException
at coldfusion.util.Utils.getServletPath(Utils.java:108)
at coldfusion.util.Utils.getServletPath(Utils.java:98)
at coldfusion.util.Utils.getBaseTemplatePath(Utils.java:461)
at coldfusion.runtime.TemplateProxyFactory.getTemplateFileHelper(TemplateProxyFactory.java:1595)
at coldfusion.runtime.MetadataUtils.getComponentMetadata(MetadataUtils.java:134)
at coldfusion.runtime.CfJspPage.GetComponentMetadata(CfJspPage.java:2945)
at coldfusion.runtime.TemplateProxy.getRuntimeComponentMetadata(TemplateProxy.java:1933)
at coldfusion.runtime.TemplateProxy.getRuntimeMetadata(TemplateProxy.java:1792)
at coldfusion.runtime.MetadataUtils.getMetaData(MetadataUtils.java:55)
at coldfusion.runtime.CfJspPage.GetMetadata(CfJspPage.java:2918)
at cfSecurity2ecfc321610059$funcAFTERINSTANCECREATION.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\[CUSTOM MODULE]\interceptors\Security.cfc:39)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:406)
at cfInterceptorState2ecfc160708610$funcINVOKER.runFunction(C:\...\coldbox\system\web\context\InterceptorState.cfc:369)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfInterceptorState2ecfc160708610$funcPROCESSSYNC.runFunction(C:\...\coldbox\system\web\context\InterceptorState.cfc:260)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfInterceptorState2ecfc160708610$funcPROCESS.runFunction(C:\...\coldbox\system\web\context\InterceptorState.cfc:121)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfInterceptorService2ecfc443532169$funcPROCESSSTATE.runFunction(C:\...\coldbox\system\web\services\InterceptorService.cfc:142)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2483)
at cfInjector2ecfc2138184884$funcGETINSTANCE.runFunction(C:\...\coldbox\system\ioc\Injector.cfc:265)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2483)
at cfBuilder2ecfc384962751$funcGETMODELDSL.runFunction(C:\...\coldbox\system\ioc\Builder.cfc:478)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfBuilder2ecfc384962751$funcBUILDDSLDEPENDENCY.runFunction(C:\...\coldbox\system\ioc\Builder.cfc:332)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfInjector2ecfc2138184884$funcPROCESSINJECTION.runFunction(C:\...\coldbox\system\ioc\Injector.cfc:594)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2854)
at cfInjector2ecfc2138184884$funcAUTOWIRE.runFunction(C:\...\coldbox\system\ioc\Injector.cfc:481)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfEventHandler2ecfc1842938416$funcPROCESSENTITYINJECTION.runFunction(C:\...\coldbox\system\orm\hibernate\EventHandler.cfc:149)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2854)
at cfEventHandler2ecfc1842938416$funcPOSTLOAD.runFunction(C:\...\coldbox\system\orm\hibernate\EventHandler.cfc:45)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.orm.hibernate.HibernateEventHandler.invokeMethod(HibernateEventHandler.java:296)
at coldfusion.orm.hibernate.HibernateEventHandler.onPostLoad(HibernateEventHandler.java:212)
at org.hibernate.engine.internal.TwoPhaseLoad.postLoad(TwoPhaseLoad.java:328)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1125)
at org.hibernate.loader.Loader.processResultSet(Loader.java:960)
at org.hibernate.loader.Loader.doQuery(Loader.java:910)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:341)
at org.hibernate.loader.Loader.doList(Loader.java:2516)
at org.hibernate.loader.Loader.doList(Loader.java:2502)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2332)
at org.hibernate.loader.Loader.list(Loader.java:2327)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:124)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1621)
at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:374)
at org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:396)
at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at coldfusion.runtime.StructBean.invoke(StructBean.java:508)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2553)
at cfCriteriaBuilder2ecfc600668092$funcGET.runFunction(C:\...\coldbox\system\orm\hibernate\CriteriaBuilder.cfc:256)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2483)
at cfContentService2ecfc1842044400$funcFINDBYSLUG.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\model\content\ContentService.cfc:204)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2483)
at cfContentMenuItem2ecfc1486884501$funcCANDISPLAY.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\model\menu\item\ContentMenuItem.cfc:53)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfCBHelper2ecfc361894619$funcBUILDPROVIDERMENULEVEL.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\plugins\CBHelper.cfc:1127)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfCBHelper2ecfc361894619$funcBUILDPROVIDERMENU.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\plugins\CBHelper.cfc:1104)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfCBHelper2ecfc361894619$funcMENU.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\plugins\CBHelper.cfc:1084)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfdisplay2ecfm1468425549.runPage(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\model\menu\views\submenu\display.cfm:3)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3000)
at cfRenderer2ecfc1173708319$funcRENDERVIEWCOMPOSITE.runFunction(C:\...\coldbox\system\plugins\Renderer.cfc:340)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2854)
at cfRenderer2ecfc1173708319$funcRENDEREXTERNALVIEW.runFunction(C:\...\coldbox\system\plugins\Renderer.cfc:380)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfSubMenuProvider2ecfc1747073206$funcGETDISPLAYTEMPLATE.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\model\menu\providers\SubMenuProvider.cfc:80)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2483)
at cfCBHelper2ecfc361894619$funcBUILDPROVIDERMENULEVEL.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\plugins\CBHelper.cfc:1129)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfCBHelper2ecfc361894619$funcBUILDPROVIDERMENU.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\plugins\CBHelper.cfc:1104)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfCBHelper2ecfc361894619$funcMENU.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\plugins\CBHelper.cfc:1084)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfdashboard2ecfm12957471.runPage(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox\layouts\[LAYOUT FOLDER]\layouts\customLayout.cfm:185)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3000)
at cfRenderer2ecfc1173708319$funcRENDERVIEWCOMPOSITE.runFunction(C:\...\coldbox\system\plugins\Renderer.cfc:340)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2854)
at cfRenderer2ecfc1173708319$funcRENDERLAYOUT.runFunction(C:\...\coldbox\system\plugins\Renderer.cfc:477)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfFrameworkSupertype2ecfc1468497528$funcRENDERLAYOUT.runFunction(C:\...\coldbox\system\FrameworkSupertype.cfc:191)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfcontent2ecfc145252155$funcWRAPCONTENTADVICE.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox-ui\handlers\content.cfc:207)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2819)
at cfpage2ecfc1529143993$funcAROUNDINDEX.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\modules\contentbox-ui\handlers\page.cfc:77)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:406)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3001)
at cfController2ecfc1307868152$funcINVOKER.runFunction(C:\...\coldbox\system\web\Controller.cfc:764)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2854)
at cfController2ecfc1307868152$funcRUNEVENT.runFunction(C:\...\coldbox\system\web\Controller.cfc:631)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424)
at cfColdbox2ecfc1989802807$funcPROCESSCOLDBOXREQUEST.runFunction(C:\...\coldbox\system\Coldbox.cfc:239)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2483)
at cfApplication2ecfc1383382793$funcONREQUESTSTART.runFunction(C:\...\wwwroot\[APPLICATION DIRECTORY]\Application.cfc:183)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108)
at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:279)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:463)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:153)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
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.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:450)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:197)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)


Message has been deleted

J Garrett

unread,
Jan 13, 2017, 9:36:19 AM1/13/17
to ColdBox Platform
Actually, in my case I couldn't use isInstanceOf() since I extend the handler when creating my own. So, I used interceptData.mapping.getName() and matched that to the original handler name I was looking for (note the use of application.cbcontroller.getSetting("modulesInvocationPath") to concat with the handler name to get the cfc path). For those looking for a solution to get something like my original afterInstanceCreation() to work, here's what I used:

// handler overrides
variables.handlerOverrides = {
"#application.cbcontroller.getSetting('modulesInvocationPath')#.contentbox-ui.handlers.page" : "[CUSTOM MODULE NAME]:page.init"
};  

public void function afterInstanceCreation(event,interceptData,buffer)  {

// override handlers
if (listFindNoCase(structKeyList(variables.handlerOverrides), interceptData.mapping.getName()))
{
var handlerService = controller.getHandlerService();
interceptData.target = handlerService.gethandler(handlerService.getRegisteredHandler(variables.handlerOverrides[interceptData.mapping.getName()]),controller.getRequestService().getContext());
}

}



Brad Wood

unread,
Jan 13, 2017, 1:09:28 PM1/13/17
to ColdBox Platform
> I'm not starting any threads, so it shouldn't be async. It's ContentBox/Coldbox web page request.

Well, you may not have written the cfthread code, but that doesn't mean it couldn't have been async.  ColdBox can call interceptors in threads for you if they are simply declared as async.  That's why I wanted to see the stack trace.

So, it's good to see you have a work around, but I still this there is some bug going to under the covers in ColdFusion.  Can you elaborate on on where the CFC is physically stored on your file system?  Any funkiness like symlinks, etc that might be coming into play?  If you can get a reproducible example that shows the error, it would be great to put in a ticket for Adobe to look at.  

Also, can you dump out following code snippets at the point where the error happens and let me know what the output is:
getPageContext().getRequest().getAttribute("javax.servlet.include.servlet_path" )
getPageContext().getRequest().getServletPath()
getPageContext().getRequest().getClass().getName()

Thanks!

~Brad

J Garrett

unread,
Jan 17, 2017, 9:52:03 AM1/17/17
to ColdBox Platform
Brad,

The only symlinks would be the typical ColdBox mappings:"/[APPLICATION ROOT FOLDER]/" to establish the application root;and ColdBox, which is not within wwwroot for security purposes. I map these locations in the CF Administrator.

As for the three dumps:

getPageContext().getRequest().getAttribute("javax.servlet.include.servlet_path" ): undefined
getPageContext().getRequest().getServletPath(): /[APPLICATION ROOT FOLDER]/index.cfm
getPageContext().getRequest().getClass().getName(): org.apache.catalina.connector.RequestFacade

John
Reply all
Reply to author
Forward
0 new messages