There is a difference that we can't handle is the "reset" you have in the cfcontent tag. I suspect that there is a some whitespace that is being introduced. Moving the view outside of the cache block fixes that. It could be that you have output="true" on in your listener methods or even the output attribute omitted as well.

Since with JSON / XML returns, I usually recommend that moving the "view" command outside the cache block. The CFML engines just don't allow us enough control over the request and what you exactly did -- hence things like AddHTTPHeaderByName() methods so we can observe certain request level items. That leads me to the question -- I'd just thought we might be able to add a wrapper method cfcontent so you can control the reset and content type of a return.

.Peter

Sami Hoda said the following on 11/11/2010 02:06 PM:
There does seem to be something funky going on with the cache.

I changed:
<cache alias="SLActivityCodes">
                                <event-arg name="disableLayoutManager" 
value="true"/>

                                <event-arg name="variableToConvert"
value="ARRA2009SLActivityCodes"/>
                                <notify listener="specialLegislationListener"
method="getARRA2009SLActivityCodes"/>

                                <notify listener="AbstractGatewayListener" 
method="getJSONStr" />
                                <view-page name="gn_jsonContent" />
</cache>
to this:

<cache alias="SLActivityCodes">

                                <event-arg name="disableLayoutManager" 
value="true"/>
                                <event-arg name="variableToConvert"
value="ARRA2009SLActivityCodes"/>
                                <notify listener="specialLegislationListener"

method="getARRA2009SLActivityCodes"/>
                                <notify listener="AbstractGatewayListener" 
method="getJSONStr" />
                                
</cache>
<view-page name="gn_jsonContent" />

Basically, I took the view out of the cache, and the data size equalized and all json validation passed.

--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to