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

An established connection was aborted by the software in your host machine

$
0
0

Since moving to CF2016 I've been seeing quite a lot of the error below in the exception log file. I did some research and can't quite figure out what is going on and if this is indeed having an impact on the end user. I've tested the download link on http://www.hiddentoolbox.com and it appears to work fine

 

"Error","ajp-nio-8016-exec-6","03/26/18","11:55:46","myapp","The cause of this output exception was that: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine. The specific sequence of files included or processed is: C:\ACS\hiddentoolbox\downloadfile.cfm, line: 15 "

coldfusion.tagext.OutputException: The cause of this output exception was that: org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine.

 

I was wondering if this is as simple as people closing their browser before the download is completed, although I could not replicate myself by starting and closing a browser before it had completed.

 

Could anybody help throw some light on it?

 

Thanks

 

Mark


Round to two decimal places

$
0
0

How do you round a number to two decimal places?

ColdFusion 2016 Add-On Service fails to start

$
0
0

Windows 2008 R2 server

CF9, CF11, & CF2016 installed (development server)

Java JRE 1.8.0_91

 

When I try to start the ColdFusion 2016 Add-On Service it fails immediately and does not load into memory.  I tried loading an admin command prompt and navigated to the Jetty folder and ran the command line directly from there too.

 

jetty.exe -zglaxservice ColdFusion2016Add-onServices

 

This results in no output and the service does not load.  However, if I load just jetty.exe by itself without command switches the server starts up and loads into memory.

 

  • There are no new logs generated in the jetty/logs folder.
  • Nothing besides the fact that it fails makes it into the Windows System or App logs.
  • I loaded the Sysinternals Process Monitor tool and watched the execution of the jetty.exe and the folder structure and there are no Access Denied events.
  • Failed to load under CF2016 gold, Update 1, and Update 2
  • Shutdown CF9 & CF11 to make sure it wasn't a port violation
  • Loading it via the command line fails
  • Loading jetty.exe without command switches works

 

Any other suggestions on getting this working?  I've debated installing the features again on top of themselves using the dedicated Add-On installer.  I'm not sure how that impacts the system though.

Combine First and Last Name as FullName

$
0
0
I'd like to write a statement that combines the First Name and Last Name
as FullName (with a space separating the two).

This doesn't work:

SELECT ContactID, LastName + ', ' + FirstName AS FullName

Any ideas?

ZeroGu6: Windows DLL failed to load error

$
0
0

Hi gurus

 

  I am very new to this tech so go easy on my, I am trying to get cold fusion 10 install on a 2012 r2 server, but I get this error when the installer , anyone encountered this issue in the past and fixed it.

 

Thanks a bunch

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

Error 500 after installing CF11 on Windows 8.1

$
0
0

I purchased a new laptop with Windows 8.1. I had a previous latop that had been upgraded to Windows 8.1 and ran CF10 perfectly fine. I made sure the necessary IIS modules were installed for CF. I installed CF11 using the "Run as administrator" option, just to be on safe side. Everything appeared to go smoothly and no hiccups occured. However, when I click to go CF admin page, I received an Error 500. I've made sure permissions on the folders are correct and allow for the IIS_USR a even IUSR. Any help would be greatly appreciated. I am sort of at a loss here.


The detailed information is as follows:

Detailed Error Information:

 

Module   IsapiModule
Notification   ExecuteRequestHandler
Handler   cfmHandler
Error Code   0x800700c1

 

 

Requested URL   http://127.0.0.1:80/CFIDE/administrator/index.cfm
Physical Path   D:\ColdFusion11\cfusion\wwwroot\CFIDE\administrator\index.cfm
Logon Method   Anonymous
Logon User   Anonymous

cfcharts style issue in CF 10 with re. to webcharts generated styling

$
0
0

Hi,

 

First off, I have an issue where my CF 10 cfchart is requiring the style attribute to be a json file.  From what I can see, this wasn't supposed to happen until CF 11, and there seems to be no way to set it to take an xml instead.

 

