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

Reply via email to