Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all 14291 articles
Browse latest View live

How to reset the password of cold fusion administrator


How to redirect on htttp to https with www redirect of coldfusion mx7?

$
0
0

Hi any one help me  - How to redirect on htttp to https with www redirect of coldfusion mx7?

Coldfusion 2016 download link nowhere to be found...

$
0
0

Can anyone explain why I cannot find a link to the 2016 version of cf server or developer edition for 2016 anywhere on the adobe site including this forum?  Is anyone else concerned about using 2018 dev edition and not having true compatibility for clients that I am developing code for 2016 server base?  Please help adobe update these links on the downloads page here - >> Adobe - ColdFusion Support Center : More Downloads and can someone please give me the direct download link for 2016 developer edition.

 

Thanks!

Getting "Uploads with empty file extensions are not allowed" after ColdFusion 2018 Update 4

$
0
0

Greetings All,

 

After upgrading to update on ColdFusion 2018 I have been getting an error from cffile stating "Uploads with empty file extensions are not allowed". This has been isolated down in my code to an implementation of plupload which will do large file uploads via chunking.

 

When inspecting the headers plupload is changing the filename to "blob" which is stripping the file extension.

 

------WebKitFormBoundaryvA9v8ChjbTSXEt9w

Content-Disposition: form-data; name="file"; filename="blob"

Content-Type: application/octet-stream

 

Has anyone found a way to disable this check in ColdFusion or at least modify it to allow for the upload of files without extension? I have confirmed it was not present in CF 2018 update 3.

 

Regards,

structKeyExists() vs IsDefined()

$
0
0


On a self submitting form (like a Contact Us)...

 

Why is <cfif structKeyExists(form, "submitform")> preferred over <cfif IsDefined('FORM.submitform')>?

 

What is the advantage/benefit of structKeyExists?

 

 

 

Thanks

Error establishing socket to host: Reason: Connection refused: connect

$
0
0

I am in the process of moving from an old x32 server to a new x64 bit server.  With the help of Adobe support, I have finally gotten CF8.0.1 up and running on the new server: http://forums.adobe.com/thread/470337?tstart=0,

 

I am now trying to connect CF8.0.1 Standard on the new x64 machine to SQLServer 2005 x64 bit. All of the databases I'm trying to setup on the new server are currently running on a x32 system with CF8.0.1 and SQLServer 2005 x32.

CFVerInfo.JPG

Using the SQLServer drive type I get the following error:

"Connection verification failed for data source: PHREDsevenSQL
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: DELLx64Server:1433. Reason: Connection refused: connect
The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: DELLx64Server:1433. Reason: Connection refused: connect."

 

Using the ODBC Socket type I do not get a ODBC DSN name in the select box so I can't actually try this type of connection. I've tried both x32 and x64 bit ODBC System setups.

 

P7SQL_def.JPG

 

I have verified the following:

SQLServer configuration: the port is set to 1433.

Account user name and password are correct.

 

I have looked for a x64 bit SQLServer driver for CF8 on Adobe, but couldnt find one. Perhaps one is already installed.

 

If anyone has a suggestion or solution, I would appreicate your help.   Thanks in advance for your help.

 

:-}}}

Len

HTTP Status 500 - java.lang.NullPointerException help

$
0
0

Hello everyone. I am in need to some help. I am migrating servers, and I am getting this error. I can't even get to the CF Admin. What do I do? My google-fu has not been very good on this error.

HTTP Status 500 - java.lang.NullPointerException


type Exception report

messagejava.lang.NullPointerException

descriptionThe server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NullPointerException coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:129) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source) 

 

root cause

java.lang.NullPointerException coldfusion.CfmServlet.init(CfmServlet.java:97) coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source) 

 

noteThe full stack trace of the root cause is available in the Apache Tomcat/7.0.52 logs.


Apache Tomcat/7.0.52

Coldfusion 11 administrator

$
0
0

 

I am having trouble accessing the cold confusion 11 administrator. I am using:

http://127.0.0.1:8501/CFIDE/administrator/index.cfm

 

I get:

A message stating page cannot load.


I have tried several browsers, turned of my anti-virus software and firewall but still nothing.


Can you please shed some light on this problem. I have an assignment due shortly that I really need it for.

 

Thank you in advance.

 


Coldfusion 8 -> PdfPTable.writeSelectedRows -> Exception : Use PdfStamper.getUnderContent() or PdfStamper.getOverContent()

$
0
0

Hi,

 

I use a PdfStamper to customize an existing pdf. And I add a PdfPTable with the writeSelecteRows method.

It worked fine in CFMX7 but when I upgraded to CF8.

 

