Bug in latest version

3 views
Skip to first unread message

Todd Sharp

unread,
Aug 8, 2010, 4:55:24 PM8/8/10
to ColdSpring-Users
I'm getting the following error:

http://twitpic.com/2cwxy2/full

In my app. But only when I try to create the bean factory myself in
my Model-Glue app like so:

application.factory =
createObject("component","coldspring.beans.DefaultXmlBeanFactory").init();
application.factory.loadBeansFromXmlFile(expandPath("/config/
ColdSpring.xml"),true);

The config file is the stock MG config - nothing added whatsoever.

Can anyone point me to where I'd have to go to fix this?

Peter Farrell

unread,
Aug 8, 2010, 5:02:48 PM8/8/10
to ColdSpring-Users
Looks like there is a missing dot between the createobject and the
"init" method in the code (see your exception -- the line snippet
shows it).

.pjf

Todd Sharp

unread,
Aug 8, 2010, 5:02:35 PM8/8/10
to ColdSpring-Users
Nevermind - i had a mistake in my RemotingService - my bad!
--
Todd Sharp
Sharp Interactive, LLC
http://slidesix.com -- Multimedia Enabled Presentation Sharing
IM:  cfsi...@gmail.com
Blog:  http://cfsilence.com
Twitter: cfsilence | slidesix

todd sharp

unread,
Aug 8, 2010, 5:04:15 PM8/8/10
to coldspri...@googlegroups.com
I know peter, but that was a bean generated by ColdSpring itself - and the smoke and mirrors that CS uses to generate this stuff is pretty far beyond me today...

--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To post to this group, send email to coldspri...@googlegroups.com.
To unsubscribe from this group, send email to coldspring-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coldspring-users?hl=en.

Richard Tugwell

unread,
Aug 16, 2010, 9:27:39 AM8/16/10
to ColdSpring-Users
Something similar. I notice in the latest download, there is a CFC in
the /aop/framework/tmp directory (bean_xxxxxxxxxxxx.cfc that has this
sort of syntax error - line 62 (missing dot before init)

CreateObject('component','coldspring.aop.Method')init(variables.target,
arguments.methodName, arguments.args) />

Running Coldspring with CF9.0.0 was no problem, but when I upgraded to
CF9.0.1, the application threw an error complaining about the syntax.

I assumed this was a generated object and maybe shouldn't be in the
distribution, so I just deleted it (not using aop) and everything now
seems ok. I don't know enough to go digging around in Coldspring -
just using it as an object factory
> > coldspring-use...@googlegroups.com<coldspring-users%2Bunsubscrib e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/coldspring-users?hl=en.
>
> --
> Todd Sharp
> Sharp Interactive, LLChttp://slidesix.com-- Multimedia Enabled Presentation Sharing
> IM:  cfsile...@gmail.com

Dennis Clark

unread,
Aug 16, 2010, 1:04:37 PM8/16/10
to coldspri...@googlegroups.com
I agree that the CFC in aop/framework/tmp should not be in the distribution. It looks like an AOP proxy bean generated from the klondikeRecords example that was accidentally committed to the CVS repository back in 2005. I believe is quite safe to delete that file, even if you are using ColdSpring AOP.

I'm curious about the CF 9.0.1 issue: why is ColdFusion trying to process a CFC that is not being referenced by your application? Has anyone else seen this problem?

-- Dennis

Tony Nelson

unread,
Aug 16, 2010, 1:10:32 PM8/16/10
to coldspri...@googlegroups.com
I could be wrong, but I think the errors being thrown are related to ORM trying to find persistent entities. There's a new ORM setting called skipCFCWithError that was added in 9.0.1 that defaults to true. In 9.0.0, any CFCs that had errors were "silently" ignored by ORM.

http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSED380324-6CBE-47cb-9E5E-26B66ACA9E81.html


-Tony


To unsubscribe from this group, send email to coldspring-use...@googlegroups.com.

Tony Nelson

unread,
Aug 16, 2010, 1:11:29 PM8/16/10
to coldspri...@googlegroups.com
Actually skipCFCWithError defaults to false, which is why the errors are being thrown. Sorry about that.


-Tony

Richard Tugwell

unread,
Aug 16, 2010, 3:52:35 PM8/16/10
to ColdSpring-Users
Hi Tony

You're right - I set skipCFCWithError="true", replaced the offending
CFC, and no errors thrown.

Thanks for the insights.

Cheers

On Aug 16, 7:10 pm, Tony Nelson <tonynelso...@gmail.com> wrote:
> I could be wrong, but I think the errors being thrown are related to ORM
> trying to find persistent entities. There's a new ORM setting called
> skipCFCWithError that was added in 9.0.1 that defaults to true. In 9.0.0,
> any CFCs that had errors were "silently" ignored by ORM.
>
> http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSED380324-6CBE...
>
> -Tony
>
>
>
> On Mon, Aug 16, 2010 at 12:04 PM, Dennis Clark <boomf...@gmail.com> wrote:
> > I agree that the CFC in aop/framework/tmp should not be in the
> > distribution. It looks like an AOP proxy bean generated from the
> > klondikeRecords example that was accidentally committed to the CVS
> > repository back in 2005. I believe is quite safe to delete that file, even
> > if you are using ColdSpring AOP.
>
> > I'm curious about the CF 9.0.1 issue: why is ColdFusion trying to process a
> > CFC that is not being referenced by your application? Has anyone else seen
> > this problem?
>
> > -- Dennis
>
> > On Mon, Aug 16, 2010 at 9:27 AM, Richard Tugwell <r.tugw...@forthmedia.com
> >> > > coldspring-use...@googlegroups.com<coldspring-users%2Bunsubscrib e...@googlegroups.com><coldspring-users%2Bunsubscrib
> >> e...@googlegroups.com>
> >> > > .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/coldspring-users?hl=en.
>
> >> > --
> >> > Todd Sharp
> >> > Sharp Interactive, LLChttp://slidesix.com--Multimedia Enabled
> >> Presentation Sharing
> >> > IM:  cfsile...@gmail.com
> >> > Blog:  http://cfsilence.com
> >> > Twitter: cfsilence | slidesix
>
> >>  --
> > You received this message because you are subscribed to the Google Groups
> > "ColdSpring-Users" group.
> > To post to this group, send email to coldspri...@googlegroups.com.
> > To unsubscribe from this group, send email to
Reply all
Reply to author
Forward
0 new messages