Secondly, I have not been able to successfully convert the xml to json myself, and nor do I find the cfchart_xmltojson.sh/bat utility, which I also gather is for the CF 11 release.  Thus, if anyone has either some conversion rules, or this script linked somewhere - would be a great help.

 

I am also in the process of trying to run the full webcharts3d generated file.wcp, but that seems to be failing for another reason, i.e. “Class not found: com.gp.api.jsp.MxServerComponent”, (though the correct jar(s) seem to be in place), though that might be a better subject for a separate thread.

 

Thanks!


Windows could not start the coldfusion 2016 application server on local computer

$
0
0

I have been running a Developer version of CF 2016 on a Windows 10 system for about 4 months with no issues at all.  Today I allowed Windows to perform a major update to Windows 10.  Upon completion, I could no longer start the Cold Fusion Application Server.  This is the message I received: Windows could not start the Cold Fusion 2016 application server on local computer.  I rebooted the computer to no avail, reinstalled Cold Fusion to no avail. The install failed at the point that it need to start the server.

 

Any help is greatly appreciated.

 

Thanks

64-bit ColdFusion 9 ODBC drivers confusion? (architecture mismatch)

$
0
0

Hi all - I'm having problems setting up ColdFusion ODBC sources in a pure 64-bit environment. Server specs:

  • Windows 2008 R2 (64-bit)
  • ColdFusion 9.01 (251028) Enterprise, 64-bit

 

I have 64-bit ODBC drivers for all of my database sources:

 

  • 64-bit SQL Server (bundled with Windows 2008 R2)
  • 64-bit MS Access 2010 (with 64-bit Access ODBC driver from Office 2010 64-bit install)
  • 64-bit ODBC drivers for Sybase SQL Anywhere 11 (from SyBase)

 

Using the (64-bit) ODBC Administrator, I can create system DSNs and they test out perfectly. (From my test Access database, I can use these DSNs to pull data from SQL Server and from SQL Anywhere.) Since this is working, I'm pretty confident that my drivers are all 64-bit and that everything is happy.

 

Now for ColdFusion...

When I try to create a new data source in the ColdFusion Administrator and I use, the "ODBC Socket" option, I am presented with a drop-down list of my 64-bit ODBC system DSNs (good!), but whenever I select one and save, I invariably get an "architecture mismatch" error like below:

 

Connection verification failed for data source: MSSQLtestDatabase
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC  Socket]internal error: The specified DSN contains an architecture mismatch  between the Driver and Application
The root cause was that:  java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal  error: The specified DSN contains an architecture mismatch between the Driver  and Application

 

I am well aware that "architecture mismatch" errors mean that you're trying to mix 32-bit drivers with a 64-bit application (or vice-versa), but I'm pretty sure that everything in my environment is 64-bit.

 

As a further test, I created a few 32-bit ODBC system DSNs and the ColdFusion Administrator does not present them as options in the drop-down list of ODBC DSNs (good!). So, it seems like the Administrator is smart enough to show only the 64-bit DSNs, but whenever you try to connect to one, it gets confused and kicks up an "architecture mismatch" error.

 

So is there any obvious configuration error here? Is there a 32-bit subcomponent to ColdFusion (JDBC, etc.) that's confusing things? (I ran the ColdFusion_9_WWE_win64.exe setup downloaded from Adobe's site.) Is 64-bit ColdFusion ready for prime time? Any suggestions would be greatly appreciated. Thanks, Joe

get Last Inserted ID from Oracle

$
0
0

Hello I know in SQL Server, I can within the cfquery tag do stuff like select @@identity as "newid" to get the just inserted ID of a record.

How do I do this in Oracle 10 G.

The Sequence that creates the unique key is called from a BEFORE INSERT OR UPDATE Trgger. How do I return the just inserted ID in Coldfusion?

webchart

$
0
0

I migrated from CF10 standard to CF11 trial version but the chart fail to render in the webpage. It says com.gp.api.jsp.MxServerComponent is not found

Does anyone here know whether CF11 comes with Webchart3D?