I have an exception with this methode: Use PdfStamper.getUnderContent() or PdfStamper.getOverContent()

 

The code is :

//create the output file
fileIO = createObject("java","java.io.FileOutputStream").init(newFile);
//load the template PDF with the iText PDF reader
reader = createObject("java","com.lowagie.text.pdf.PdfReader").init(pdfFile);
//load the template into the iText PDF stamper and specify the output file
stamp = createObject("java","com.lowagie.text.pdf.PdfStamper").init(reader, fileIO);
over = createObject("java","com.lowagie.text.pdf.PdfContentByte");
over = stamp.getOverContent(javacast("int",1));
.
.
.
.
.
table.addCell(cell);

table.writeSelectedRows(0,-1,45,525,over);
stamp.close();

 

I don't know what seems the problem, I use the told method.

 

Thanks

Pass ColdFusion variable to the JavaScript window

$
0
0

Hi everyone,

 

I have a java script window that is will open when user click on the link, my problem is that how I can pass a ColdFusion variable to the window. I am using ColdFusion 7 so I can not use cfwindow.what shold I put on the *** place??? I tried to put EntityId in the call place javascript:poponload(EntityId );   and function poponload(EntityId ), doesn’t 't work either so please let me know if you know how to do this.

 

My code:

 

<SCRIPT language="javascript">

function poponload()

{

window.open ('test.cfm?test='*** ,'mywindow','menubar=1,resizable=1,width=350,height=250');

}

</SCRIPT>

 

<body>

<cfform>

<cfset EntityId ="#form.EntityId#"> /I want to pass EntityId  to the javascript window

</cfif>

<a href="javascript:poponload();">Find IDs</a>

</cfform>

</body>

#SESSION# variables and iFrame

$
0
0

Hello, all,

 

I've got a page that contains an iFrame.  When loading the parent via HTTP, the page loading in the iframe via HTTP can see session variables with no problem.

 

However, when I load that same parent page HTTPS _and_ the iFrame via HTTPS, the iFrame src page does NOT see session variables set in the parent page.

 

Both are loading HTTPS, both same domain, same port.

Parent: https://www.domain.com/dbw/tt/index.cfm

iFrame: https://www.domain.com/dbw/tt/contactus.cfm

 

I'll check CFID and CFTOKEN on both, but I suspect they are the same.  UPDATE:  I can confirm that in my DEV environment, CFID and CFTOKEN are the same for both parent page and iFrame page.

 

What could be causing this?

 

V/r,

 

^_^

delete func

$
0
0
I dont know why my del function dont work...Any help wll b app...
------------------------------------------------
<cfparam name="url.action" default="">
<cfparam name="Form.Imgs" default="">
<cfparam name="Form.rpt" default="">
<cfif #form.rpt# eq "" And #form.imgs# eq "">***Please select at least one check box***<cfabort></cfif>
<!---
<cffile action="copy" source="\\btridssc\CAD-Archive\ARCHIVAL\RASTER\PKS001\RI-1\P008A001.TIF" destination="C:\F">--->

<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="213"></td>
<td width="213"></td>
<td width="232"> <input name="search" type="image" src="imgs/zipicon.gif" alt="{ Select drawings.Then Zip and download them }" width="33" height="33" border="0" onClick=""></td>
<td width="278"> <input name="s" type="image" src="imgs/file.gif" alt="{ Click to Create Report }" width="28" height="28" border="0"></td>
</tr>

<cfloop list="#Form.imgs#" index="i" delimiters="," >

<!---Extract loc from="1" to="#listlen(form.imgs)#"--->
<cfset L1=#listgetat(i,1,'|')#>
<!---Extract Img Name--->
<cfset L2=#listgetat(i,2,'|')#>
<!---DocID--->
<cfset L3=#listgetat(i,3,'|')#>
<!---Ctr No--->
<cfset L4=#listgetat(i,4,'|')#>

<cfform name="myform" method="post" action="zip_liveA.cfm?action=download" >

<tr>
<td width="77"><input name="chk" type="checkbox" value="#L1#|#L2#|#L3#|#L4#"> <cfoutput>#L2#</cfoutput>   <img src="imgs/del.gif" alt="Remove" width="15" height="15" border="0" onClick="del(form.imgs,#i#)" >

</td>


</tr>

</table>
</cfform>
</cfloop>


<cfscript>
function del(a,n)
{
listdeleteat(arguments.a,arguments.n);
//CFLOCATION(theURL:"zip_liveA.cfm");
GetPageContext().getResponse().sendRedirect('zip_liveA.cfm');
//CFOUTPUT("Your UserName is Wrong.. try again!");
}
</cfscript>

