Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all 5979 articles
Browse latest View live

jdbc error while connecting oracle 12c in Coldfusionmx7

$
0
0

We have a set of Applications in Coldfusion MX7 with Oracle 11g Database.

Connected Datasources in Coldfusion using JDBC thin Driver. The coldfusion server has ojdbc14.jar in c:\coldfusionmx7\lib

 

 

The Oracle version has now been upgrade to 12c.

The Application throws "ORA-28040: No matching authentication protocol"

 

 

We googled and found that the jdbc driver used is not compatible and they suggested

1. change the ojbc14.jar to ojdbc6.jar in c:\coldfusionmx7\lib, restart Coldfusion server and start mapping the Datasources.

2. Set SQLNET.ALLOWED_LOGON_VERSION_SERVER=8 in the oracle/network/admin/sqlnet.ora file.

 

 

Please give us a clear suggestion

1. Whether downloading ojdbc6.jar from Oracle website and placing it in c:\coldfusionmx7\lib instead of ojdbc14.jar

will work properly- Is it compatible with MX7?

2. Adding the server version "SQLNET.ALLOWED_LOGON_VERSION_SERVER=8" in sqlnet.ora file will do or

do we have to specify SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8 also. If so, do we have to restart the Database

server to make it effective?

 

 

Thanks


cfmail sending to first row only

$
0
0

When attempting to send an email to multiple recipients using Cold Fusion, only the first row is receiving the email and it seems to be being hit three times but only sending once. This works but all recipients are visible and the cfoutput is displayed as many times are there are recipients:

<cfmail to = "#ValueList(getEmail.Schd_Email)#" from="test@test.edu" subject="This is a Test" type="HTML" query="getEmail" failto="test@test.com"> The location has been moved to <b><cfoutput>#location#</cfoutput></b><br/> </cfmail> 

This only sends to the first person listed in the query and the cfoutput in the body is still listed as many times as there are recipients.

<cfmail to = "#Schd_Email#;" from="test@test.edu" subject="This is a Test" type="HTML" query="getEmail" failto="test@test.com"> The location has been moved to <b><cfoutput>#location#</cfoutput></b><br/> </cfmail> 

I can output the query to the page and see all emails listed. Not sure why the latter does not work. Any ideas?

Need help with structs

$
0
0

I'm building a highway noise barrier inventory tool that will allow people to search all the current highway noise barriers in the US by state, type, material, etc (I know, I know, exciting stuff).

 

I'm needing to slice and dice the data many different ways, so I'm using cffunctions and cfcs.  I've found out that it works better to have a function for each thing I want to call, rather than trying to stuff it all into a two or three huge queries.  This has worked well, except for one place, where I have a list of barriers by state and year, and within each record, I have to grab all the materials.  This is sort of a query in a nested loop, and as such, is SLOW.

 

I solved the speed problem on another page by just running one bit cached query at the top of the page, then doing this:

 

 

This has worked great (and has been super fast) when I want to get one piece of information, but in this case, I can have multiple materials per barrier.

 

qgetMaterialsbyID[id].material  works great for getting one of the materials, and I can dump qgetMaterialsbyID[id] to get them all, but I can't figure out how to loop through qgetMaterialsbyID[id] to get all the materials for that ID.  Or maybe that struct is only good for one result?  I've been staring at it for so long, I'm not sure which way is up anymore.  Thanks for any help!

ColdFusion 11 server migration

$
0
0

I have been tasked with upgrading our web servers from Windows Server 2008 to 2012. As we are not upgrading our ColdFusion version, is it possible to use the same licenses on the new servers? If so, would we be able to have 2 instances of the license operating for a month long period in order to migrate? We have 4 servers in total, 2 running CF11 Enterprise (production), and 2 running CF11 standard (test).

Coldfusion 2016 CFChart not working with javascript

$
0
0

The pie chart below was created in ColdFusion v11

with the following javascript:

{

"graphset":[

  {

  "border-width":1,

  "background-color":"transparent",

  "foreground-color":"black",

  "plot":{

  "value-box":{"color":"black"},

  "border-color":"black",

  "tooltip-text":"%t\n%v"

  },

  "plotarea":{

  "margin":"dynamic"

  },

  "legend":{

  "border-color":"red",

  "layout":"2x",

  "x":10,

  "y":30,

  "shadow":true,

  "height":"40px"

  }

  }

  ]

}

