Hi Ezra, you're right, the call to the helper is not placed in the init() method of the controller. I will send you the mentioned config and controller files off-list. Many thanks for looking over them! Please feel free to comment/criticize everything that comes to your mind - even though it's not related to my problem. This is my first project with Model-Glue and I still need to learn a lot :-)
Many Thanks, Steve On 2 Jun., 19:39, Ezra Parker <[email protected]> wrote: > Hi Steve, > > First off, my apologies for the tardy reply. > > The only time I have observed the problem you're describing was when > the call to the helper was done from within the init() method of a > controller (which won't work, by the way, as the helpers are injected > after the controllers are instantiated). From the error you posted, > however, I can see that this was not what happened in your > application, so I'm not sure what is causing the problem. > > Would you be able to send me your ModelGlue.xml and the relevant > controller(s) off-list so I can take a look? > > -- > Ezra > > On Mon, May 31, 2010 at 1:33 AM, steve82 <[email protected]> > wrote: > > Hi everybody, > > > I've build a Model-Glue application for my firm and we're getting some > > errors lately. We are currently using Model-Glue version 3.1.299. The > > error appears every morning. So I assume, that this is the time when > > Model-Glue first loads up for that day and stores a copy of itself in > > the application scope. > > > The following error message appears: > > > Oops! > > > Message Element LOGINHELPER is undefined in a Java object of type > > class [Ljava.lang.String;. > > Detail > > Extended Info > > Tag Context C:\Inetpub\wwwroot\office\controller\Security.cfc (42) > > C:\Inetpub\wwwroot\lib\cf\frameworks\mvc\modelglue\ModelGlue\gesture > > \eventrequest\EventContext.cfc (326) > > C:\Inetpub\wwwroot\lib\cf\frameworks\mvc\modelglue\ModelGlue\gesture > > \eventrequest\EventContext.cfc (253) > > C:\Inetpub\wwwroot\lib\cf\frameworks\mvc\modelglue\ModelGlue\gesture > > \eventrequest\phase\Invocation.cfc (91) > > C:\Inetpub\wwwroot\lib\cf\frameworks\mvc\modelglue\ModelGlue\gesture > > \eventrequest\EventContext.cfc (180) > > C:\Inetpub\wwwroot\lib\cf\frameworks\mvc\modelglue\ModelGlue\gesture > > \ModelGlue.cfc (243) > > C:\Inetpub\wwwroot\lib\cf\frameworks\mvc\modelglue\ModelGlue\gesture > > \ModelGlue.cfm (83) > > C:\Inetpub\wwwroot\lib\cf\frameworks\mvc\modelglue\ModelGlue\gesture > > \ModelGlue.cfc (243) > > C.\Inetpub\wwwroot\office\index.cfm (50) > > > The code in Line 42 in our Security Controller just tries to call a > > method from the LoginHelper.cfc that is stored in the helpers > > directory: > > > <cfif NOT helpers.LoginHelper.isLoggedIn(sid)> > > <cfset arguments.event.addResult("notLoggedIn") /> > > <cfelse> > > <!--- creation of user object goes here ---> > > </cfif> > > > It looks to me that Model-Glue tries to access the helpers scope but > > it's not initialized yet - instead CF treats it as a normal string > > variable. > > > Any ideas about how this problem and how one could prevent this from > > happenig? Telling my colleagues that they have to be more patient in > > the morning when the app first load up doesn't work - i already tried > > that :-) > > > Many thanks, > > > Steve > > > -- > > 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
