having a problem

19 views
Skip to first unread message

fooeydotnet

unread,
Nov 11, 2009, 11:20:59 PM11/11/09
to CacheBox Framework
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)

ike

unread,
Nov 12, 2009, 3:13:45 AM11/12/09
to CacheBox Framework
Hey thanks for joining. :)

Oops! I must have accidentally edited the wrong file when I was
working on it a little while ago, because my copy had been working in
test / development right up until just now when I started looking into
that agentmanager.cfc on line 159 and pushed it forward into my test
directory. Which means the zip copy and the svn copy have had this bug
since what looks like Sep 03 (svn rev 49). Which seems impossible...
it seems like someone else would have mentioned it between then and
now, (or that I must have pushed it forward a few times since then),
but...

in any case, it appears to have just been a simple mistake that I
made. I'm not sure how, but fortunately it was easy to fix and I've
updated the SVN trunk and the zip archive both. Thanks for letting me
know about the issue! :)

I also replaced a number of references to CF8-style structure creation
to improve support for CF7 (which I also don't know if it's working on
CF7 yet).

fooeydotnet

unread,
Nov 12, 2009, 10:00:06 PM11/12/09
to CacheBox Framework
Hello, thank you for the great work and the quick response

Unfortunately, I'm getting a similar error in a different place now

I'm fairly sure I've scrubbed out the previous version, clearing out/
disabling the various template/component caches and dropped in the
latest version, but it's still not cooperating


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\cachebox\samples\SimpleBlog\cacheboxagent.cfc:
line 118
Called from E:\inet\wr\cachebox\samples\SimpleBlog\cacheboxagent.cfc:
line 73
Called from E:\inet\wr\cachebox\samples\SimpleBlog\Application.cfc:
line 23

157 : <cfif find(":",evict)>
158 : <cfset evictAfter = max(1,val(listlast(evict,":"))) />
159 : <cfset evict = listfirst(evict,":") />
160 : <cfelseif listfindnocase("auto,fresh,perf",evict)>
161 : <cfset evict = "none" />
> ...
>
> read more »

s. isaac dealey

unread,
Nov 13, 2009, 12:54:47 PM11/13/09
to cfcac...@googlegroups.com
> Hello, thank you for the great work and the quick response
>
> Unfortunately, I'm getting a similar error in a different place now

Hmm... well the error message looked the same to me, so I took a 2nd
look at the svn log for the last commit (revision 170) and here's my
note

"added modifications for CF7 support (eliminated CF8 structure syntax) -
fixed bug in agent registration related to setting the agent context
(attempted to dereference a scalar variable of type class
java.lang.String as a structure with members - agentmanager.cfc line 159)"

Unfortunately I'm not seeing this as different from the new error you
posted:

"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"

Although I could be overlooking something.

Let me know if there's anything else I can do to help.


--
s. isaac dealey :: AutLabs
Creating meaningful employment for people with Autism
http://www.autlabs.com
ph: 817.385.0301

http://onTap.riaforge.org/blog


fooeydotnet

unread,
Nov 13, 2009, 5:48:40 PM11/13/09
to CacheBox Framework
Ok, thanks

I dropped it on a cf8 development server and it seems to be working
fine
My cf9 server and cf9 dev box still aren't cooperating, so I'm working
on figuring whats different
> Creating meaningful employment for people with Autismhttp://www.autlabs.com
> ph: 817.385.0301
>
> http://onTap.riaforge.org/blog

s. isaac dealey

unread,
Nov 13, 2009, 10:28:11 PM11/13/09
to cfcac...@googlegroups.com
> Ok, thanks
>
> I dropped it on a cf8 development server and it seems to be working
> fine
> My cf9 server and cf9 dev box still aren't cooperating, so I'm working
> on figuring whats different

Great, thanks. :)
Reply all
Reply to author
Forward
0 new messages