Skip to content

Instantly share code, notes, and snippets.

@jamiejackson
Created March 13, 2013 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiejackson/5156840 to your computer and use it in GitHub Desktop.
Save jamiejackson/5156840 to your computer and use it in GitHub Desktop.
struct
Detail [empty string]
ErrNumber 0
Message Variable GETURLCLASSLOADER is undefined.
StackTrace coldfusion.runtime.UndefinedVariableException: Variable GETURLCLASSLOADER 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 cfJavaLoader2ecfc575258209$funcSWITCHTHREADCONTEXTCLASSLOADER.runFunction(/var/www/apps/onecpd/wwwroot/requirements/javaloader/javaloader_v1.1/JavaLoader.cfc:133) 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 cfthing2ecfc717212873$funcFOOSWITCHED.runFunction(/var/www/apps/onecpd/wwwroot/deleteme_jj/thing.cfc:14) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) 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 cfthing2ecfm717212895.runPage(/var/www/apps/onecpd/wwwroot/deleteme_jj/thing.cfm:12) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:360) 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.LicenseFilter.invoke(LicenseFilter.java:27) 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.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$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
TagContext
array
1
struct
COLUMN 0
ID ??
LINE 133
RAW_TRACE at cfJavaLoader2ecfc575258209$funcSWITCHTHREADCONTEXTCLASSLOADER.runFunction(/var/www/apps/onecpd/wwwroot/requirements/javaloader/javaloader_v1.1/JavaLoader.cfc:133)
TEMPLATE /var/www/apps/onecpd/wwwroot/requirements/javaloader/javaloader_v1.1/JavaLoader.cfc
TYPE CFML
2
struct
COLUMN 0
ID CF_UDFMETHOD
LINE 14
RAW_TRACE at cfthing2ecfc717212873$funcFOOSWITCHED.runFunction(/var/www/apps/onecpd/wwwroot/deleteme_jj/thing.cfc:14)
TEMPLATE /var/www/apps/onecpd/wwwroot/deleteme_jj/thing.cfc
TYPE CFML
3
struct
COLUMN 0
ID CF_TEMPLATEPROXY
LINE 12
RAW_TRACE at cfthing2ecfm717212895.runPage(/var/www/apps/onecpd/wwwroot/deleteme_jj/thing.cfm:12)
TEMPLATE /var/www/apps/onecpd/wwwroot/deleteme_jj/thing.cfm
TYPE CFML
Type Expression
name GETURLCLASSLOADER
<cfcomponent>
<cfscript>
function init(required javaloader)
{
//mixin the function
variables.switchThreadContextClassLoader = javaloader.switchThreadContextClassLoader;
return this;
}
function fooSwitched()
{
//call the mixin, and return result.
return switchThreadContextClassLoader("foo");
}
</cfscript>
<cffunction name="foo" output="true">
<!--- all my stuff --->
</cffunction>
</cfcomponent>
<cfset variables.javaloader = createObject("component", "javaloader.JavaLoader")
.init(
loadPaths= [
expandPath("/../GeoServices_prod")
],
loadColdFusionClassPath=true
)
/>
<cfset thing = createObject("component", "thing").init(variables.javaloader) />
<cfset var="#thing#" />
<cfset blah = thing.fooSwitched() />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment