『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
The official community for ColdFusion.
新着順
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WS578003649f39bc20-258e7ab21350d4577c9-8000.html
Hi, We recently did a upgrade from CF2016 to CF 2021 and a couple of our functionality is not working. Getting the error <servername> didn’t send any data. ERR_EMPTY_RESPONSEThe request has exceeded the allowable time limit Tag: cfoutput The specific sequence of files included or processed is: /var/www/html/WW/App/index.cfm, line: 8 How could we resolve this? Any help is appreciated very much. ThanksSajan
Hello,I'd like to pull specific data off a page using cfhttp if it's possible. I start by getting the entire page.<cfhttp url="https://somesite.com/stream/" result="test"> <cfdump var="#test#">In a perfect world, I'd like to extract just the first occurrence of the title and artist from the results into two variables.<li><span class="song-time">1:49 PM</span>&nbsp;<span class="song-title">Wanted Dead Or Alive</span>—<span class="song-artist">Bon Jovi</span></li>Is there a way to capture everything between the two span classes into two variables? I don't need the time span. Thanks!Gary
We are using ColdFusion 2018, update 13. Our setup is that we are an internal shop with a production environment, test environment and the each developer has a local development environment on our PC's. We have a situation where a colleague is using a CFDocument tag which formats and generates the pdf great on a few of the development environments, but does not on all. The formatting is also not working on our test or production environment. Below is the cfdocument tag with <cfdocument format="pdf" pagetype="A4" orientation="portrait" fontEmbed="true" unit="cm" localUrl="true" filename="#somefilename#.pdf" overwrite="yes" marginLeft="0" margintop="0" marginright="0" marginbottom="0"> <div> some formatted html </div> </cfdocument> This is what it looks like when it works: This is what it looks like when it does not work: Any help is appreciated in what to look for.Thanks.
We've all built forms that use common reference data like country codes/names, states, etc. Historically I've always stored this type of information in a database that I would query as needed. However, some types of reference data may change once in awhile (e.g. zip/postal codes) and maintaining that data across apps can be a bit cumbersome. Now that I've started thinking about apps from a modular HMVC approach (Coldbox fanboy here), I played with the idea of moving reference data into an external module that could be more easily updated and shared, both between apps and with the CF community (e.g. Forgebox).To play around with this concept further, I created a generic module called "DataLib" that would store US States. The first thing I did was eliminate the database dependency, and instead, I stored all of the reference data as a .json file residing in the module. I then created a component that, when instantiated, would read the reference data and deseria
Hi, I have configured IIS and installed Cold Fusion 2021. When I try to launch the website URL, I am receiving 404 message: HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. How can I add a Mime in the handler mapping? Thanks.
Hi, I am using ColdFusion 2018. I am printing a word document (dynamic) using the below code. But there are multiple issues. One is that the image (please refer screenshot) is not aligned. I want the image to be placed on top on extreme left and top (topmargin=0 and leftmargin=0). Also after the image i am placing a text which is not displayed in the generated word document. Please help. If there is a better way to generate word document in coldfusion please post that too. <html><head><style> body { margin:0; } </style></head><body><img src="https://www.getinge-training.com/images/TopHeader.jpg" width="1429" height="496" border="0"></body><cfheader name="content-disposition" VALUE="attachment; filename=1.doc"><cfoutput><table border="0" cellpadding="0" cellspacing="0"><cfset type="application/msword"><tr><td><img src="https://www.getinge-training.com
I'm creating PowerPoint slides using cfpresentation and cfpresentationslide. Database values appear no problem, but images just get an X using hmtl <img src="image.jpg">. I tried putting the images into the same directory as the cfm page, but still nothing. I tried using <cfimage source="image.jpg" action="writeToBrowser"> and even put it in the database as a BLOB and pull it <cfimage source="#image#" action="writeToBrowser">. Nothing works. Please help. Using ColdFusion 11
how to do a two-dimension array in script?
We got a request in today to update java to 11.0.14 (latest). This is our only 2021 server, but it's been up for a bit and unfortunately was installed prior to the version that defaulted to java 11.0.11. We have no issue moving to any version from 11.0.2 up through 11.0.10. Any version after that won't start the service. The only output for an error is:Element JDKPATH is undefined in FORM. The specific sequence of files included or processed is: E:\ColdFusion2021\cfusion\wwwroot\CFIDE\administrator\settings\jvm.cfm, line: 227 "
Hello community,on our new server with CF2021 (Upd. 3), there are regular errors appearing in the exception.log with the following content:"Error","scheduler-2","03/01/22","10:17:21","","The cause of this output exception was that: coldfusion.tagext.sql.QueryParamTag$InvalidDataException: Invalid data value VERTEILER2_PROD_16409_c752c3705ca7899c-AF13A205-D150-F002-4AE23F50F4561FE2 exceeds maxlength setting 40.. The specific sequence of files included or processed is: '', line: 115 "The application "VERTEILER2_PROD" has long-running sessions which are kept alive by regular "pings" sent via javascript from the client's browser, even when there is no user interaction. Don't ask, this is a non-negotiable requirement by some high-level users and has not caused any trouble so far. Apart from the above entries in the exception.log, I haven't had any user feedback about problems. The application itself was migrated without any code changes from the previous CF2016 instance to the new one with
I have allowconcurrent set to FALSE for my CFLOGIN, and it works the way the documentation suggests: if someone starts a new session from a different browser or computer using the same credentials, the original session's Auth User is set to null (GetAuthUser() EQ ""); it's easy for me to detect this and clear the old user's information. But this is the opposite of what I need. I want to trust the original session, and prevent any other user from logging in with those credentials while the first session is open. I can't figure out how to do that. Is there any way to detect in advance that the session for a particular credential already exists, and log out the NEW session instead of the OLD session? Or, rather, prevent the New session from being logged in at all? <cflogout session="others"> seems again to be weighted toward the new session always being the valid one, and that's not what I need. Thanks for your advice!
We have applied patch 13 to our ColdFusion 2018 Sunapsis server. The two files below are still on the server and are in use by ColdFusion. Regarding the information below, should we now have the security issue resolved? Thanks, Lewis I got more information about this. I had wrong information before. According to our lead developer, Tim, you will not be able to completely delete those files. sunapsis does not use those .jar files but ColdFusion *does* so they should not be deleted.Per Tim:Adobe is moving off of Log4J 1.2 for whatever the next update is.Coldfusion has 2 different versions of Log4J. It has Log4J 1.2.x and Log4J 2.x. 2.x was upgraded to 2.17 in Update 13. 1.2.x was left alone but is still used.You *could* unzip the .jar files and remove the specific class files and re-zip them, but you cannot delete the entire file.Adobe on Log4J 1.2.x vulnerability: &n
Hola, Alguien podría ayudarme, busco una forma de aplicar variables de ambiente PROD/DEV, y poder desde ahí tomar los valores como URL o credenciales de servicios Web o APIs , etc.
Cron expression to schedule the task which will run at 11:45 pm at the end of the year
Hi community,we are moving from our old CF2016 environment (Apache 2.4 on SLES 12), which has been working without major problems for many years, to CF2021 with Apache 2.4 on SLES 15. Yes, I'm fully aware that SLES is NOT on the list of supported OSes for CF2021, but for the time being, I have no choice due to inhouse policy.With CF2021 (Update level 3) we now experience major problems with frequent crashes of Apache subprocesses, which seem to be related to cfhttp calls. These calls do not fail every time, but frequently and I cannot find a pattern to this. Only house-internal URLs, mostly https://, are called with cfhttp, I'm fairly certain that this is NOT a certificate problem since the inhouse Root- and Sub-CA-Certificates were imported into the cacerts store.In /var/log/warn there are countless entries like this:2022-02-24T14:55:59.909952+01:00 srvanawebx3 systemd-coredump[34008]: Process 33666 (httpd-prefork) of user 1004 dumped core.#012#012Stack trace of thread 33668:#012#0 0
Cordova version 11 android app crashes while Launch on emulator with Gradle 7.4 When i generate build using coldfusion builder 2018, the build is generated successfully. but when i run it on android emulator, it install successfully but app keeps crashing while Launch. Any clue as to why is it happening. its a very simple "Hello World" app with no plugin in use. Note: Cordova version 9.0.0 builds and runs the app on same emulator successfully without crashing. Any ideas?
Hi,I have a stuct that looks like this:If I need to display the attributes array. This works:<cfoutput>#shipment_response.data.rates["9"].attributes[1]#</cfoutput> However sometimes the Array is [empty]. How can I determine if it exists? I tried: <cfif StructKeyExists(shipment_response.data.rates["9"], "attributes[1]")> <cfoutput>#shipment_response.data.rates["9"].attributes[1]#</cfoutput> </cfif>It doesn't execute the cfoutput either way (exists or empty). What am I doing wrong with StructKeyExists? Thanks in advance for any suggestions!Gary
I read the security bullitins around this jar file coming up in security scans. I noticed that in one of my instances (test) for whatever reason that log4j.jar file is completly missing in the /jetty/lib/ext folder but yet the CF server is running fine. In our dev/prod instances though the log4j-1.2.17.jar is in the /jetty/lib/ext folder and can't be deleted or renamed becasue its in use even when the CF server is stopped.. I guess the question here is 1. Why would it be missing on one server but not the other (Identical deployment; Same versions; etc.). 2. Can these log4j versions be ignored as vulnerable. I know in previous discussions only certain CVES are mentioned but our scanners pick up reference to the jetty instance being vulnerable to.CVE 2020-9488CVE 2022-23302CVE 2022-23305CVE 2022-23307
Your client-side CFML code has encountered an initialization error. The required plugins cannot be loaded successfully within the timeout period. i am facing this issue and not sure as to how i can fix this issue. i am using coldfusion 2021 standard edition and i am trying to access device camera using following code: <html><head><title>camera camera. aa aa.</title><script type="text/javascript">function src_to_img(img_id,data_to_write){document.getElementById(img_id).src=data_to_write;}</script></head><body><cfclientsettings enableDeviceAPI=true><cfclient><cffunction access="public" name="getpiccam" returntype="void" verifyclient="Yes"><cfset opt = cfclient.camera.getOptions()><cfset response = cfclient.camera.getPicture(opt,true)><cfset response ='data&colon;image/jpeg;base64,'+ response><cfset src_to_img("myimg", response)></cffunction></cfclient><button
Will Adobe provide a Coldfusion 2018 hotfix to address vulnerability in Tomcat 9? We currently have version 9.0.50. See CVE-2021-42340.Thank you.
I'm trying to migrate from cf11 to cf21 and I'm getting a series of errors which I assume are related to hibernate.I already tried to use the .car generated in cf11 for cf21....this is the entire stack trace:java.lang.NullPointerException at com.sun.xml.bind.v2.runtime.unmarshaller.StAXConnector$1.getPublicId(StAXConnector.java:101) at org.apache.xerces.util.SAXLocatorWrapper.getPublicId(Unknown Source) at org.apache.xerces.xni.parser.XMLParseException.<init>(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValid
So this is a new installation running some old apps (which do work).One thing, though, is that try as I might, I can't get the debug information to get tacked onto the page.I've enabled it in cfadministratorEnable Robust Exception Information And I believe my IP address is listed in View / Remove Selected IP Addresses for Debug OutputAnd I've created a test page with<cfsetting showdebugoutput="Yes">What am I missing?!
Hello,I just installed ubuntu 13.10, and it comes with apache 2.4, which means the next LTS of ubuntu will include apache 2.4. I also read that Fedora 18 and up come with apache 2.4, and so RHEL 7 could also use apache 2.4 instead of 2.2.I understand that 2.4 is not supported now. When will ColdFusion support apache 2.4?Thanks,Jonathan Morgan
I'm working with an application running on ColdFusion 2018 and Java 11. It uses threads to make multiple http requests at once to reduce the wait time of loading data. About once a month, sometimes more, we start to get error reports of java.lang.NoSuchMethodException: coldfusion.runtime.CFDummyComponent.<init>() on the line of code that creates a thread. I haven't found any pattern to it and the error seems to just keep happening for every request that goes through the affected code path after it's first triggered until the server is restarted. This is occurring in production but I haven't been able to reproduce it locally so I have a feeling it's related to the number of users of the system. Can anyone offer a suggestion on what could be the cause? Please see the related code and error dump snippets below. threadService.cfc/* * Runs all supplied threads and returns the results in a structure where each key * is the name of a thread and contains the results of running
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
申し訳ございません。このファイルは、ダウンロードしても安全かどうか、内容を確認中です。数分後にもう一度お試しください。
申し訳ございませんが、当社のウイルススキャナは、このファイルをダウンロードすることは安全ではないと検出しました。