I'm sure I missed a step somehow in setting up CacheBox, but I can't
seem to even get it to create an agent without throwing an error: "You
have attempted to dereference a scalar variable of type class
java.lang.String as a structure with members."
http://fooey.net/cachebox/samples/simpleblog/
It's doing the exact same thing on my cf9/win2008 server and my cf9/
win7 dev machine
I've tried both the zip off RIA Forge, and updating from svn directly,
but I can't seem to figure out what i'm doing wrong
Huge thanks if I could just get pointed in the right diretion
Here's an example of the full error I'm getting:
You have attempted to dereference a scalar variable of type class
java.lang.String as a structure with members.
The error occurred in E:\inet\wr\cachebox\agentmanager.cfc: line 159
Called from E:\inet\wr\cachebox\agentmanager.cfc: line 11
Called from E:\inet\wr\cachebox\cacheboxservice.cfc: line 71
Called from E:\inet\wr\
fooey.net\cacheboxagent.cfc: line 121
Called from E:\inet\wr\
fooey.net\cacheboxagent.cfc: line 76
Called from E:\inet\wr\
fooey.net\cachetest.cfm: line 4
157 : <cfset result = {
158 : context = typeMan.getAvailableContext(agent.getContext()),
159 : storageType = cfg.getPreferredMedium(result.context),
160 : evictPolicy = evict,
161 : evictAfter = evictAfter,
Resources:
Check the ColdFusion documentation to verify that you are using the
correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/
532.4 (KHTML, like Gecko) Chrome/
4.0.237.0 Safari/532.4
Remote Address 127.0.0.1
Referrer
Date/Time 11-Nov-09 09:11 PM
Stack Trace
at cfagentmanager2ecfc1749725276$funcGETAGENTSETTINGS.runFunction(E:
\inet\wr\cachebox\agentmanager.cfc:159) at
cfagentmanager2ecfc1749725276$funcREGISTERAGENT.runFunction(E:\inet\wr
\cachebox\agentmanager.cfc:11) at
cfcacheboxservice2ecfc590269274$funcREGISTERAGENT.runFunction(E:\inet
\wr\cachebox\cacheboxservice.cfc:71) at
cfcacheboxagent2ecfc1475344874$funcREGISTERAGENT.runFunction(E:\inet\wr
\
fooey.net\cacheboxagent.cfc:121) at
cfcacheboxagent2ecfc1475344874$funcINIT.runFunction(E:\inet\wr
\
fooey.net\cacheboxagent.cfc:76) at cfcachetest2ecfm1054945811.runPage
(E:\inet\wr\
fooey.net\cachetest.cfm:4)
coldfusion.runtime.ScopeCastException: You have attempted to
dereference a scalar variable of type class java.lang.String as a
structure with members.
at coldfusion.runtime.Cast._Map(Cast.java:1215)
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1615)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize
(CfJspPage.java:1794)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize
(CfJspPage.java:1787)
at cfagentmanager2ecfc1749725276$funcGETAGENTSETTINGS.runFunction(E:
\inet\wr\cachebox\agentmanager.cfc:159)
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)
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 cfagentmanager2ecfc1749725276$funcREGISTERAGENT.runFunction(E:\inet
\wr\cachebox\agentmanager.cfc:11)
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:490)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
at cfcacheboxservice2ecfc590269274$funcREGISTERAGENT.runFunction(E:
\inet\wr\cachebox\cacheboxservice.cfc:71)
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)
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:490)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
at cfcacheboxagent2ecfc1475344874$funcREGISTERAGENT.runFunction(E:
\inet\wr\
fooey.net\cacheboxagent.cfc:121)
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)
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 cfcacheboxagent2ecfc1475344874$funcINIT.runFunction(E:\inet\wr
\
fooey.net\cacheboxagent.cfc:76)
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)
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:495)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:354)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301)
at cfcachetest2ecfm1054945811.runPage(E:\inet\wr\
fooey.net
\cachetest.cfm:4)
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:
363)
at coldfusion.filter.RequestMonitorFilter.invoke
(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:
40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
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:53)
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)