ColdFusion won't display unicode (utf-8) characters

$
0
0

I have a very basic page with some unicode characters in it. ColdFusion won't properly display them. If I resave the page as .html (so the coldfusion server doesn't process it), the characters display fine.

 

Below is my page. Notice that the charset is set to utf-8.

 

I'm using Dreamweaver CS5.5. Running IIS 7 and CF 9.

 

The text "why isn’t this working" has a smart apostrophe that DOES NOT DISPLAY PROPERLY when run through CF. I've searched around and all I see is that CF has unicode "turned on by default" but no where can I find where to make sure it is set.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Untitled Document</title>

</head>

 

 

<body>

why isn’t this working?

</body>

</html>

Coldfusion 8 installation with Latest Wamp Server

$
0
0

Hello Guys

 

I need a very basic tutorial i am very new.....

How can i setup Coldfusion 8 with WampServer so that i can access My Sql database

 

 

N.B.  Please i need it quickly

 

Smin Rana

Java heap space

$
0
0

I have been developing in ColdFusion for over seven years, and have never encountered this; I'm hoping someone else has and can help.  I'm running a scheduled task that gets a query of 15,000 email addresses from the database, loops through that query, and for each record queues up an email to be sent.  While the process is running, the following error is reported in the application.log in the ColdFusion Administator: "Java heap space".  Additionally, last night I saw the following error: "GC overhead limit exceeded".  These caused the task to abort, and only 1500 or so of the emails were sent.  Can anyone offer some advice as to how to correct this?  Thank you in advance.


Send data with JSON

$
0
0

I am trying to learn how to post data to an external site using JSON. The example the vendor gave me looks like this:

curl -XPOST --data '{"audioLevel": 50, "url": "http://some-stream.de/"}'

http://TheirURL.com:7000/device/00:08:e1:06:c5:39/send

 

From doing some research I think I need to make an array, the SerializeJSON the array then use CFHTTP to send it. I can't find anything that explains the curl -XPOST --data

I am struggling to try to wrap my head around this. Would appreciate any pointers.

 

Thanks,

Gary

How to output cfquery to array?

$
0
0

Hello everyone,

I'm trying to output my cfquery to array. I need something like this:

 

[code]

<cfset myarray=arrayNew(2)>

<cfloop query="qryCustomers">

     <cfset myarray = [{"CustomerID":ID,"Name":FirstLast}]>

</cfloop>

[/code]

 

I tried this code but that did not work. Error always indicate that something is wrong in my cfset where I have my ID and Customer name together. I'm not sure either if I can do this in cold fusion. I have to put these to values together because I have to use them later to compare with other values from second query. If anyone can tell me what is wrong in my code I would appreciate that. Thanks in advance.

Get data from deserializeJSON

$
0
0

I am a bit lost on how to get the data out of a structure created from deserializeJSON. I am trying for example to set Results = data / array1 / doc / m.

So along the lines of <cfset results = #data.doc.m[1]#> but that's not right... What's the proper way to do this?

 

When I dump the results the look like:

Screen Shot 2019-07-16 at 10.43.12 PM.png

How to check which version is on my server?

$
0
0

Hy, is there some mean by which I can deternine if CF9 version 32k or 64k is installed on my server?

I tried evrything in the Asministrator with no avail.

cfimage inside cfdocument problem

$
0
0

Very strange, but repeatable issue I've run into.  I'm using the barbecue Java barcode generator library to generate code128 compliant barcodes which are then handed to cfimage writeToBrowser to finally end up with printable packing/mailing labels.  When rendered to screen, everything works perfectly, but as soon as I wrap it in a cfdocument tag, so that we can generate as a pdf for printing on a label printer, I'm ending up with the wrong image on the wrong label in a few cases.  It's always the same records that end up reusing an image from an earlier record (and always the same earlier record).  I can check in the ColdFusion8\tmpCache\CFFileServlet\_cf_image folder and see that all the correct images were created by the cfimage tag, but for whatever reason, some of the images don't make it into the pdf, but are replaced by a different barcode from an earlier record.  I can't see any commonality between the two records and if I intentionally remove the earlier record from the query, the proper barcode shows up.

 

So, any ideas about where to go from here?  Anybody know anything about how cfdocument pulls in images and if there is any kind of caching or prechecking of the images before rendering.  I actually checked to make sure the two files didn't have the same MD5 sum to see if there was something happening there where CF thinks it's the same image.  They were not the same.

 

I've tried this on two CF 8.01 boxes with the same result.  Always the same records, same images, same problem, even if I limit the query to only the two problem records.  I'm totally stumped.  Anybody?

Viewing all 14291 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>