Why you should think twice about leaving on the "public JRE" option of the Java JDK installer
Note: This blog post is from 2016. Some content may be outdated--though not necessarily. Same with links and subsequent comments from myself or others. Corrections are welcome, in the comments. And I may revise the content as necessary.This is a follow-up to a post I did in late 2014, CF911: 'Help! I've updated the JVM which ColdFusion uses, and now it won't start!'. In that post, I listed about a dozen common problems that befall people who try to update the JVM that CF is using (and it and this post apply as well to Lucee or BlueDragon, or indeed any Java application server).
In this post, I want to elaborate on one more common mistake. Well, mistake may be too strong word. It's about a default option when you run a Java JDK installer (see the other post for more on JDK vs JRE options).
In short, I make the case here for why you should NOT let the JDK installer implement its "public jre" option.
Changed minimum JVM heap to 1024
Changed maximum jvm heap to 5120
I will note that if you were having outofmemory errors, you would have found references to such in the coldfusion-out.log (in CF's logs folder). Sometimes errors are NOT due to running out of heap. There can be other outofmemory errors, or other non-memory errors, of course.
But if the changes you made solved it, great. As for how this is "now happening", you refer only to running on Windows 10. Were you actually moving to that an older version of CF, like CF9?
If so, there are reasons that CF10 (and above) need more heap than CF9, because some cached things that were previously shared among all apps are now unique to each app.
Steven Neiland has some information about configuring here:
http://www.neiland.n...
And I would expand on his comment to say that one can use the free 14-day trial as well, which may suffice for your problem.
That said, i had said (in my previous comment) that you should look at the CF out log. You said in reply to that, "The weird thing is that there is NO visible error. Just a blank white page." I get that you see no error on screen. Please check the CF out log (look just before the times you have restarted, to see if it had anything at that time).
As for your problem, I would not regard it as "an ACF issue". I understand that tendency, but I spend my days troubleshooting issues for folks (whether on CF, Lucee, or other Java app servers). The problems are RARELY due to the app server itself. They are nearly always about configuration.
Now, I get that you're saying that you came from Windows 7 and CF11 to Windows 10 and CF2016, and "never had any out of memory errors". So first, let's see if your CF2016 logs confirm you are having any now.
And if they do, are you saying you have your CF11 logs and can search them and see no outofmemory (literally, search for that string in the coldfusion-out logs, and all the previous ones that have a different number appended to the filename). Yo may have had had them and not realized it. :-)
Bottom line, whatever is ailing your CF2016 server can almost assuredly be fixed. And it may not be someone else's problem. :-) I guess we'll leave it at, if you DO see oom errors and can solve it, great.
If you don't or can't, and you want it solved, that's what I do on a consulting basis, and I can often solve problems in less than an hour (even if it may have plagued folks for hours, days, or even weeks). See the consulting page at carehart.org, if it comes to that.
Or share what you learn, either as a solution or as perhaps a new clue we can follow up on.
Environment:
Windows 10 64bit
CF11,0,3,292866 64bit
Java Version 1.8.0_25 64bit
I decided to update CF11 from CF11 update 3 to update 13, by doing a single cumulative fix. I was really pleased because everything initially seemed fine, and I thought it might have fixed the original blank screen issue. When I went to login to my bespoke CMS, after submitting my login, I got a blank screen. So, I restarted CF, thinking everything would work again. But, every time I try and login, I get a blank screen, instead of being taken to my CMS dashboard. Now, I did a bit of investigation and I narrowed down the crash point to where my login routine uses jBCrypt-0.4.
I use jBCrypt-0.4 by instantiating it:
<cfset local.jbClassBCrypt = "#request.filepathasset#\lib\jBCrypt-0.4" />
<cfset local.javaloader = createObject('component','com.javaloader.JavaLoader') />
<cfset local.javaloader.init([local.jbClassBCrypt]) />
<cfset application.bcryptlib = local.javaloader.create("BCrypt") />
However, I did a bit of research and found the following link:
http://ports.su/java...
Which seems to state that jBCrypt-0.4 uses JDK1.8 as its dependency. So, I am using the correct JDK for this version of jBCrypt.
I then uninstalled CF11 update 13 and reinstalled CF11,0,3 and my login worked correctly again. This is annoying, because I think the update might have fixed the blank screen memory issue.
The plot thickens...
I will look at my logs tomorrow, and let you know what I find...
That's certainly a horse of a different color. I thought you were implying that it was any and all pages.
So as for your issue, well, it could be that CF embeds a bcrypt library of its own, and somehow there is a conflict (even though you are using javaloader). And perhaps there is a change in that library (or some other one embedded in CF that your library is dependent on) which is changing with one of those updates you are implementing or skipping.
You could of course try one update at a time, to find out which it is (only a little painful).
I will also point out that you no longer need to rely on that 3rd party java loader. CF10 added dynamic classloading of its own:
https://helpx.adobe....
I don't know if there's any reason to expect that the one approach would succeed where the other did not, but given your situation I thought I'd mention it.
The first is a non page specific 'out of memory' error that occurs in CF11,0,3
The second is jBCrypt page specific that only occurs after I update from CF11,0,3 to update 13.
Both problems present a blank white page.
But, I will check my logs tomorrow, so I may get a better idea of what is going on...
So on that point, let me propose (while you wait to see the logs) that perhaps the issue is that there is a config difference between the two CF11 setups (though I realize you may think they are identical). You could output the Settings Summary page for both the old and new CF11 CF admins (there's even a button there to create a PDF), and in comparing the settings you may find something unexpected.
Oct 31, 2017 17:06:35 PM Information [http-bio-8500-exec-19] - Starting HTTP request {URL='https://ipapi.co/0:0:0:0:0:0:0:1/json', method='get'}
Oct 31, 2017 17:06:36 PM Information [http-bio-8500-exec-19] - HTTP request completed {Status Code=200 ,Time taken=1884 ms}
Oct 31, 2017 17:06:43 PM Information [http-bio-8500-exec-16] - Starting HTTP request {URL='http://localhost:850... method='get'}
Oct 31, 2017 17:06:46 PM Error [http-bio-8500-exec-21] - Metaspace The specific sequence of files included or processed is: C:\ColdFusion11\cfusion\wwwroot\advert.establishmindfulness\index.cfm, line: 88
Oct 31, 2017 17:06:46 PM Information [http-bio-8500-exec-16] - HTTP request completed {Status Code=500 ,Time taken=2733 ms}
Oct 31, 2017 17:06:46 PM Information [http-bio-8500-exec-16] - Starting HTTP request {URL='http://localhost:850... method='get'}
Oct 31, 2017 17:06:47 PM Error [http-bio-8500-exec-5] - Metaspace The specific sequence of files included or processed is: C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\modules\ajax-change-scope-value-module.cfm''
Oct 31, 2017 17:06:47 PM Error [http-bio-8500-exec-13] - Metaspace The specific sequence of files included or processed is: C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\default\catalog\category\index.cfm''
Oct 31, 2017 17:06:48 PM Error [http-bio-8500-exec-20] - Metaspace The specific sequence of files included or processed is: C:\ColdFusion11\cfusion\wwwroot\advert.establishmindfulness\index.cfm''
Oct 31, 2017 17:06:48 PM Information [http-bio-8500-exec-16] - HTTP request completed {Status Code=500 ,Time taken=2279 ms}
Oct 31, 2017 17:06:48 PM Information [http-bio-8500-exec-16] - Starting HTTP request {URL='http://localhost:850... method='get'}
Oct 31, 2017 17:06:49 PM Error [http-bio-8500-exec-7] - Metaspace The specific sequence of files included or processed is: C:\ColdFusion11\cfusion\wwwroot\advert.establishmindfulness\index.cfm''
Oct 31, 2017 17:06:49 PM Information [http-bio-8500-exec-16] - HTTP request completed {Status Code=500 ,Time taken=1154 ms}
Oct 31, 2017 5:06:46 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception [ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at coldfusion.compiler.ExprClassLoader.defineStatement(ExprClassLoader.java:70)
at coldfusion.compiler.ExprClassLoader$StatementCache.fetch(ExprClassLoader.java:83)
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.compiler.ExprClassLoader$ExprCache.fetchSerial(ExprClassLoader.java:384)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.compiler.ExprClassLoader.compileStatement(ExprClassLoader.java:244)
at coldfusion.compiler.ExprClassLoader.evaluate(ExprClassLoader.java:149)
at coldfusion.runtime.CFPage.Evaluate(CFPage.java:2321)
at coldfusion.runtime.CFPage.IIf(CFPage.java:2311)
at cfdump2ecfm2106091068$funcINITATTRIBS._factor27(/WEB-INF/cftags/dump.cfm:2319)
at cfdump2ecfm2106091068$funcINITATTRIBS.runFunction(/WEB-INF/cftags/dump.cfm:2297)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2840)
at cfdump2ecfm2106091068._factor54(/WEB-INF/cftags/dump.cfm:460)
at cfdump2ecfm2106091068.runPage(/WEB-INF/cftags/dump.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56)
at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:332)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986)
at cfonError_include2ecfm5551770.runPage(C:\ColdFusion11\cfusion\wwwroot\advert.establishmindfulness\config\appcfc\onError_include.cfm:88)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
] with root cause
javax.servlet.ServletException: ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at coldfusion.compiler.ExprClassLoader.defineStatement(ExprClassLoader.java:70)
at coldfusion.compiler.ExprClassLoader$StatementCache.fetch(ExprClassLoader.java:83)
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.compiler.ExprClassLoader$ExprCache.fetchSerial(ExprClassLoader.java:384)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.compiler.ExprClassLoader.compileStatement(ExprClassLoader.java:244)
at coldfusion.compiler.ExprClassLoader.evaluate(ExprClassLoader.java:149)
at coldfusion.runtime.CFPage.Evaluate(CFPage.java:2321)
at coldfusion.runtime.CFPage.IIf(CFPage.java:2311)
at cfdump2ecfm2106091068$funcINITATTRIBS._factor27(/WEB-INF/cftags/dump.cfm:2319)
at cfdump2ecfm2106091068$funcINITATTRIBS.runFunction(/WEB-INF/cftags/dump.cfm:2297)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2840)
at cfdump2ecfm2106091068._factor54(/WEB-INF/cftags/dump.cfm:460)
at cfdump2ecfm2106091068.runPage(/WEB-INF/cftags/dump.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56)
at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:332)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986)
at cfonError_include2ecfm5551770.runPage(C:\ColdFusion11\cfusion\wwwroot\advert.establishmindfulness\config\appcfc\onError_include.cfm:88)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Oct 31, 2017 5:06:47 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception [ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:509)
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:387)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:642)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:127)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
] with root cause
javax.servlet.ServletException: ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:509)
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:387)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:642)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:127)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Oct 31, 2017 5:06:48 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception [ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:509)
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:387)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:642)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:127)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
] with root cause
javax.servlet.ServletException: ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:509)
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:387)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:642)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:127)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Oct 31, 2017 5:06:48 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception [ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
] with root cause
javax.servlet.ServletException: ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Oct 31, 2017 5:06:49 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception [ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
] with root cause
javax.servlet.ServletException: ROOT CAUSE:
java.lang.OutOfMemoryError: Metaspace
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
OutOfMemoryError: Metaspace
So you're running out of metaspace, not heap. That's addressed by your maxmetaspacesize argument in the CF JVM arguments. You probably will see it set to 192, or if you imported settings from when you ran CF on Java 7, Adobe would have looked at your maxpermsize setting and used that to set the maxmetaspacesize. The two are not the same, but they're close enough that Adobe felt that was appropriate.
I would argue that you could either increase it (double it, and try again), or you could just remove it (because it has no default max. It would use as much memory as it needs, up to available memory on the box, so you really only need the max arg to tell it not to use too much.)
A still better approach would be to see what's causing you to reach the limit, but that''s too much to get into in this post, and really a simple increase (or removal) of that value should solve your problem.
I will also install JConsole to monitor my application and find out what the root cause might be. Because my MURA CMS websites have been causing this error as well, I am less anxious that it might be a fundamental flaw in my custom CMS architecture. Unless, of course, MURA CMS has a fundamental flaw in it's architecture. I realise that this might be dirty logic, but I have a feeling that this issue might be a result of just stretching the default memory capabilities of ACF, too far. Generally, I usually have a couple of MURA CMS websites and a couple of my custom CMS instances open in my web browser at any one time, so this is quite a big load for ACF to deal with.
Lastly, can I ask you what the difference between heap space & metaspace is?
In my experience solving problems, they are nearly always configuration-oriented, not about CF having some inability to handle the setup or load at all.
BTW, as for your perception of CF being "non-existent in the UK", well trust me, everyone the world over (and yes, even all over the US) feels the same way. :-)
For some reason, some folks think that they should see an Adobe office and/or CF user group in every major city, along with hundreds of CF job postings in each city, and so on.
The truth is that we don't see that sort of presence anywhere in the US for ANY Adobe product, and I've never seen it for any IT product at all, to be honest.
As for CF jobs, since that's a topic of interest to some, they're out there of course (and in the hundreds. See cf411.com/cfjobs for more, as well as a couple of recent blog posts I've done.)
But no doubt it will never be enough for some people, who will either opt to move on to other work, or leave those with CF work looking to non-CF people to train up--and they can often be better developers with more modern skills anyway, which can be a win.
Anyway, I realize that this is its own topic that has been hashed to death elsewhere. I only commented on it in reply to yours. Let's leave it at that, especially given the focus of this blog post. :-)
One last thing, Charles: mind if I add a subset of your comment as a quote on my http://carehart.org/... page, listing client quotes? I realize you're not technically a client. I could just list you anonymously as "a commenter on my blog" or I could show also your name, company, and/or site if you prefer. I would use this part:
"You are a legend, sir. I am amazed about how sweetly my CMS is running now. Very fast & responsive and no crashes. Just one small change has made an enormous difference. Thank heavens, there are ColdFusion gurus, like yourself, around."
That is just as representative of how I help "real" clients, as reflected in comments from the dozens of others listed there over the years. Still, I wanted to ask you , just like I have always asked them before posting their quote.
It is a very simple scenario, and believe me it was working absolutely fine on CF11 Windows 7, but for some strange reason on CF11 Windows 10, deleting a file does not work, because I think the file is being locked by Coldfusion:
I have double checked the path and it is correct:
<cflock name="delete_globalsettingsimage" type="exclusive" timeout="40">
<cffile action="delete" file="#request.filepath#\#uploadfolder4#\#filenameassociation#" />
</cflock>
The <cffile...> part of the code is line 1360
And the error:
ColdFusion could not delete the file C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/cache/file/brand-logo-email/5E797506-84A6-C828-BCCF23F51DB922B1.png for an unknown reason.
The error occurred in C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm: line 1360
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm: line 1358
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm: line 1349
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm: line 1145
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm: line 1144
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm: line 949
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm: line 4
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm: line 1
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/cms-page-template.cfm: line 215
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/cms-page-template.cfm: line 137
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/cms-page-template.cfm: line 4
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/cms-page-template.cfm: line 1
Called from C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/default/cms/settings/global-settings/index.cfm: line 7
1358 : <cfif FileExists("#request.filepath#\#uploadfolder4#\#filenameassociation#")>
1359 : <cflock name="delete_globalsettingsimage" type="exclusive" timeout="40">
1360 : <cffile action="delete" file="#request.filepath#\#uploadfolder4#\#filenameassociation#" />
1361 : </cflock>
1362 : <cfset destinationfilename = ListFirst(filenameassociation,".") & imagesuffixes4['top'] & "." & ListLast(filenameassociation,".")>
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Remote Address 0:0:0:0:0:0:0:1
Referrer http://localhost:850...
Date/Time 17-Nov-17 05:25 PM
Stack Trace
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor35(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm:1360) at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor36(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm:1358) at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor46(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm:1349) at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor109(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm:1145) at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor119(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm:1144) at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor141(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm:949) at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor151(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm:4) at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409.runPage(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/content/cms-settings-global-settings-content.cfm:1) at cfcms2dpage2dtemplate2ecfm671025178._factor3(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/cms-page-template.cfm:215) at cfcms2dpage2dtemplate2ecfm671025178._factor7(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/cms-page-template.cfm:137) at cfcms2dpage2dtemplate2ecfm671025178._factor8(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/cms-page-template.cfm:4) at cfcms2dpage2dtemplate2ecfm671025178.runPage(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/includes/cms-page-template.cfm:1) at cfindex2ecfm757710257.runPage(C:/ColdFusion11/cfusion/wwwroot/establishmindfulness/default/cms/settings/global-settings/index.cfm:7)
coldfusion.tagext.io.FileUtils$CouldNotDeleteFileException: ColdFusion could not delete the file C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\cache\file\brand-logo-email\5E797506-84A6-C828-BCCF23F51DB922B1.png for an unknown reason.
at coldfusion.tagext.io.FileUtils.delete(FileUtils.java:1037)
at coldfusion.tagext.io.FileTag.delete(FileTag.java:550)
at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:355)
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor35(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\content\cms-settings-global-settings-content.cfm:1360)
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor36(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\content\cms-settings-global-settings-content.cfm:1358)
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor46(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\content\cms-settings-global-settings-content.cfm:1349)
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor109(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\content\cms-settings-global-settings-content.cfm:1145)
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor119(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\content\cms-settings-global-settings-content.cfm:1144)
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor141(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\content\cms-settings-global-settings-content.cfm:949)
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409._factor151(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\content\cms-settings-global-settings-content.cfm:4)
at cfcms2dsettings2dglobal2dsettings2dcontent2ecfm212604409.runPage(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\content\cms-settings-global-settings-content.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986)
at cfcms2dpage2dtemplate2ecfm671025178._factor3(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\cms-page-template.cfm:215)
at cfcms2dpage2dtemplate2ecfm671025178._factor7(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\cms-page-template.cfm:137)
at cfcms2dpage2dtemplate2ecfm671025178._factor8(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\cms-page-template.cfm:4)
at cfcms2dpage2dtemplate2ecfm671025178.runPage(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\includes\cms-page-template.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986)
at cfindex2ecfm757710257.runPage(C:\ColdFusion11\cfusion\wwwroot\establishmindfulness\default\cms\settings\global-settings\index.cfm:7)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.IpFilter.invoke(IpFilter.java:45)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:466)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:142)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151)
at coldfusion.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Let me provide some context to this operation. Before I attempt to delete this file, I have uploaded a different file, but I cannot see how the error would be related, because the 2 files are unique.
If I then try and delete the file, manually, that is causing the error, Windows will not allow me to do so, stating that:
"The action cannot be completed because the file is open in ColdFusion.exe"
If I then restart ColdFusion, I am then able to manually delete the file.
If I try and delete the file, using a test page without the upload operation before hand, it successfully deletes the file, but only directly after I have restarted ColdFusion.
If I try and delete the file, using a test page without the upload operation before hand, but after having tried to delete it using the non test page [with the upload operation], it will not delete the file and throws the same exception.
I am totally baffled.
As I said, I have hundreds of file delete operations in my custom CMS, and all of these operations worked successfully, in CF11 Windows 7.
Environment:
Windows 10 64bit
CF11,0,3,292866 64bit
Java Version 1.8.0_25 64bit
Did you know that there is an Adobe CF forum? That would be the place to ask these questions, and there would be many more people than me alone who would see them (and I do see them. For a very long time, the mechanism in the CF forums that allowed me to be notified of all forum posts was broken. It was fixed recently.)
So please grab all your content in this question and post it instead as a question on the forums: https://forums.adobe... and we can take this up there. (That said, I am at the Adobe CF Summit, which ends today, so I may not see it for a couple of days. And I really can't at the moment take in all you have said here, to offer a quick answer. Sorry.)
And if anyone may be tempted to offer an answer to his question, please hold off and wait for him to post there, again for the sake of others subscribed to or reading this post and only interested in that topic. (Charles, if you want to add the URL to the question here, once you create it, that would be fine.)
I will post this on the forum as suggested...
https://forums.adobe...