Hi guys,
I’ve got a site running on IIS 7 using CB 3.8.1. It’s happened twice in last few days, all the site pages start throwing error and the bugReport emails have no body when this happens.
I’ve found this stack trace in the CF logs though.
Any ideas what could be going on here?
Thanks in advance.
Anuj Gakhar
stack_trace.txt (14.9 KB)
I’ve actually seen that one before. I’m wracking my brains trying to remember what it was. It was something along the lines of perm gen filling up. Here’s a bug for the error:
https://bugbase.adobe.com/index.cfm?event=bug&id=3527009
Here’s some threads I started back in 2012 about the error:
https://groups.google.com/d/topic/coldbox/qgtSWdvCyZc/discussion
https://groups.google.com/forum/#!topic/coldbox/9t37N7_hGwQ
Those links were all on the first page of Google when I searched for “java.lang.NullPointerException at coldfusion.runtime.InterfaceTemplateProxyCache.getTemplateProxyFromPath” so I’m sure you’ve already seen them 
If I recall, I would get that error as a secondary symptom when threads were long-running and it would persist until the server was restarted. I would check your perm gen usage first (Fusion Reactor is your friend) and also see if the bug I linked to above fixes it. You didn’t tell us what version of CF you’re on so I can’t tell if that bug applies to you or not.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
Hi Brad,
Yes, I google’d but couldn’t make much out of those links. I am running CF9 and it would be a shame to having to upgrade just for this reason.
Does it have anything to do with the caching settings in CF? I have tried turning off all caching and I am not sure that’s going to help.
In my instance, I think the only connection was that i was using async calls in my caching that was hitting a bug in CF where “scope hunting” hit the CGi scope after the initial page request had terminated, thus severing the IIS connector link. This causes the Java thread to until the 5 minute timeout waiting on IIS to give it back information about the CGI scope. This operation is also unfortunately “single threaded” due to Java synchronizer locks, so it backs up every other thread on your machine also accessing the CGI scope.
It was in that scenario that I was experiencing the error you reported. When i fixed the cause of my long-running threads, the NPE went away as well.
Have you checked your perm gen space?
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
Hi Brad,
The Max Perm size is currently set to this
java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m
I guess I need to increase this?
Do you have Fusion Reactor installed? If not, I would highly recommend it. Otherwise you’re just guessing. FR will tell you how much of your perm gen space is currently used. If your app doesn’t use all 192m after running for a few hours, then that’s not the problem.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com