in v2016 the JS does not work at all and received an error:

SyntaxError: unterminated string literal (zingchart-rhino.min.js#8(eval)#1) The specific sequence of files included or processed is: C:\websites\HazTrak\html\HazPortal.cfm, line: 1

if I take out the javascript the pie chart looks like:

I either need a fixed so that v2016 will work with the same JS or an xml file to do the same as the js did.

Server Setting Font Management CF11 update 7

$
0
0

ColdFusion Admin has the follow on the Font Management screen:

 

 

Any attempt to add a font or a directory to a font ends in a black screen and an error in the log.  Blank screen being CF Admin navagation with a HTTP 500 message.

 

I have attempted both a TTF file and a directory C:\windows\fonts\

 

Error message in log is

 

com.lowagie.text.FontFactory.getFontProperties()Ljava/util/Map; The specific sequence of files included or processed is: C:\ColdFusion11\cfusion\wwwroot\CFIDE\administrator\settings\fonts.cfm, line: 82

 

Any suggestions?

Download ColdFusion 11 developer edition

Can't download ColdFusion Server 11 without Akamai Download Manager??

$
0
0

WTF, Adobe??

 

Why are you insisting that I use the Akamai Download Manager (which I never trust download managers) in order to download anything???

 

Based upon advice of others, I have attempted to bypass it by clicking on the "File 1 of 1" link.  But that doesn't give me the CF 11 installation file.  It still links to "Adobe ColdFusion 11 - AkamaiDLM.exe".

 

WHY CAN'T I DOWNLOAD ANYTHING WITHOUT THE DLM????????????????????

 

^_^


Découpage d'un livre en pdf en chapitres en cfm/Cutting a book in pdf =>chapters cfm

$
0
0

Bonjour,

 

J'aimerai prendre un livre en PDF pour le découper en chapitres en cfm.

 

J'aimerai me servir du style de word : Titre1 = titre du livre ; Titre 2 = chapitre ; ...

 

Merci pour votre aide

 

Hello,

 

 

 

 

 

I would like to take a book to PDF to split it into chapters cfm.

 

 

 

 

 

I would like to serve me the word style: Heading 1 = title of the book; Heading 2 = Chapter 2; ...

 

 

 

 

 

Thanks for your help

Problems with ColdFusion11 and Cybersource SOAP

$
0
0

I'm having a great deal of trouble trying to implement a SOAP call to CyberSource, and I'd appreciate any help that anyone can provide.

 

The environment: ColdFusion 11 on Windows 2012 Server, 64-bit.

 

The SOAP packet (personal info redacted) is as follows; it's basically the CyberSource sample provided in their documentation:

 

<?xml version="1.0" encoding="utf-8"?>

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

     xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/"

     xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

    <soapenv:Header>

    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

    <wsse:UsernameToken>

    <wsse:Username>XXXXXXX</wsse:Username>

    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0##Passwo rdText">XXXXXXX</wsse:Password>

    </wsse:UsernameToken>

    </wsse:Security>

    </soapenv:Header>

    <soapenv:Body>

        <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.126">

        <merchantID>XXXXXXX</merchantID>

        <merchantReferenceCode>XXXXXXX</merchantReferenceCode>

        <billTo>

            <firstName>XXXXXXX</firstName>

            <lastName>XXXXXXX</lastName>

            <street1>XXXXXXX</street1>

            <street2></street2>

            <city>XXXXXXX</city>

            <state>XX</state>

            <postalCode>XXXXXXX</postalCode>

            <country>XX</country>

            <phoneNumber>000 000 0000</phoneNumber>

            <email>null@cybersource.com</email>

        </billTo>

        <item id="0">

            <unitPrice>65.00</unitPrice>

            <quantity>1</quantity>

        </item>

        <purchaseTotals>

            <currency>USD</currency>

        </purchaseTotals>

        <card>

            <accountNumber>4111111111111111</accountNumber>

            <cvNumber>000</cvNumber>

            <expirationMonth>10</expirationMonth>

            <expirationYear>2018</expirationYear>

        </card>

        <ccAuthService run="true"/>

        </requestMessage>

    </soapenv:Body>

</soapenv:Envelope>

 

The transmission is as follows:

 

<cfhttp url="https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor" method="post" port="443" resolveurl="false" result="httpResponse">

<cfhttpparam type="header" name="content-type" value="text/xml; charset=utf-8"/>

<cfhttpparam type="header" name="accept-encoding" value="no-compression"/>

<cfhttpparam type="header" name="content-length" value="#Len(Trim(variables.soap_packet))#"/>

<cfhttpparam type="xml" value="#Trim(variables.soap_packet)#"/>

</cfhttp>

 

The response from CyberSource is:

 

<?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext" xmlns:c="urn:schemas-cybersource-com:transaction-data-1.0"> <faultcode>soap:Client</faultcode> <faultstring> XML parse error. </faultstring> </soap:Fault> </soap:Body> </soap:Envelope>

 

There are two interesting things going on.

 

1. Initially, I built the SOAP packet by enclosing the above item like this:

 

    <cfsavecontent var="soap_packet"><cfoutput>.....</cfoutput></cfsavecontent>.

 

When I tested the resulting string via #IsXML(Trim(XMLFormat(variables.soap_packet)))#, I got "NO".

 

Then I built the packet by enclosing the above item like this:

 

    <cfxml variable="soap_xml"><cfoutput>.....</cfoutput></cfxml>,

 

which produces a SOAP document object. I then converted that document object to a string via

 

    <cfset soap_packet = #ToString(variables.soap_xml)#>

   

Testing the result via #IsXML(Trim(variables.soap_packet))#, I got "YES", and that's what I'm passing in the transmission.

 

So there's the first issue: Why is ColdFusion apparently producing different results for the two approaches?

 

2. Assuming I'm passing well-formed and valid XML with the second approach, why is the interaction with CyberSource failing?

 

As I've said, this is becoming very frustrating. Can anyone tell me what I'm doing wrong?

CF 2016 Hotfix 1 Fails To Install

$
0
0

I am using the ColdFusion Administrator to download and install the hotfix.

I am using the built-in server for ColdFusion Administrator (not IIS).

 

It fails every time, just as it does in CF 10 and CF 11.

 

I have installed ColdFusion 2016 using their best practices / lockdown guide.

ColdFusion 2016 is installed into a dedicated partition and the account the service runs as has full permissions on that entire partition.

 

The Summary says it's Unsuccessful, with 6 NonFatalErrors and 6 FatalErrors.

I get 6 copies of:

Moving files failed:: Failed to back up the previous hotfix files. Retry installation after ensuring that the server is not running or files are not locked by the server.

 

I get 6 copies of:

Failed to delete directory: Ensure that the server is not running or files are not locked by the server.

 

 

I get 6 FATAL ERRORs involving different files.  Here's an example:

Moving files failed:

                          Status: FATAL ERROR

                          Additional Notes: FATAL ERROR - Could not move the file X:\CF2016\cfusion/lib/fluent-hc-4.4.1.jar to the backup location X:\CF2016\cfusion\hf-updates\hf-2016-00001-298513\backup/lib/fluent-hc-4.4.1.jar

 

I get 6 ERRORs (non fatal) involving different files.  Here's an example:

Failed to delete directory

                          Status: ERROR

                          Additional Notes: ERROR - Failed to delete directory:X:\CF2016\cfusion/lib/fluent-hc-4.4.1.jar

                                            ERROR - Unable to delete file: X:\CF2016\cfusion\lib\fluent-hc-4.4.1.jar

 

The only other mentions of "fail" in the log file are related to services:

[SC] OpenService FAILED 5:Access is denied.
                      Status: SUCCESSFUL

 

Stopping the server.......

                      Status: SUCCESSFUL

 

[SC] OpenService FAILED 1060:The specified service does not exist as an installed service.

                      Status: SUCCESSFUL

 

[SC] OpenService FAILED 1060:The specified service does not exist as an installed service.

                      Status: SUCCESSFUL

 

[SC] OpenService FAILED 1060:The specified service does not exist as an installed service.

                      Status: SUCCESSFUL

 

The service stops correctly and no files should be locked by any process other than whatever the updater is doing.  The service is running as a local user account that has FULL access to the partition where ColdFusion 2016 is installed.

 

Any ideas?

Building a table from a cfquery

$
0
0

I'm trying to build a table of noise barrier area by material per year.  I have a query that gives me this:

 

(I have years from 1963 - 2013, so the below is just a sample)

 

2013    Berm    30

2013    Block    172

2013    Cast-in-place Concrete    51

2013    Combination    16

2013    Concrete    0

2013    Glass    4

2013    Metal    63

2013    Not Specified    19

2013    Other    0

2013    Precast Concrete    278

2013    Wood    49

 

(the 3rd column is area X 10,000sqft)

 

the problem is, while the years are fine as rows, I need the materials to be column headings, and not in a single column.  I swear I used to know how to do this, but now suddenly I'm drawing a blank.

CFimagedrawlines example

$
0
0

I am still using CF8 and love it, but here's my question.

Can someone show me an example of cfimagedrawlines

that draws a left sloping rectangle?

 

Terry

ColdFusion 11 or ColdFusion 2016 & MS Exchange 2013

$
0
0

First off is connecting to Exchange 2013 supported by either ColdFusion 11 or ColdFusion 2016? 

 

If so what are the steps to getting cfexchangeconnection to actually connect?  Our current setup is CF11 and Exchange 2010, and everything is working as expected.  I can connect, fetch calendar events, read email, move email to other folders, etc.

 

I know there are some special settings on Exchange and IIS and OWA to be set, but what are they specifically?  Is there some sample code of how to get cfexchangeconnection going?  What's with the form based authentication?  What's the default URL for form based authentication on OWA for Exchange 2013? 

 

Help!

cgi.http_url blank output

$
0
0

Yesterday morning I updated CF11 to update8, on a windows 2012, iis 8 box.

 

As I was reviewing one of my application logs, I noticed that from the time the server updated and forward that one of my values went blank.

 

CGI.http_URL was tracked on session start as part of my marketing logs.  It is no longer tracking as of Update 8.  I have tried to rollback to update 7 but that did not resolve my issue.

 

Upon googling, I see that this use to be an issue that was fixed and appears to have returned with the new Update.

Bug#3758070 - CGI.HTTP_URL Missing when using IIS

 

Obviously there must be something else that the CFAdmin rollback feature didn't roll back.

 

Is there anything that can be manually updated until its fixed again?

 

Steve


The getColdFusionInstances method was not found.

$
0
0

On a Solaris server I am trying to patch a CF11 Update 7 instance to Update 8. Another development group updated all the other instances except the two I work on without talking to me first.

 

On one of my CF instances the update page I see the following error:

 

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

 

The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
  

The getColdFusionInstances method was not found.

Either there are no methods with the specified method name and argument types or the getColdFusionInstances method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.            

 

I tried deleting the JAR file from server. This reset the Download buttons and I was able to re-download the JAR file. But, still displayed the CF error message preventing the installation of the update.

 

Seems that this missing method breaks the JavaScript install function.

 

I am tempted to delete the {cf_install_home}/{instance_home}/hf_updates/hf-11-00008/updates.xml. After I back it up first.

Unable to add text to HTML HEAD tag.

$
0
0

Hi all

After migrating from CF7 to CF 10 we are getting this error "Unable to add text to HTML HEAD tag.ColdFusion was unable to add the text you specified to the output stream.  This is probably because you have already used a CFFLUSH tag in your template or buffered output is turned off. The specific sequence of files included or processed is:"

 

Javascript code  is available in  script.cfm page.

We are referencing the Script .cfm in admin .cfm using CFInclude and CFFLUSH is nowhere avaialable but still it throws the error.

Only thing is we are referencing the script.cfm page more than once in admin.cfm.

 

PLease how to get ride of this error.

 

Thanks in advance.

Naresh.

Just out of curiosity: imageDrawLine / imageDrawText

$
0
0

Hello, all,

 

I've been playing around with imageDrawLine(s) and imageDrawText (only just recently discovered them), and I am confused about something that I hope someone can help clarify.

 

If I create a new image using imageNew, I can draw lines and text on it with no problems.

 

However, if I use CFIMAGE or imageNew to create an image from an existing .gif, it will not work.  It does not error - it just leaves a blank white space where the image should be.

 

Is it not possible to add lines or text to existing images??  Here's my code, so far:

 

<cfimage action="read" source="#app_root#img/500x500.gif" name="myImage" /><cfset imageSetAntiAliasing(myImage,'on') /><cfset imageSetDrawingColor(myImage,'black') /><cfset attr = StructNew() /><cfset attr.width = 5 /><cfset attr.endcaps = "round" /><cfset imageSetDrawingStroke(myImage,attr) />   ... set x/y arrays ...<cfset imageDrawLInes(myImage,x,y,true,false) /><cfimage action="writetobrowser" source="#myImage#" format="png" />

 

As the code above is, this gives me a blank square 500 x 500.  No lines.  No text, if I use the imageDrawText tag.

 

If I change line 01 to <cfset myImage = imageNew('','500','500','rgb','white') />, then it gives me a white square with the lines drawn as I coded for.

 

What I am doing incorrectly?  Or does it not work with existing images?

 

V/r,

 

^_^

How to use cfhtmlhead tag?

$
0
0

I found this documentation, Adobe ColdFusion 9 * cfhtmlhead , but how do I use it in my page? Where do the <cfhtmlhead text="#sHeader#"> tag go on the page?

 

Okay, so this is what I have.

 

<cfsavecontent variable="sHeader">  <cfoutput>  <title>#title# | My Company Site Claire</title>  <meta name="keywords" content="#tags#"  />  <meta property="og:locale" content="en_US"/>  <meta property="og:type" content="website"/>  <meta property="og:title" content="#cfData.data[i].name#"/>  <meta property="og:url" content="#canonical#" />  <meta property="og:site_name" content="My Company website"/>  <meta name="twitter:site" content="@MySite">  <meta name="twitter:title" content="#cfData.data[i].name#">  <meta name="twitter:creator" content="@MySite">  <link rel="canonical" href="#canonical#" />  </cfoutput></cfsavecontent><cfhtmlhead text="#sHeader#">

 

Okay, so now that I have the "text" in the cfhtmlhead tag, do I have to do anything else for it to show inside of the header section of the page?

Deciphering a SAML Message in ColdFusion

$
0
0

I'm working on an SSO solution for a client.  At this time I'm able to encode an authentication message and successfully send it to the ADFS server.  The ADFS server handles my login and then returns to my site with an HTTP-POST response.  In the POST there is an ADFS encoded SAML message I need to decipher.  I found a few samples of code but none have worked.  This one seemed to have the most promise but...

 

<cfscript>

// Decode the query string from Base 64 

  Decoder = CreateObject("Java", "sun.misc.BASE64Decoder").init();

  SamlByte = Decoder.decodeBuffer(Form.SAMLResponse);

 

// Create Byte Array used for the inflation, the CF way 

  ByteClass = CreateObject("Java", "java.lang.Byte").TYPE;

  ByteArray = CreateObject("Java", "java.lang.reflect.Array").NewInstance(ByteClass, 1024);

 

// Create Byte Streams needed for inflation

  ByteIn   = CreateObject("Java", "java.io.ByteArrayInputStream").init(SamlByte);

  ByteOut  = CreateObject("Java", "java.io.ByteArrayOutputStream").init();

 

// Create Objects needed for inflation 

  Inflater = CreateObject("Java", "java.util.zip.Inflater").init(true);

  InflaterStream = CreateObject("Java", "java.util.zip.InflaterInputStream").init(ByteIn, Inflater);

 

// Complete the inflation 

  Count = InflaterStream.read(ByteArray);

  while (Count != -1) {

  ByteOut.write(ByteArray, 0, Count);

  Count = InflaterStream.read(ByteArray);

  }

 

// Finished with inflation 

  Inflater.end();

  InflaterStream.close();

 

// Convert SAML request back to a string 

  SamlString = CreateObject("Java", "java.lang.String").init(ByteOut.toByteArray());

  </cfscript>

 

When the code get to the Count = InflaterStream.read(ByteArray); statement the following error message is returned: oversubscribed dynamic bit lengths tree

 

My question is does anybody have a snippet of code that is used to successfully decipher an ADFS encoded SAML response?

Viewing all 5979 articles
Browse latest View live


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