Marc, It sounds to me like the MG application is not initialized when the errors occur. We fixed this in later versions of Model Glue so you may try an upgrade as a quick fix.
Which version are you on, by the way? DW On Dec 16, 2011 10:01 AM, "marc" <[email protected]> wrote: > pulling my hair out over this one... > > I have an application cms.local where I can manage data and it also serves > as a dataprovider for websites. When I directly access the webapp via a > browser I can manage content (add, modify, delete etc). Websites can > display content by calling the remote facade. > > This is a cross-domain call: The *calling* website 'domain.local' is on a > different domain than the *called* application 'cms.local' so the ajax() > call has the jsonp parameter set to true. > > 4 times out of 5 this does not work. Then I get no data back from my Ajax > calls and Firebug shows that the ajax calls to cms.local return HTTP 500 > codes. All errors came from the ModelGlue framework. > > I checked the MG configuration via getModelGlue().configuration in a > controller and it shows the reload parameter set to "false" in development > as it should. Deleting cookies from the calling website (domain.local) made > no differencce either - only sometimes the ajax calls returns data, mostly > Firebug's net view shows error messages in response to the ajax calls. > > These are: > > "Element modelglue.onApplicationInitialization is undefined in a CFML > structure referenced as part of an expression. > > The error occurred in > F:\www\CMS\Frameworks\ModelGlue\gesture\MemoizedModelGlue.cfc: line 84" > > or > > The element at position 2 cannot be found. > > The error occurred in > F:\www\CMS\Frameworks\ModelGlue\gesture\module\XMLModuleLoader.cfc: line > 426" > > What can be the problem here and how can I fix it??? > > Marc > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > 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/model-glue?hl=en -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. 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/model-glue?hl=en
