The official community for ColdFusion.
Recently active
With sandbox enabled, the following error appears:Severe: error deploying web application archiveJava.lang.illegalstateexception: containerbase.addchild: start: prg.apache.catalina.lifecyclexception: failed to start componentIf sandbox is turned off, the archive deploys with no problem.
Hi,We have a requirement to extract the content of an uploaded PDF and then show it in a text area with the same formatting. Our application runs on CF10. We used cfpdf however the extracted text is a single paragraph with No formatting . Is there any way in coldfusion to read pdf as text retaining the source formatting ( 100% accuracy not expected) .Note:1. We tried itext and it works very well however it comes with a licensing cost which I dont want to spend as I'm only going to use this single feature from the budle that itext is providing.2. Tried PDFbox but the formatting is not retained.Thanks,Devlosh
I successfully moved from CF9 to CF11 on Windows 7 environment with no problems. However, I'm trying to move from CF10 to CF11 in another Windows 7 machine but cannot. After a successful install of CF11, I'm still actually running 10,0,0,283922 as confirmed with a <cfdump var="#SERVER#">. I'm still mapped to the CF10 admin, etc. Does anybody know the best thing to do here? Many thanks for your help.
I have 3 <cflayoutarea> tags within like this: <cflayout type="border" fittowindow="true" > <cflayoutarea name="headerArea" align="center" position="top" size="75" overflow="hidden" style="letter-spacing:10px; font-size:34px;"> </cflayoutarea> <cflayoutarea name="contentArea" align="center" position="center" style="border: 3px green solid;" > <img src="img/hd04.jpg"/> </cflayoutarea> <cflayoutarea align="center" position="bottom" size="75" overflow="hidden" style="bottom:0px; height:100px"> </cflayoutarea> </cflayout>My issue/question is as follows:How do I make the center <cflayoutarea> take up 100% of the remaining height? In most browsers, the center <cflayoutarea> is too large and scrolls. Odd
I am using ColdFusion 9 version 9,0,2,282541. I do not have the option to add JVM parameters from the administrator console as the option "Java and JVM " is not available. So if i want add parameters how to proceed furthur?.If we add it in the JVM.conf in the server is that enough or what else has to be done.
Estou rodando uma procedure meio lenta que gera um relatório, ou seja ela retorna vários valores, e está estourando um erro de timeout: The request has exceeded the allowable time limit Tag: CFSTOREDPROCJá tentei utilizar <cfsetting RequestTimeOut='100000' > na página mas infelizmente não funcionou.Como estou utilizando a versão 7 do Coldfusion a tag timeout ainda não funciona para a cfstoredproc. Acredito que isso só funciona na versão 10.Minha pergunta é, o que fazer??? Além de tentar otimizar a procedure, tenho mais alguma opção/alternativa/solução ?
Hi. Is there a way to set timeout for the tag <CFSTOREDPROC>? I mean, for cfquery, it has a parameter timeout in seconds. How about for CFSTOREDPROC? I tried using <cfset startproc = GetTickCount()> <cfsetting requesttimeout = "20" /> <CFSTOREDPROC PROCEDURE="fsdfsd" DATASOURCE="sfsds"> cfprorparams here......... </CFSTOREDPROC> <cfset proc_execute = GetTickCount() - startproc > proc_execute returns about 30,000 ms which is 30 s. But the timeout needs to end it in 20 s. It seems requesttimeout doesn't include the time it took for the stored procedure executing. That is why I'm looking for a timeout in cfstoredproc. Any suggestions? I don't wanna go to the Oracle server and set the timeout settings. I want it done in Coldfusion. Thanks.
I am experiencing an error trying to run the following ColdFusion code:<cfif IsDefined('FORM.add_button.y')><cfquery datasource="#sDSN#"> INSERT INTO lcf_event(event_id, event_date_time, title, description, type, use
Hi,Im thinking of enabling the alerts on our production servers and would like to clarify something.Will enabling the Alerts for (Server Slow, Unresponsive Server, JVM Monitoring) affect performance in a negative regard? Would like to hear from guys experiences on thisAppreciate any responses
Hi. I just have a simple drop down menu. I would just like to have one of the options be a link. How do I do that? I thought I found something yesterday that would work, but it doesn't. Here's what I found:<select name="Socket_Adapter_Choice" onchange="location = this.options[this.selectedIndex].value;"> <option selected value=""></option> <option value="Add_Socket_App.cfm">Add Socket Application</option> <option value="Add_Adapter_App.cfm">Add Adapter Application</option> </select>Thanks.Andy
I have installed CF9 with many files deployed on my server, now I need to migrate to version 11 as I do not have Enterprise Edition I can't do the migration through CAR files. I wonder if there is another method to migrate files and settings from the server. or if the syntax changes that between these versions.
By selecting this option, you can choose the IP address through which you can access the Add-on Services (PDFG/Solr)...I tried 127.0.0.1 and I got an error for using a local IP address! Why?
<script> function myFunction() { document.getElementById("demo").innerHTML += "<select><option value='1'>option1</option><option value='1'>Option2</option><option value='1'>Option3</option><option value='1'>Option4</option><option value='1'>Option5</option></select>"; var select = document.createElement("select"); //replace this second dropdown with the coldfusion query in below place var option = document.createElement("option"); option.value = "SubOption1"; option.text = "SubOption"; select.appendChild(option); document.getElementById("demob").appendChild(select); return false; } </script> The above javascript shows dropdown with 5 options, when any of that is selected, the second dropdown shows and list "SubOption1" as the second dropdown options. My question or where i need further help is, i have a coldfusion queryHide &n
Hi everyone. My company would like to set up a 2 page site with an online order form to purchase a product we are selling. We would like to accept credit cards on here. I know there are sites out there that we can download the script for a shopping cart, but I don't think our server is up to date for the requirements of what these plugins need to work and we don't want to have to pay for a hosting plan. So we were just going to set up 2 simple pages for the customer to choose what they want and a price would go into a shopping cart form where they could enter their credit card information. This page would be an HTTPS page. I'm just wondering if I create a page that is secured this way, is it secure or not? Or do I need to go through one of those web sites that has a shopping cart built already so it's more secure? We were not going to insert this info. into a database. We were going to email it to our info email using Cold Fusion. Will that email being sent to us, be secure? Does
Hi,First, the code :LOCAL.fileName = lsDateFormat(now(), 'yyyymmdd') & '.csv';LOCAL.filePath = "example_file";LOCAL.ftpService = new FTP();LOCAL.ftpService.setServer('sftpr.emv2.com');LOCAL.ftpService.setPort('22');LOCAL.ftpService.setUserName('example_user');LOCAL.ftpService.setSecure('true');LOCAL.ftpService.setKey(example_key.ppk");LOCAL.ftpService.setStopOnError(true);LOCAL.ftpService.setRemoteFile('example_remote_file');LOCAL.ret = LOCAL.ftpService.open();writeDump(LOCAL.ret);LOCAL.doInsert = 0;if(LOCAL.ret.getPrefix().succeeded){ LOCAL.testExists = LOCAL.ftpService.existsFile(); writeDump(LOCAL.testExists); if(LOCAL.testExists.getPrefix().returnValue){ LOCAL.doInsert = 1; LOCAL.ftpService.setLocalFile(LOCAL.filePath); LOCAL.ftpService.setFailIfEx
Hello, all,We have a server in production that is not co-operating when sandbox security is switched on. If sandbox is off, everything works great. But we are not supposed to run this without sandbox.I have to redact the log information, a bit, but I have the following that happens whenever sandbox is turned on.SEVERE: The web application with context path [/xxxx/projectshare] was not deployed because it contained a deployment descriptor [META-INF/context.xml] which may include configuration necessary for the secure deployment of the application but processing of deployment descriptors is prevented by the deployXML setting of this host. An appropriate descriptor should be created at to deploy this application.Aug 6, 2015 9:42:24 AM org.apache.catalina.startup.HostConfig deployWARINFO: Deploying web application archive X:\webapps\xxxx#projectshare.warAug 6, 2015 9:42:24 AM org.apache.catalina.core.ContainerBase addChildInternalSEVERE: ContainerBase.addChild: start:org.apach
I have some Ajax stuff that will just error from time to time due to database timeouts, etc. I need to turn off the dialog that comes up that says there was an error and to turn on debugging. It just freaks end users out... It would be nice if such errors were just reported in firebug with no "Click OK" popup dialog! Maybe a try/catch is in order??
When using CF10 and the CFSpreadsheet tag, we're receiving the following error:Class org.apache.poi.hssf.usermodel.HSSFWorkbook does not implement the requested interface org.apache.poi.ss.usermodel.WorkbookThe simple code works on other servers, so I think there is something wrong with the server config. Any ideas?
Hello,Perhaps I'm a bit paranoic, but, is possible to modify adminapi/base.cfc in order to not show the version information?When you call http://[server]/CFIDE/adminapi/base.cfc?wsdl it displays a template with a comment like <!--WSDL created by ColdFusion version 10,0,14,291717-->, and I would prefer to not disclose that information.Thanks in advance,
We recently upgraded to CF11 from CF9 and have ran into a challenge. I understand this is probably very fundamental but I am at a loss to figure it out because our cart worked so well for years before. I pass a url variable to the cart containing the sku number and it populates my preorder table with a quantity of one unless I also pass the quantity variable in the same string at which I use if isdefined to detect. My cart works but upon page refresh or if the back button is hit, it will increment one to the quantity field. Can someone tell me the way to eliminate this issue? In the address box of the old cart we hid the variable in the url string when passing the call to the cart but the same code not with CF11 does indeed show the variable(sku) in the url which is passed causing the cart to update. Looking for help here please?Thanks
Recently installed CF11 on a Windows 2012R2 server running IIS 8.5. There are currently 9 sites configured in IIS, all under separate application pools.Several times a day, for reasons I have not yet determined, requests for CF pages under any one of the sites are returned very slowly (>10 seconds). Typically, they are returned in <500 ms. Recycling the application pool (or pools) appears to address this issue, which made me think the issue was with IIS. However, requests for static resources from the same IIS sites load fine, so I suspect it is not strictly an IIS issue.I applied the changes to worker.properties and server.xml recommended by Anit Kumar Panda in ColdFusion 11 IIS Connector Tuning — Adobe ColdFusion Blog:worker.cfusion.max_reuse_connections=250worker.cfusion.connection_pool_size=2250 (9*250)worker.cfusion.connection_pool_timeout=60maxThreads="2250" connectionTimeout="60000" attributes in Server/Service/ConnectorI'm still seeing slow responsiveness several times a
Can ColdFusion developer edition or ColdFusion builder be installed and run on Windows 10?
Hello,I'm generating a normal spreadsheet file and formatting a couple of columns with SpreadsheetFormatColumn, to give them a particular date format. If I open the file through OpenOffice, everything works perfectly. However, if I open it through Excel, any cell in the formatted column past the 32nd row does not display the proper format (Cell is displayed as "general") and I need to do it manually.What could be causing this?
Hi All,I just started run my web application via coldfusion 11 (production). Previously was a cf9.Can anyone advise me what is the best jvm setting for production use. My server run on :1. windows 2012 r2 datacenter2. 128gb ram3. 8 coreI try to run use this setting xms : 100g xmx: 120g, after 1 day, i cant enter cfserver and it keep load. Check log it return memory :org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksSEVERE: The web application [/] created a ThreadLocal with key of type [coldfusion.util.DateUtils$1] (value [coldfusion.util.DateUtils$1@32c8948a]) and a value of type [java.util.GregorianCalendar] (value [java.util.GregorianCalendar[time=1438651990401,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="America/Los_Angeles",offset=-28800000,dstSavings=3600000,useDaylight=true,transitions=185,lastRule=java.util.SimpleTimeZone[id=America/Los_Angeles,offset=-28800000,dstSavings=3600000,useDaylight=true,startYear=0,star
Hi. I have an If statement to see if N/A or NA is in a text box. If it is, I don't want to send an automated email I have set up. This works great if only N/A or NA is in the text box, but what if someone writes something like "N/A This component does not work for this part." How do I test this if the text box starts with N/A or NA and has text after it still? Here's my If Statement:<cfif isDefined("form.Open_Jobs_Affected#id#") and evaluate("form.Open_Jobs_Affected#id#") neq "N/A" and evaluate("form.Open_Jobs_Affected#id#") neq "NA">Thanks for your help.Andy
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.