Encoding of UTF8 Characters in URL Strings

$
0
0

I need to link to a URL that has a right single quotation mark in it (u+2019).

 

This is it: "/News/Case-Studies/UNICEF-Headquarters’-Redesigned-Lobby-Space"

 

When I paste the link in to a browser, it works.

 

When I create a link with this URL as the href and click on it, it works.

 

When I put it in a <CFLocation> tag, it does not work.  I need to make this work.

 

When I take the URL from a browser address bar and paste it into a text editor, it converts the right single quote to the percent-encoded string "%E2%80%99".  I have not been able to recreate this encoding. URLEncodedFormat() yields a completely different string.

 

When I parse the url and note the ASCii value of each character, I get three characters for the right single quote:  226 8634 8482.

 

I came up with an encoding that worked, but resulted in special characters in the address bar of the browser (don't remember what the technique was at this point).

 

What encoding can I perfrom at the CF server to duplicate the proper UTF8 encoded string of %E2%80%99?

 

Any help would be appreciated.

CGI.PATH_INFO is blank in CF 10

$
0
0

I know this was an issue that was supposedly fixed in the first update, but I applied that and I'm still experiencing the error.  Any ideas?

 

Version says ColdFusion 10,283649

Prefix serialized JSON with

$
0
0

Hello,

In CF 2016 Administrator page, by selecting the check box "" //ABC, it will break the function below, because it will add //ABC to JSON

I wonder how we remove the prefix  "//ABC" before parsing the JSON please

 

<cffunction name="searchData" access="remote" returnformat="JSON">

     <cfquery name="getData" datasource="#dataSource#">

          SELECT *

          FROM aTable

     </cfquery>

     <cfreturn serializeJSON(getData)>

</cffunction>

 

 

Thank you for your help

H. Pham

pham_mn@yahoo.com


JS Color Coding is Broken in CFBuilder 2

$
0
0

I really want to use aptana to edit JS, but having Aptana installed with CFBuilder 2 causes lost of problems. So I turned to the built in JS Editor which I believe is built on Aptana anyways.

 

But The JS color coding does not work when javaDoc Style comments are used:

 

This screen cast shows the problem:

http://screencast.com/t/t0tepeEwmSe

 

This is referenced here:

http://www.trunkful.com/index.cfm/2011/7/19/Another-ColdFusion-Builder-2-bug-fixed

 

And in this bug:

https://bugbase.adobe.com/index.cfm?event=bug&id=2824457

 

Which says its closed, but its not!!

 

Anyone know of a workaround?

 

Brook

CF 2018 Admin Console Shows Indestructible Search Bar

$
0
0

When I login to CF 2018 admin console and this shows up... The close button is not working, neither search nor close it. Restart WebLogic server and reopen console both are not helpful. How to fix this? I never have this issue using CF console before this.

cf.PNG

peer not authenticated error CFHTTP

$
0
0

Hi

 

I'm trying to call a web page using cfhttp. The url works fine and returns XML when called directly from the browser (any browser) but fails with the following error message when called from a .cfm file using cfhttp:

 

struct
Charset[empty string]
ErrorDetailI/O Exception: peer not authenticated
FilecontentConnection Failure
Header[empty string]
MimetypeUnable to determine MIME type of file.
Responseheader
struct [empty]
StatuscodeConnection Failure. Status code unavailable.
TextYES

 

Symptoms:

It's a secured url (https) so I've attempted using the port 443 (which I verified with the vendor) and a plethora of other combinations of parameters.

I was reviewing past errors like this via Google searches on different CF forums where they stated that the solution was either a bug fix from Adobe or that you needed to download the security certificate onto your own server, but all of those references were to CF9, and I'm running CF10. I've been able to use CFHTTP on other SSL protected sites and the response comes back just fine, just this particular URL. Why would this URL fail with this message and not others? And why would the url display without error from a call from a browser but not CF10?

I was also able to make the call to the page successfully using the command line tool curl.

 

What do I need to do with ColdFusion10 to get my CFHTTP requests to work?

 

Thanks in advance,

 

Rich

CFLAYOUT broken for years and no one seems to care...

$
0
0

We recently bit the bullet and upgraded from Coldfusion 10 to Coldfusion 2016, for new development we are no longer using Coldfusion but have several older sites that still use it. CF10 was no longer being supported as of the first of the month so we were forced to upgrade. We have another server running Coldfusion 11 which we upgraded from Coldfusion 9 with minimum problems, we've been running upgrades since Coldfusion 3 when Allaire owned it. This migration from 10 to 2016, however has been absolute hell the security fixes and depreciations made hours of work to get our sites back on line and they are still having issues. One of them is the cflayout tags are now all broken.

 

coldfusioncap.PNG(overflow="scroll" turned on to show the cflayoutarea css is ignored by the layout body)

 

CFLAYOUTS no longer auto size, one of the sites is using it as a menu with 20 some categories and when you click it nothing happens, only until you put a height of 1000px in to the style does it become clickable, then every layoutarea is now 600px+ and gives a scroll bar when the content is over that. It used to just auto height and every layoutarea was the correct height with no scrolling. You can't even set a height for the layoutareas, what ever you put is ignored and only reflected by a small window in the body of the cflayoutarea.The customer finds the new scroll bars unusable and jquery is not going to work for them because of their older code and older browser requirements. We aren't trying to rewrite entire sites every coldfusion upgrade, that defeats the purpose of coldfusion which is rapid development.

 

There is a manually quick fix on CF11 to edit the cflayout.js and remove the 600px height forcing, but it doesn't work on CF2016. I'm not sure how "switch to jquery" is even an acceptable support answer? Why not some answers on Coldfusion's UI development? Why is adobe forcing upgrades and no longer supporting products (CF10) that work and are tested and replacing them with products that don't work and aren't tested. I tried support chat and they admit it is broken and say it will be fixed one day! I've been through the forums and seen unanswered questions about CFLAYOUT dating back more than two years. I've been a supporter of coldfusion for more than 15 years and argue to the developers who claim it's a dead language, but this upgrade definitely has me scratching my head.

 

Instead of deflecting with questioning why I'm using available tags in a language we pay a lot of money to host with, please answer actual solutions to get cflayout to work.

coldfusionchat.PNG

How to fix "getMetaData method was not found" error

$
0
0

Hello,

I installed CF2018 on Win2016 server and moved my code into it from CF9. Now I am receiving errors that I did not receive in CF9.

 

09:15:16.016 - Object Exception - in D:/Application.cfc : line 249

The getMetaData method was not found.

 

09:15:16.016 - Application Exception - in D:/Application.cfc : line 249

An exception occurred while calling the function getMetaData.

 

 

The line 249 refers to the <cfdump> tag in the following function in Application.cfm

 

<cffunction name="onError" returnType="void" output="false">

<cfargument name="exception" required="true">

<cfargument name="eventname" type="string" required="true">

        <cfset var errortext = "">

   

        <cfif isDefined("arguments.exception.rootCause") AND arguments.exception.rootCause IS "coldfusion.runtime.AbortException">

            <cfreturn/>

        </cfif>

            

<cfmail

to="me@company.com"

from="cf_server@company.com"

subject="ColdFusion request failed for #UCase(listlast(SESSION.curr_user,"\"))#"

type="html">

<p><strong>Error: <font color="red">#arguments.exception.message#</font></strong></p>   

        <strong>Time:</strong> #dateFormat(now(), "short")# #timeFormat(now(), "short")#<br>

        <strong>Error on page:</strong> http://#cgi.server_name##cgi.script_name#?#cgi.query_string#<br>

        <strong>Referrer:</strong> #cgi.HTTP_REFERER#   

    <p></p>

       <cfdump var="#arguments.exception#" label="Error">

</cfmail>

    <cfabort>

</cffunction>

 

Does anyone know how to fix it?

 

Thanks,

Eugene

Viewing all 14291 articles
Browse latest View live


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