Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all 6243 articles
Browse latest View live

Scheduled Task Check for Coldfusion Updates gets 403 error

$
0
0

I am running Coldfusion10 on RedHat Linux6. Coldfusion Administration Scheduled Task runs a check for Coldfusion updates every 30days. This month the access_log had the following entry.

xxx.xxx.xxx.xxx - - [16/Feb/2016:12:32:15 -0600] "GET /CFIDE/administrator/updates/task/checkupdates.cfm HTTP/1.1" 403 316 "-" "CFSCHEDULE"

 

If I run it manually from the Scheduled Task, I see "This scheduled task was completed successfully" message but still see the error in the log.

 

There is nothing in the application.log

 

When I click the Updates under Server Update, the hour glass spins for a long time, and it times out with the following error.

 

Could someone tell me what is wrong?

 

Thank you,

 

2-16-2016 1-15-15 PM.png


QoQ with WHERE clause using a list is breaking

$
0
0

Hello, all,

 

I've got a project where I need to use a list as part of the WHERE clause for a QoQ, and it's breaking.  I'm not sure what I'm doing incorrectly.

 

For some pseudo-code, pretend I have a full query from a database called "people".  I get a list of values for the QoQ with the first query; the second query is my QoQ:

 

<cfquery name="getDIR" datasource="#request.THISDSN#">    SELECT thisName dir FROM orgs WHERE thisID in (<cfqueryparam value="#form.org#" cfsqltype="cf_sql_varchar" list="yes" />)</cfquery><cfquery name="people" database="people">    SELECT colA, colB, colC, colD    FROM people    WHERE 1=1        AND (            div IN (<cfqueryparam value="#valueList(getDIR.dir)#" cfsqltype="varchar" list="yes" />)            OR dir IN (<cfqueryparam value="#valueList(getDIR.dir)#" cfsqltype="varchar" list="yes" />)            )</cfquery>

 

The error message I'm getting is "QoQ syntax error: Encountered "div IN \'thisValue\'".  Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition."

 

Can QoQ _NOT_ support lists for WHERE clauses?

 

V/r,

 

^_^

ログインできない 414 request URI too Large の表示

$
0
0


Adobe CC にログインすると、「414 Request URI too Large」の表示が出てしまい、ログインできない。

再起動してもダメでした。

使用しているブラウザはIE9

Is CF2016 supported on Windows 10

Oracle 12c Authentication Issue

$
0
0

I have been receiving ORA-28040: No matching authentication protocol in CF11.  I have tried the SQLNET.ALLOWED_LOGON_VERSION = 8.  Our Oracle 12c DB is not a CDB so the changes to listener.ora will not work.  Any other suggestions?

Fixing CFC code ideas

$
0
0

I have an application running CF8. One of the CFCs is very large and breaks when trying to upgrade to a newer version of CF.

 

I use the functions in the CFC to build html docs that can be displayed or emailed. How should I go about refactoring this cfc to make it work?

 

Format is currently like this:

 

function - get order

     stored procedure

 

function - get order details

     stored procedure

 

function - display order

     several hundred lines of html that get pulled back to the web page or emailed

CFCHART - WebCharts3D Invalid License Message

$
0
0

Hello

 

We are using CF 9 Enterprise and use CFCHART for reporting application, we are now getting a message below charts which says "WebCharts3D Invalid License", why is this message appearing ? what's the resolution ?

CF11 : cflogin doesn't "stuck" after session/login timeout

$
0
0

Hi,

 

Since migrating from CFMX7 to CF11 we are experiencing some weird failure with cflogin (using session or cookie storage).

 

Basically when we log-in on the application after a session/client timeout the first login doesn't last for longer than the login submit request.

The second login however is OK

 

I made a very simple application.cfc/index.cfm with short timeouts to check this:

 

 

<cfcomponent

output="false"

hint="I define the application settings and event handlers.">

 

        <!--- Define the application settings. --->

        <cfset this.name = hash( getCurrentTemplatePath() ) />

        <cfset this.applicationTimeout = createTimeSpan( 0, 0, 10, 0 ) />

        <cfset this.sessionTimeout = createTimeSpan( 0, 0, 0, 10 ) />

 

        <!--- Set up the application. --->

        <cfset THIS.SessionManagement = true />

        <cfset THIS.ClientManagement = true />

        <cfset THIS.SetClientCookies = true />

        <cfset THIS.loginStorage = "Session" />

        <cfset THIS.clientStorage = "sidys" />

 

        <!--- Define the request settings. --->

        <cfsetting showdebugoutput="false" />

 

        <cffunction

                name="OnRequestStart"

                access="public"

                returntype="boolean"

                output="true"

                hint="Fires at first part of page processing.">

             

                <!--- Define arguments. --->

                <cfargument

                name="TargetPage"

                type="string"

                required="true"

                />

 

                <cfset SetLocale("fr_FR") />

             

                <cfif IsDefined("Form.logout") or IsDefined("URL.logout")>

                        <cflogout />

                </cfif>

 

                <cflogin idletimeout="20">

                        <cfdump var="#Session#">

                        <cfinclude template="form.inc" />

 

