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

PMT Error - elasticsearch node at 96% utilization

$
0
0

We are running PMT on a Redhat Linux VM and are constantly getting this error:  Memory utilization for Elasticsearch node OhtGaWA is 96%.  PMT is currently monitoring 3 CF nodes that get light use.  There are no other errors in the perfmontoolset.log file or elasticsearch.log file.  Any hints of where else to start looking would be much appreciated.


Coldfusion Builder 2018 - Could not find the included template error

$
0
0

Hallo,

I installed CFB2018 on my mac and trying to run my application.

In application.cfc i have a <cfincludetemplate="/adirectoryunderwwwroot/fileincluded.cfm"> and always i get a could not find the template error.

 

Some informations:

-The code directory is under wwwroot folder

-The path is mapped with a sym link.

-CFB2018 server is Coldfusion+Tomcat version and i changed the context.xml file to allow linking.

-CFB2018 server document root is under wwwroot folder

-When i try to navigate to the path using the browser I can reach that folder (so I think tomcat is correctly setup)

-I passed a chmod 777 on all files under the wwwroot

-I unchecked save class in the server admin console

-I tried with and without mapping in coldfusion and it doesn't change the behaviour.

 

Do you have any advice?

Running CF in distributed mode with IIS inside Docker Container

$
0
0

We are moving CF applications to Docker containers from Windows Server 2016 servers. We are using Windows authentication so have to rely on IIS for the webserver. I am trying to configure the IIS with 64bit version of isapi_redirect.dll under mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019 but getting the following error:

 

HTTP Error 500.0 - Internal Server Error

Calling LoadLibraryEx on ISAPI filter "C:\ColdFusion\config\wsconfig\1\isapi_redirect.dll" failed

 

Error details in Win Events:

TimeCreated                     Id LevelDisplayName Message

-----------                     -- ---------------- -------

8/7/2019 8:29:30 PM           2268 Error            Could not load all ISAPI filters for site 'DEFAULT WEB SITE'.  Therefore site startup aborted.

8/7/2019 8:29:30 PM           2214 Error            The HTTP Filter DLL C:\ColdFusion\config\wsconfig\1\isapi_redirect.dll failed to load.  The data is the error.

 

isapi_redirect.properties file has the following contents:

extension_uri= /jakarta/isapi_redirect.dll

log_file= C:\ColdFusion\config\wsconfig\1\isapi_redirect.log

log_level= info

worker_file= C:\ColdFusion\config\wsconfig\1\workers.properties

worker_mount_file= C:\ColdFusion\config\wsconfig\1\uriworkermap.properties

iis_buffer_enable= true

auth_complete= 1

iis_skip_custom_errors_enable= false

 

The connector is not creating any logs. The connector and configuration work fine on the Win2019 host but never inside the container. I have tried the tomcat connector and it's working fine just the CF connector is not working. Any help would be highly appreciated.

2 Related Combos

$
0
0
I downloaded the 2 selects related combos and have some issues. How can i use that script when both combo boxes pull from the database. I have one combo box that contains insurance companies, and when one is chosen I want the next combo box only to have address that relate to that ins company.

There are two tables one from ins companies and one for locations and they are related by an id field. Any help would be appreciated. Thanks
JIm

The input and output encodings are not same

$
0
0

Hi,

 

I am trying to encrypt a value using the "Encrypt" function and the same I am trying to decrypt in the next page before updating in the database.

 

I am using the same key, algorithm and encoding during the decrypt process.

 

But it is returning this error "The input and output encodings are not same".

 

Can anyone help me on this?.

Cfdocument issue

$
0
0

I am facing problem with size in generated PDF is not same with the sample HTML.

Coldfusion version is 11,0,0,289974(developer) and adobe driver version is 5.1.1 (Build 0001)  .

 

Below is my code;

<CFOUTPUT>

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

     <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=shift_jis">

     <CFDOCUMENT format="pdf"  overwrite="yes" fontembed="Yes" pagetype="A4" marginLeft="0" margintop="0" marginright="0" marginbottom="0">

     <HTML>

     <HEAD>

 

     <TITLE>TEST</TITLE>

 

     </HEAD>

     <style type="text/css">

          html, body

 

 

          {padding:0; margin: 0;}

     </style>

 

 

     <BODY>

     <FORM NAME="MEI202"  ACTION="" METHOD="POST" style="padding:0; margin: 0;">

     <table style="position:relative;width:188mm; height:283mm; border:1px blue solid;margin-left:11mm;margin-top:7mm;">

 

     </table>

 

     </FORM>

 

     </BODY>

     </HTML>

     </CFDOCUMENT>

     </CFOUTPUT>

 

Now, table size in generated PDF bigger than HTML. What is the possible reason and how to fix it.

Thanks.

