Copy link to clipboard
Copied
Hi,
We are experiencing this cache issue, we have 4 instances and one instance, we have this issue,
We manually cleared the cache and uncheck all the cache options and restarted the service but still we got issue,
Any help would be greatly appreciated
<cfquery name="abc" datasource="#xyz#" cachedwithin="#createtimespan(0,1,0,0)#"> 9 : SELECT test_column 10 : FROM tast_table
Error :
| Stack Trace |
at cffacilities2ecfm1461612999.runPage(D:/web/live/mercury/view/facilities.cfm:8)coldfusion.tagext.io.cache.CacheExceptions$CacheInitializationException: Cache initialization failed due to following reason: Error configuring from null. Initial cause was Cannot invoke "java.net.URL.openStream()" because "url" is null at coldfusion.cache.ehcache.GenericEhcache.getCacheManager(GenericEhcache.java:418) at coldfusion.cache.ehcache.GenericEhcache.createCache(GenericEhcache.java:457) at coldfusion.runtime.ApplicationScope.getDefaultQueryCache(ApplicationScope.java:551) at coldfusion.runtime.AppHelper.getDefaultCache(AppHelper.java:1339) at coldfusion.sql.Executive.getCachedQuery(Executive.java:1753) at coldfusion.tagext.sql.QueryTag.setupCachedQuery(QueryTag.java:1111) at coldfusion.tagext.sql.QueryTag.startQueryExecution(QueryTag.java:869) at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:822) at cffacilities2ecfm1461612999.runPage(D:\ABC\xyz.cfm:8) |
Copy link to clipboard
Copied
Additional details : Coldfusion version 2023 (Production)
Windows server
Copy link to clipboard
Copied
We manually cleared the cache and uncheck all the cache options ...
By @ponnada40
When you say that, I assume you have used cacheClear() to clear the cache and you have unchecked cache settings in the ColdFusion Administrator. I don't think these actions are necessary. That is because they are not related to the cache URL.
The developer is not meant to access the cache URL. ColdFusion is itself responsible for instantiating the cache URL object internally. So, what could be the reason why the URL is null?
I suspect two possible causes:
Copy link to clipboard
Copied
Post-posting remark: I saw Charlie's post only after submitting mine. So there might inevitably be some duplication here and there.
Copy link to clipboard
Copied
Thank you @BKBK , We are migrated from CF10 to CF2023, and ehcache.xml file is existed in lib folder,
As developer, we are not setup the environment however I can verify the settings on readonly mode, we will load the ehcache.xml file
Copy link to clipboard
Copied
@ponnada40, while you may await someone offering "the answer", I'll ask some clarifying questions, which may help lead to it. And the first three relate to the only other occasion of someone raising this error. If it's not that, I offer still others:
I'll add that doing all the above may seem daunting, but someone experienced doing them could do it all quickly. It's just not easy to communicate here EVERYTHING to consider in each task.
If you don't get resolution soon either on your own or from our help here, and if you need this solved ASAP (rather than waiting hours or days), I'll add that I can help solve this via remote screenshare consulting--likely in as little as a half hour, maybe less. For more on my rates, approach, satisfaction guarantee, online calendar and more, see the consulting page at carehart.org.
Let us know if you solve it or have answers (you can just offer the numbers) or might offer feedback on the above.
Copy link to clipboard
Copied
Hi @Charlie Arehart ,
Thank a lot for your response, few details below,
Current Version : 2023.0.14.330784
Last hotfix : 12-May-25
Installation: Successful.
508 Successes
0 Warnings
0 NonFatalErrors
0 FatalErrors
I have over 13 years of CF experience but never experience this type of issue, and I am not fully familer with CF installation issue, However I am trying to assist customer
I have checked the coldfusion-out.log and every packege is running and no issue with cache packege ([main] - Package caching started...)
Post migrating CF10 to CF23, I have noticied this cache issue on last month while performing end to end testing, this issue might be there previously but not tested or it just break last month
Verified ehcache.xml file and no differences in both working and non working cf instances
If this issue not resolved in short time then I will recommened customer to contact carehart.org
Thank you very much, will keep you updated
Copy link to clipboard
Copied
@ponnada40 , Thanks for the updates. I agree with you that this is a rare error. Your investigation shows that there is a fundamental mistake somewhere. By fundamental I mean a small mistake that has easily been overlooked.
For example,
<cfdump var="#CacheGetEngineProperties()#" >
The result should be something like
4. Now, run the cachedWithin query once again. Does it now run without errors?
Copy link to clipboard
Copied
Hi @BKBK
Sorry, Its my bad, I dont want to expose my application urls so I renamed it.
We are not allowed to install and setup the CF environment so Infra team has setup the installation and code deployment, As per my obeservation, they replace the neo_datasource.xml and few other files copied from cf10 to cf24, this might cause the issue
Copy link to clipboard
Copied
@ponnada40 you say now that, "As per my obeservation, they replace the neo_datasource.xml and few other files copied from cf10 to cf24, this might cause the issue".
That would be a potentially grave mistake right there. Whoever had that idea of a shortcut isn't considering that the layout of those files can change between cf versions, especially in a jump of 5 versions from 10 to 23.
The other alternatives are the car file feature (in the cf admin), the cfsetup feature replacing it (command line tool enabling json export/import), the "migration wizard" (offered on first launch of the admin, if a new cf is installed on a machine with an old cf), and the cfconfig tool from ortus (which preceded Adobe's cfsetup tool and which can be used for any cf instance, not just those running in CommandBox).
But I realize your folks may not want to hear such an admonition. "It's always worked", they may say (for whatever they'd experienced that with). Or "it's too late/too hard to correct now", they may lament. I don't agree, but I leave you with the above. (And recall my first reply proposed in its point 7 that you might get value comparing the cf admin config of the two instances.
I elaborate on how to do that in a preso I did on this very topic of migrating cf admin settings safely between cf versions, available at carehart.org/presentations.)
One last suggestion related to all that: just keep in mind that this copying of neo files is a potential source of odd errors which may linger and appear in time as seeming "cf bugs". So you would help Adobe or us (when raising another issue) to mention that your folks had made this choice. Otherwise it would be like taking your car to a mechanic complaining about engine problems without telling them that you run your car on alternative fuels. 🙂
Finally, somehow the forums have messed up the presentation order of our replies. Later ones appear after earlier ones. Folks reading along might not notice the time stamps and could be confused by the topics seeming to jump around.
For example, the next reply here is from me from 2 days ago...and then it shows you responding to it just this morning, like this one above it that I'm now responding to. Oy.
Copy link to clipboard
Copied
We are not allowed to install and setup the CF environment so Infra team has setup the installation and code deployment, As per my obeservation, they replace the neo_datasource.xml and few other files copied from cf10 to cf24, this might cause the issue
By @ponnada40
No problem, @ponnada40 . You can always pass our suggestions to your Infra team.
Copy link to clipboard
Copied
So it's possible then that the use of such caching has never worked on this one instance, right? I'm curious: are all 4 instances running the exact same code? Or does this one run its own?
I ask because if they differ, then another thing to consider is your application.cfc/cfm controlling the app in questions. It could be that you specify caching characteristics in that file, which would override whatever is in the admin.
All that said, the dump that bkbk helpfully suggested may give useful clarification (as it too would be affected by app-level config).
Copy link to clipboard
Copied
Thank you @Charlie Arehart , I will check that
Find more inspiration, events, and resources on the new Adobe Community
Explore Now