Stack Overflow

29 views
Skip to first unread message

Robert Rawlins

unread,
Jun 7, 2013, 12:41:13 PM6/7/13
to coldspri...@googlegroups.com
Hello Guys,

Working on one of my slightly older client projects today, I've got a build which runs just fine in development (Tomcat / Mac) but stack overflows as soon as it's deployed to the staging server (JRUN / Windows).

The stack trace looks something like this:


I've read in a few places that stackoverslows in CS are often caused by circular dependencies - however, I'd guess if that were the case the problem would show it's face in my dev environment, which it doesn't. 

Really hope someone can give me a little assistance in debugging this.

Thanks,

Rob

Dan Wilson

unread,
Jun 7, 2013, 12:50:13 PM6/7/13
to coldspri...@googlegroups.com
Do you have the stack trace from the log?

A stack overflow just means the memory stack got too full of stuff that can't be garbage collected.

You can easily create a stack overflow by looping over a query too many times on a single page.

Having the stack trace would help.


DW

Robert Rawlins wrote:
--
You received this message because you are subscribed to the Google
Groups "ColdSpring-Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to coldspring-use...@googlegroups.com.
To post to this group, send email to coldspri...@googlegroups.com.
Visit this group at http://groups.google.com/group/coldspring-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Robert Rawlins

unread,
Jun 7, 2013, 12:57:34 PM6/7/13
to coldspri...@googlegroups.com
Hey DW,

Thanks for the quick reply. None of the logs on the server containing any of the stack overflow errors for some reason, perhaps the error is effecting the request before the log writer can put anything out? The most recent log entry is in server.txt saying that CF has started.

The only strack trace I have access too is the one I linked in my previous comment.

Thanks buddy.

Rob

Dan Wilson

unread,
Jun 7, 2013, 1:28:13 PM6/7/13
to coldspri...@googlegroups.com
Ahh, right. Not sure why I missed the stack trace link.

So, that is the signature of a circular dependency. I noticed from the stack trace it appears like you have template caching turned on. Have you cleared that out?

I've been some strange errors caused by the wrong template cached.



Friday, June 07, 2013 12:57 PM
Friday, June 07, 2013 12:41 PM

Gavin Baumanis

unread,
Jun 8, 2013, 9:11:58 AM6/8/13
to coldspri...@googlegroups.com
I am sorry for "kind of / sort of " hijacking your thread...
But I thought ColdSpring was supposed to handle circular references / dependencies?
(I don't know myself, so it is almost a question - but I am pretty sure I am right, right?)

And if I am - would that mean it is more a configuration issue than an application issue?
Or perhaps even a CS bug? What version are you using?

Gavin.

Robert Rawlins

unread,
Jun 10, 2013, 4:04:41 AM6/10/13
to coldspri...@googlegroups.com
Hi Guys,

Thanks for the input.

@DW - I did disable all the class caching but still seems to be kicking up a fuss over something, probably a circular dependancy somewhere.

@Gavin - I think you're right, so long as you are using <property> injection or autowire then you're safe, however constructor-args (of which I have quite a few) you might run in to trouble.

After after reading the docs I'm having a little refactor session to swap and constructor arg bean injections over to a property injector- we'll see if this solves my problems.

Rob

Robert Rawlins

unread,
Jun 10, 2013, 9:40:15 AM6/10/13
to coldspri...@googlegroups.com
O.k after some refactoring this morning away from constructor-args for bean dependancies things seem to be much happier!

Thanks for your help on this one chaps.

Rob
Reply all
Reply to author
Forward
0 new messages