<cfif not isDefined("cflogin") or (cflogin.name IS "" OR cflogin.password IS "")>

        <cfoutput>

                <form method="post">

                <b>login :</b>

                <input type="text" name="j_username" size="24" class="champ" />

                <b>passwordnbsp;:</b>

                <input type="password" name="j_password" size="15" class="champ" />

                <input type="submit" value="Login" class="button" name="submit" />

                </form>

        </cfoutput>

        <cfabort>

<cfelse>

 

        <cflock timeout="10" scope="Session" type="exclusive">

                <cfloginuser name="#cflogin.name#" Password="#cflogin.password#" roles="role">

                <cfset Session.id=cflogin.name />

        </cflock>

</cfif>

 

                </cflogin>

 

                <cfdump var="#Session#">

 

                <cfif GetAuthUser() NEQ "">

                        <cfoutput>

                                <form method="Post">

                                <input type="submit" Name="Logout" value="Logout">

                                </form>

                        </cfoutput>

                     

                </cfif>

             

                 <cfreturn true />

        </cffunction>

</cfcomponent>


trouble of installing coldfusion2016

$
0
0

I would like to install coldfusion2016 trial.


When I was install coldfusion2016, the install process was stoped at 76%.
Dou you know why Install is stoped?

I install coldfusion2016 into Windows 7 32bit.

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????????????????????

 

^_^

Cffunction not working properly since CF 11 upgrade

$
0
0

Good morning everyone! I am in the process of testing out my code after upgrade from CF 9 to CF 11 update 7, so far things are going quite well except for one feature that was not built by me for our intranet page- The feature is a quick search button that allows users to type and get auto suggest options- For example typing Form would bring up anything in out links database that has the word form in it. This works perfectly on CF9, on CF11 it works ( no errors) except for the query only pulls based on the first letter typed  For Example previously I could type Interview and I would get multiple results with the word interview in it, now i type and i only get results that start with matching letters. Below is a screen show that may make more sense as well as part of our code- I have verfied in SQL mgm studio that the query outputs the correct information- I also ran code analyzer on this page and it came back with no issues

 

Also during the upgrade i exported the .car file from cf 9 into cf 11 so the settings should be the same- also like i said before it is not throwing errors- it works- just not with the fully correct results- my apologies if the code is not up to par- like i said i didn't write this!

Cf9-11.PNG

CODE OUTPUT of CFC File

 

<cfcomponent>

<cfset ds="IntranetLinks">

<!--- Function to get the web pages from the database. Used for the Auto-Suggest --->

<cffunction name="lookupLink"

  access="remote"

  returntype="String"

  hint="Lookup method for Ajax auto-suggest">

  <cfargument name="search"

  type="any"

  required="false"

  default="">

<cfset var data="">

 

 

<cfquery datasource="#ds#" name="data">

SELECT PageName

FROM dbo.links

WHERE UPPER(PageName) LIKE UPPER('%#ARGUMENTS.search#%')

ORDER BY PageName

</cfquery>

 

<cfreturn ValueList(data.PageName)>

 

</cffunction>

<!--- Function to get the URL from the database. Populates the hidden text box on the page and used in Javascript to go to the uRL --->

<cffunction name="GetURL"

  access="remote"

  returntype="String"

  hint="Gets URL of Page - used for binding">

  <cfargument name="search"

  type="any"

  required="false"

  default="">

<cfset var data="">

 

 

<cfquery datasource="#ds#" name="data">

SELECT URL, PageName

FROM dbo.links

WHERE UPPER(PageName) LIKE UPPER('%#ARGUMENTS.search#%')

ORDER BY URL

</cfquery>

 

<cfreturn data.URL>

</cffunction>

 

</cfcomponent>

CF11 on Windows 2012 Multiple Domains Issue - will load directory, but not direct CFMs

$
0
0

I have a strange issue where I have two web sites:

 

D:\inetpub\wwwroot\

 

and

 

D:\inetpub\webapps\

 

which are bound to different domains.

 

Everything on the default (wwwroot) works fine with ColdFusion.

 

However, on the "webapps" site it will ONLY load CFM files if I call them implicitly as a directory.

 

For example:

 

http://my.site.com/

 

loads the index.cfm just fine, however:

 

http://my.site.com/index.cfm

 

always returns a 404 error.  Is there some sort of mapping or permission I need to set to make this work?

 

