Singleton Error

79 views
Skip to first unread message

ec list

unread,
Sep 4, 2012, 9:43:37 AM9/4/12
to ColdSpring-Users
I am using the current ColdSpring Alpha and occasionally I experience
an error. I am a bit of a newbie, so its probably due to something I
have done with my code, but I wanted to run this past the group to see
if there are any ideas:

Message key [SINGLETON] doesn't exist in struct
(keys:functions,synchronized,persistent,extends,name,path,hint,properties,accessors,type,output,fullname)

Stacktrace The Error Occurred in
C:\RailoExpress\webroot\coldspring\core\reflect\Class.cfc: line 42
40: //have to do this stupid juggling because CF8 'can't find
'setLength() on a Builder'
41: var builder = 0;
42: var reflectionService =
getComponentMetaData("coldspring.core.reflect.ReflectionService").singleton.instance;
43:
44: //builder.setLength(builder.lastIndexOf(".")); << CF8 fails on
this because it can't resolve Java Methods. Grrr.

Thank you

Mark Mandel

unread,
Sep 4, 2012, 5:21:36 PM9/4/12
to coldspri...@googlegroups.com

Which version of Railo see you using?

Mark

Sent from my mobile doohickey.

--
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.

ERON Cohen

unread,
Sep 4, 2012, 8:06:46 PM9/4/12
to ColdSpring-Users

Hi,

I am using railo express 3.3 (jetty version, but it happens with tomcat too)

Thank you for the help.

Mark Mandel

unread,
Sep 4, 2012, 9:04:28 PM9/4/12
to coldspri...@googlegroups.com
I think there was a a patch in the latest Railo that has a regression in regards to storing things in metadata, as I'm seeing this issue locally as well, but not on ACF.

I will have to investigate and see what the bug is.

Mark

Chris Blackwell

unread,
Sep 5, 2012, 4:33:01 AM9/5/12
to coldspri...@googlegroups.com

I see this too on Railo 4.0.1. I thought it was my application code,  but apparently not.

Mark Mandel

unread,
Sep 5, 2012, 5:43:35 AM9/5/12
to coldspri...@googlegroups.com

I find if you keep refreshing, it ends up going away, but obviously, that's not practical.

Sent from my mobile doohickey.

ERON Cohen

unread,
Sep 5, 2012, 8:47:14 AM9/5/12
to coldspri...@googlegroups.com
Mark,

Thanks again for your help on this.  Do you think the problem might be related to using it as a factory for ORM objects?  
Should I go back to using the older released version of Coldspring?  Any other advice and ideas welcome!

Mark Mandel

unread,
Sep 9, 2012, 9:09:58 PM9/9/12
to coldspri...@googlegroups.com
So I just tried this on  3.3.4.003 , the stable release, and all worked perfectly.

So looks like it's a weird bug in Railo. Talking to the Railo team about it, not sure what is going on there.

But quick answer - roll back to stable.

Mark

ERON Cohen

unread,
Sep 9, 2012, 9:21:00 PM9/9/12
to coldspri...@googlegroups.com
Mark,

Thanks again for trying to sort this out.  I want to note that for me, reloading does not avert the problem--even reloading multiple times.

Eron

Mark Mandel

unread,
Sep 9, 2012, 9:55:17 PM9/9/12
to coldspri...@googlegroups.com
Which version are you using? 

 3.3.4.003?

Mark

ERON Cohen

unread,
Sep 10, 2012, 9:39:50 AM9/10/12
to coldspri...@googlegroups.com
Yes, that's the correct version I have.

Thanks again,

Eron

Mark Mandel

unread,
Sep 10, 2012, 6:31:02 PM9/10/12
to coldspri...@googlegroups.com
That's weird - works fine for me.

This is even after a server restart / application restart?

Mark

ERON Cohen

unread,
Sep 10, 2012, 7:58:04 PM9/10/12
to coldspri...@googlegroups.com
If I restart Railo, then it works again.  But just refreshing the browser doesn't make any difference.

Eron

Mark Mandel

unread,
Sep 10, 2012, 8:01:29 PM9/10/12
to coldspri...@googlegroups.com
OIC - you get it occasionally.

The issue with Railo later versions is that is happens occasionally.

If you get the error, just re-init your app, it should recreate anything that is missing. You shouldn't have to restart the whole server (unless there are further bugs in Railo, but I've not seen them in my unit tests).

Mark

Mark Mandel

unread,
Sep 10, 2012, 8:01:54 PM9/10/12
to coldspri...@googlegroups.com
That should have read

The issue with Railo later versions is that is happens always.


On Tue, Sep 11, 2012 at 10:01 AM, Mark Mandel <mark....@gmail.com> wrote:
The issue with Railo later versions is that is happens occasionally.



ERON Cohen

unread,
Sep 10, 2012, 8:24:14 PM9/10/12
to coldspri...@googlegroups.com
Yeah, that's correct.  It works for a while then it comes up...I guess I could do "try/catch" on that code and then reinitialize the app, but really its something I have to resolve because the reset causes people to get logged out etc, the way we have it configured right now.  I am going to switch to the stable version of ColdSpring asap.

Eron

Mark Mandel

unread,
Sep 10, 2012, 8:33:14 PM9/10/12
to coldspri...@googlegroups.com
So are you saying that on a production app you are getting the error?

I've only ever seen it very rarely on ACF, and then only in development.

Mark

ERON Cohen

unread,
Sep 10, 2012, 8:48:43 PM9/10/12
to coldspri...@googlegroups.com
Its actually more of a beta, but yeah.  I have only tried this app on Railo so far.  Its kind of unpredictable when its going to occur.  Sometimes the app works for hours without ever seeing that Singleton error, and sometimes it only lasts for a few minutes.  I don't really know what it could be, maybe some sort of issue with concurrent users.

Eron

Mark Mandel

unread,
Sep 10, 2012, 8:53:17 PM9/10/12
to coldspri...@googlegroups.com
You aren't reloading CS on every request are you?

Mark
Reply all
Reply to author
Forward
0 new messages