Bud,
Normally, when I see errors, they bother me too. However, in the case of the
errors you are seeing in the ColdFusion debugging coming from Model Glue and
from ColdSpring, the errors are not indicative of any problem, rather a
decision to an alternative code path.
For example, here is the code that generates the error you see about ORM:
<cftry>
<cfset svc = mg.getBean("ormService") />
<cfset adapter = mg.getBean("ormAdapter") />
<cfset mg.setOrmService(svc) />
<cfset mg.setOrmAdapter(adapter) />
<cfcatch type="coldspring.NoSuchBeanDefinitionException">
<!--- No bean, no ORM. --->
</cfcatch>
</cftry>
<cfif not isObject(getOrmAdapter())>
<cfset arguments.event.addTraceStatement("ORM", "No ORM adapter is
configured. You will not be able to scaffold or use generic database
messages.") />
</cfif>
Now we could have written this code to be more aware of what was in
ColdSpring, so we'd know whether or not there was in fact a configured ORM
adapter. But that would have required making Model Glue a lot more aware of
ColdSpring than we wanted. We would also have had to add a lot more checks
and processing inside Model Glue for this purpose and it just didn't make
any sense to do it that way.
So, the logical way to handle it was to directly ask ColdSpring for the
bean:
<cfset svc = mg.getBean("ormService") />
<cfset adapter = mg.getBean("ormAdapter") />
And let ColdSpring try to work out whether it had such a configuration and
whether the bean could be created completely. ColdSpring throws an error if
it doesn't work out, which we catch here:
<cfcatch type="coldspring.NoSuchBeanDefinitionException">
<!--- No bean, no ORM. --->
</cfcatch>
So you see, these errors are really two different applications communicating
to make decisions.
DW
On Wed, Feb 10, 2010 at 10:32 AM, Bud <[email protected]> wrote:
> Thanks. There is not a noticeable improvement with all debugging off
> (CF and MG). Maybe 18 seconds as opposed to 20. It's very fast once
> everything has been initialized. All those errors bother me.
>
> On Feb 10, 7:51 am, Doug Hughes <[email protected]> wrote:
> > Try turning off debugging in the CF admin.
> >
> > I'm not sure what that message is about.
> >
> > Doug Hughes, President
> > Alagad Inc.
> > [email protected]
> > 888 Alagad4 (x300)
> > Direct: 651 Alagad4 (651-252-4234)
> > Fax: 888-248-7836
>
> --
> 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]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>
--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew.”
Guillaume Apollinaire quotes
--
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