javax.mail.internet.AddressException: Empty address in string ``''

$
0
0

Hello all,

CF 2018 Standard on Windows 2016.

 

Running the following code:

<cfmail to="epipko@unionbay.com" from="mail@cf_server.com" subject="Example email">  Your Email Message!!!</cfmail>

 

Getting the following error in mail log:

javax.mail.internet.AddressException: Empty address in string ``''

 

If you dealt with this error before, please point me to the right direction to resolve it.

 

Thanks,

Eugene

How access ColdFusion Administrator?

$
0
0
Hello. After 5 years away from programming, I now have a CF contract, and am trying to get up to speed in CF again. I still have nothing later than CF version 5, which I have just installed on three of my computers.

How do I bring up Cold Fusion Administrator?

I am unable to find any instructions as to how to do that in Using ColdFusion 5 Studio published by Macromedia (I realize that's Studio, not the server product), nor in O'Reilly's Programming Cold Fusion. My 'Developing Applications with CF 5', published by Allaire, says to select Start>Programs>ColdFusion Server>ColdFusion Administrator. However, on all three computers all I have is Start>Programs>Macromedia ColdFusion 5> ColdFusion Performance Monitor.

Thanks for your help!

Peyton

ColdFusion License for Web Hosting

$
0
0
Can I just buy CF8 Ent and use for webhosting?

I've a bunch of linux hosting. My friends want to rent a few and use for their CF app but I'm not sure that I can use the CF Ent that bought from Adobe Store or from a distributor for hosting services? Or I have to use some special licensing from Adobe for that kind of thing?

Not sure about that. Because I've heard that MS has many kind of MS Win Server licensing (web hosting != internal company web server)

Please suggest!

Jedt S.
Bangkok

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>

How do i handle a response with SOAP MTOM encoding?

$
0
0

I'm trying to build a module to utilize the eBay large merchant services API and I've hit a major road block.

I decided to start out by implementing a request for active listings. I've got the basic functions working

to start the export job and get a file ID to download. I can make the download request just fine but the

filecontentcomes back as an object of java.io.ByteArrayOutputStream and I'm not exactly sure what to do with it.

It's supposed to be XML content with a zip file attached.

 

The toString result shows that it's Content-Type: application/xop+xml. and it looks like it's delimited by

a mime boundary. This encoding is a little new to me but I gather it's a more optimized way of packaging the

binary data with an XML response.

 

The problem is separating out the binary attachment from the XML part.

 

I found this Blog Post

 

where he ended up suggesting using the underlying java getByteArray function but that still doesn't seperate the

XML from the attachment and after that i don't know what to do with the byte array.

 

This is running on IIS7 / CF8 fully patched.

positioning-problem-when-scrolling-down-webpage with j query pop up calendar

$
0
0

i have posted this again since the previous has been answered and beside, try to simplify the problem

 

I am trying a very simple code here by have so many break lines so i can scroll down to the page.  when i scroll down, click on the text box, the pop up calendar dosen't appear next to the text box, i appears all the way on the top.  is there the way to make the calendar appeas next to the text box.


<link rel="stylesheet" href="css/jquery-ui.css" />
<script src="scripts/jquery-1.9.0.js"></script>
<script src="scripts/jquery-ui.js"></script>

<script>
    $(function() {

       $("#datepicker").datepicker({ minDate: 0 });

    });

</script>

<cfoutput> #repeatstring("<br>",100)# </cfoutput>
<cfform>
<cfinput type="text" value=""  id="datepicker" name="sale_date"  />

</cfform>

 

thanks

Using WebService served by SAP

$
0
0

Greetings,

 

I have been stuck trying to get CF 8 to talk to SAP serviced Web
Service. Here is code I am using:

 

<cfscript>
   ws = CreateObject("webservice", "http://xxx.xxxxx.com:8002/sap/bc/
srt/rfc/sap/Z_ZRFC_TEST?sap-client=235&wsdl=1.1
");
   xlatstring = ws.ZZrfcTest(Rfcin = "Hello");
</cfscript>

 

Here is WSDL file

 

<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions targetNamespace="urn:sap-
com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://
schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/
XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://
schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-
com:document:sap:soap:functions:mc-style" xmlns:n1="urn:sap-
com:document:sap:rfc:functions">
- <wsdl:documentation>
<sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl" />
</wsdl:documentation>
- <wsdl:types>
- <xsd:schema attributeFormDefault="qualified"
targetNamespace="urn:sap-com:document:sap:rfc:functions">
- <xsd:simpleType name="char10">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="10" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
- <xsd:schema attributeFormDefault="qualified"
targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style"
xmlns:n0="urn:sap-com:document:sap:rfc:functions">
<xsd:import namespace="urn:sap-com:document:sap:rfc:functions" />
- <xsd:element name="ZZrfcTest">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="Rfcin" type="n0:char10" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="ZZrfcTestResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="Rfcout" type="n0:char10" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="ZZrfcTest">
<wsdl:part name="parameters" element="tns:ZZrfcTest" />
</wsdl:message>
- <wsdl:message name="ZZrfcTestResponse">
<wsdl:part name="parameter" element="tns:ZZrfcTestResponse" />
</wsdl:message>
- <wsdl:portType name="Z_ZRFC_TEST">
- <wsdl:operation name="ZZrfcTest">
<wsdl:input message="tns:ZZrfcTest" />
<wsdl:output message="tns:ZZrfcTestResponse" />
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>

 

here is error message I am getting

 

The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.

 

Unable to read WSDL from URL:
http://xxxx.xxxxxxx.com:8002/sap/bc/srt/rfc/sap/Z_ZRFC_TEST?sap-client=235&wsdl=1.1

 

Please advice what to check...

 

Regards,
Egils

Coldfusion unexplainable duplicate issues, cannot figure this out!

$
0
0

    So I've been fighting this for days.  I dont have the slightest idea where I can go from here.  I have your standard coldfusion insert queries set up to insert new data into the database.  Something along the lines of:

 

Select * from table where tableuniqueID = Form.UniqueID  

 

Cfif databasecheck.recordcount EQ 0, then insert new row with form.uniqueID as the uniqueID.  Well recently, its been throwing the generic Violation of PRIMARY KEY constraint 'PK__OLMS_Dat__9C04DA075F0A3F61'. Cannot insert duplicate key in object 'dbo.table'.

 

I dont understand that in the slightest, the only way it inserts is if the query right above it is defined and equal to 0 recordcount.

 

I did some tooling around, and found someone suggesting to insert into my SQL "IF NOT EXISTS" to have SQL do the actual check to see if data exists.  Well we put that in place, and just recently, ANOTHER duplicate happened, same error, cannot insert duplicate showing the new SQL structure.

 

This is beyond me.  I have two statements checking to see if it exists and, yet, Coldfusion still tries to execute a database insert.  What is going on??  Any ideas?  You would figure this would be the basics.

Cold Fusion 9 install error

$
0
0

When installing CF9 on Windows Server 2008, it get an error ...

 

"Unexpectedly Quit Invocation of this Java Application has caused an Invocation TargetException. This application will now exit. (LAX)"

 

I have attempted the solutions of clearing TEMP directories with no resolution. The written solutions are no specific and do not say where these temp directories are, but I cleared out what I can find. Any other suggestions? Thanks


Download ColdFusion 11 developer edition

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>

cfimage writeToBrowser does not work

$
0
0

Hello,

 

running:

Coldfusion 2016

Centos Linux 7

 

program:

<cfimage action="writeToBrowser" source="test.png" format="png" />

 

displays nothing.

 

Tag worked in previous version

 

Brian Erickson

JSESSIONID secure and httpOnly??

$
0
0

Hello, all,

 

We have been alerted to a minor finding.  JSESSIONID session cookies are not secure.  The CFID and CFTOKEN are secure and httpOnly.

 

We followed instructions from a 2014 thread to make JSESSIONID session cookies secure and httpOnly.

 

Viewing in FireFox with DevTools, initially the JSESSIONID cookies are secure and httpOnly, but if you click on to another cookie, then come back to JSESSIONID, the cookie is NOT secure.

 

Viewing in IE11 with DevTools, the JSESSIONID cookie shows twice; once as secure and httpOnly, once as not secure but httpOnly.

 

What is happening??  I'm at a loss, on this one.


V/r,

 

^ _ ^

You have attempted to dereference a scalar variable of type class java.lang.String as a structure wi

$
0
0

You  have  attempted to dereference a scalar variable of type class  java.lang.String as a  structure with members

Hi

 

 

I receive the error in the title bar as a result of the following code but I can't see what I'm doing wrong:

 

<cfcomponent hint="sets background colour to help users see where they are during booking">

 

<cffunction name="cellcolour" returntype="struct">
<cfargument name="progressstage" type="string" required="true">
<cfset var stagecol="StructNew()">

 

<cfset oncolour="red">
<cfset offcolour="white">

<cfswitch expression="#progressstage#">
<cfcase value="progressstage1">
<cfset stagecol.colour1="#oncolour#">
<cfset stagecol.colour2="#offcolour#">
<cfset stagecol.colour3="#offcolour#">
<cfset stagecol.colour4="#offcolour#">
<cfset stagecol.colour5="#offcolour#">
</cfcase>

 

........... etc

 

Thew line where the error occurs is <cfset stagecol.colour1="#oncolour#">.

 

Thanks in advance for any advice

 

Dave

Viewing all 14291 articles
Browse latest View live


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