I checked wsconfig and it is set for All IIS websites.  I also made sure the IIS_IUSRS permission is set on it.

 

Anyone seen this?  I appreciate any advice.

 

Thanks!

 

Dan

GC Overhead on ColdFusion 11

$
0
0

Hi all,

I recently got many occurrences of this error on one of my AWS ColdFusion servers:

"Error","ajp-bio-8014-exec-138","02/19/16","08:45:25",,"GC overhead limit exceeded The specific sequence of files included or processed is: xxxxxxxxx.cfm'' "

where xxxxxxxxx.cfm are different files. I noticed this when CPU usage was high and expecially when my sites where damnly slow. Now I restarted ColdFusion Server but I would like to know what was the problem and how to resolve it.

My actual configuration is:


Ubuntu Server 64-bit 2vCPU 8 GB RAM with ColdFusion 11 update 7

Minimum JVM Heap Size: 4096 MB

Maximum JVM Heap Size: 4096 MB


-server -XX:MetaspaceSize=312m -XX:MaxMetaspaceSize=512m -XX:ReservedCodeCacheSize=240m -XX:CompressedClassSpaceSize=1g -XX:+UseParallelGC -Xbatch -Dcoldfusion.home={application.home} -Djava.security.egd=/dev/urandom -Duser.language=en -Dcoldfusion.rootDir={application.home} -Dcoldfusion.libPath={application.home}/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog


Thanks a lot for your help.

Am I the only one that thinks this is a bug in CF11?

$
0
0

I would love some feedback here from Adobe on whether or not this is a bug. If so, I will definitely report it but wanted to start here in the forums. Take a look at the cfscript code below:

array = [ {key1: "myKey"} ];

idx = 1;

tmp = array[idx];

 

writeDump( var=(array[1].key1 ?: ""), label="Prints 'myKey'" );

writeDump( var=(tmp.key1 ?: ""), label="Prints 'myKey'" );

writeDump( var=(array[idx].key1 ?: ""), label="Prints '[Empty String]'" );

The gist of what I am doing here is using the "elvis" operator to try and evaluate an object in realtime, and if the object cannot be evaluated, providing a default of an empty string. If you run this code, you will see that the first 2 methods of referencing array index 1 evaluate correctly and output my text but the 3rd does not. I realize that it would be better to check for the existence of a structure key explicitly but I am trying to use this approach for a massive refactor of some legacy code. It is stumping me as to why the 3rd method does not work so any input here would be greatly appreciated. As mentioned in the topic, I am using ColdFusion 11.

 

Thanks,

Micah

Looking for new hosting suggestions.

$
0
0

So CF 2016 just came out. I've been with Hosting.com for many years now and in the beginning their support was great. The last few years not so much. So I am on the hunt to get quotes for my next VPS. Looking for suggestions. I have seen the possible Amazon stuff but don't know much about how that works.
I pay around $550 per month for a VPS that is...

4vCPU

180GB HDD with daily backups

8GB RAM

(software is all their licenses)

Windows Server 2008 Datacenter

ColdFusion9 Enterprise

MS SQL Web Edition

Cloud Firewall (which is currently broken)

 

Looking for something comparable or lower in price and of course great 24/7/365 service.

 

Suggestions?


ColdFusion Reporting

$
0
0

Hi All,

 

I want to use ColdFusion PDF reporting, the PDF file will have some text, table(data) and some charts like bar, radar etc. So, I'm using htmltopdf functionality to generate the report from html design. But, I'm facing following challenges:

 

1. I have to generate a html design for different types of report. So, is there any easy way to address this?

2. Customizing cfcharts is a very difficult task as for the first time I'm working with CFCHART and there is no concrete documentation about cfchart customization.

 

Can anyone please help me in this. Thanks in advance.

want to create cfscheduler which sends mail daily

$
0
0

want to create cfscheduler which sends mail daily

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?

How to call CFM for authentication?

$
0
0

In my details page, how do I call for authentication before the user can see the details page? I have the custom-application and authenticate.cfm files. I'm new to CF so, how do I call either of these files to execute to show the prompt for authentication?

I am trying to log into the "Configuration and Setting Migration Wizard" after install.

$
0
0

I am trying to log into "http://127.0.0.1:8500/CFIDE/administrator/enter.cfm" right after installing ColdFusion on to my server.  However, I keep getting "Invalid Password".  I have tried uninstalling/reinstalling, but same issue. The password I am using is the one that I set during the installation process.  The OS is Windows 2008 R2 Standard 64bit with IIS 7.  The server is a recent install with SQL Server 2008 R2.  The websites are ported over from an older server (Windows 2003 / IIS 6.X)  One of the sites used an older version of ColdFusion.

 

Viewing all 6243 articles
Browse latest View live


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