Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all 5794 articles
Browse latest View live

Cloud 9

$
0
0

That's it.  I've finally joined the Creative Cloud.  However, I'm not sure if I'm in the right place.  I signed up for Dreamweaver only for now.  However, my problems don't seem to go away as a direct result.  I recently upgraded from Cold Fusion 9 to CF 2016.  I'm having problems stemming from the incompatibility of my various softwares such as CS5.5(DW, FW, FL, etc.).  Cold Fusion Builder 2016 was free.  Can I use CF Builder 2016 instead of Dreamweaver for a while ??  I still want Flash and the other nice packages that come in the cloud.  But, right now I have so many issues because I haven't upgraded in a while.  It's hard when it finally hits. One community member advised not to use CFFORM because it uses an outdated Ext.js  My website has a form page on it and the text fields are gone from the form page(tedmachine.com/quote.cfm).  As a result the form page is useless and the submit button doesn't do anything.  Lynda.com is a good resource that I have used in the past especially for server setups.  However, many of the cold fusion versions are not even up to Cold Fusion 2016 yet.  Cold FusionBuilder 2016 should be enough to get me through while I get my site into the upgraded environment.  After that, I can do more with the Dreamweaver FW, FL onset. 


looking for a CF9 standard licence

$
0
0

For a Customer, we need to install an application running perfectly Under CF9.

Then we are looking to buy a CF9   (cf9.1 or cf9.2) standard edition licence.

Thanks for any help.

CF8 is not suffisant, and CF10 is too much.

CF11 issue with reverse DNS lookup???

$
0
0

Hello, all,

 

Our DBA just approached me and said that it appears as though CF11 is not cooperating with reverse DNS lookups.  She says that it's not Apache, and there are no errors appearing in any logs or emails - it just isn't doing any reverse DNS lookups; as if the code just isn't executed when it gets to that point.

 

Has anyone, here, heard of or experienced this kind of issue with CF11?  I am at a total loss.

 

V/r,

 

^_^

Cannot Invoke CFC

$
0
0

Hi-

 

I am trying to crate an api that returns JSON from a set of queries in  function main.cfc when I try to run this main.cfc I get this error

 

Security: The requested template has been denied access to D:/home/windsorparking.com/wwwroot/szh/szh/myapis/toJSON.cfc.

The following is the internal exception message: access denied ("java.io.FilePermission" "D:/home/windsorparking.com/wwwroot/szh/szh/myapis/toJSON.cfc" "read")
ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem.

 

My Calling Program

getfares.cfm

 

<cfparam name="form.userid" default="4">

 

<cfscript>

obj = CreateObject("component","main");

qFares = obj.getFares(argumentcollections = form);

//mydata = obj.queryToJSON(qFares) ;

//myjson = obj.structToJSON(mydata);

if(!findnocase("[",qFares))

mydata = "[" & replace(qFares,"/","","All") & "]";

else

mydata = replace(qFares,"/","","All");

</cfscript>

 

 

<cfprocessingdirective suppresswhitespace="yes">

       

<cfoutput>

    #replace(mydata,"/","","All")#

    </cfoutput>

</cfprocessingdirective>

 

Extract of my cfc

main.cfc

<cfcomponent extends=toJSON>

    <cffunction name="getFares" access="remote" returntype="string" returnFormat="json">

    <cfset myResult = {} />

    <!--- this will return the vehicle types and their rates with locaiton name --->

        <cfquery name="qFares" datasource="szhDB">

            select f.vehicle_type_id As vhID, f.charges AS vhFee, f.LocationID AS vhlocationid, v.name As vhname , l.name AS vhlocation

            FROM fare f

            INNER JOIN vehicle_type v ON f.vehicle_type_id = v.vehicle_type_id

            INNER JOIN location l ON l.locationid = f.locationid

            WHERE f.locationid = (select locationid from deviceusers where userid = <cfqueryparam cfsqltype="cf_sql_integer" value="#form.userid#"> )

        </cfquery>      

        <cfset myResult =  QueryToStruct(qFares) />

<cfreturn SerializeJSON(myResult)>

    </cffunction>

</cfcomponent>

 

Can any body help

 

Regards

 

Tayyab

 

 

ColdFusion 2016 Support Windows 2016 Server

$
0
0

- ADOBE STAFF PLEASE ANSWER ASAP  -

 

When will ColdFusion 2016 Support Windows 2016 Server?

The problem seams limited to just the installer because sadly the product installs and works just fine on Windows 10.

 

I have a $60,000.00 major production system upgrade ON-HOLD over this because our IT policies REFUSE us to install an older operating system for new deployments where the need for the windows server will outlast the life of the OS. We have had to put the vendor ON-HOLD and management is wanting answers.

CFExecute java.io.FilePermission Access Denied

$
0
0

Hello,

I come here once again seeking help on a problem that I can't find any information about.  I don't have much hope as the last few times I've posted here I have not even gotten a response, but I don't know where else to turn when nothing on web searching is relevant.

 

I'm trying to get my company upgraded to CF2016 from CF9.  I've gotten around a lot of problems so far, but I've ran into another one.  One part of our software needs to use <cfexecute to run some commands on the server.  Specifically, SVN commands for our deploy to production process.  In CF9 we were able to run <cfexecute without any issues.

 

In CF2016, when I try to execute a file I'm getting:

An exception occurred when invoking an external process.

The cause of this exception was that: java.security.AccessControlException: access denied ("java.io.FilePermission" "/coldfusion_apps/deployer/test.sh" "execute").

 

As you can see here, I've created a simple test.sh file for testing purposes.  I've tried dozens of variations of adding java.io.FilePermission "/coldfusion_apps/deployer/*", "read,execute"; to the coldfusion.policy file, as well as the neo_jaas.policy file, and for good measure the default java.policy file and default javaws.policy.  I've also tried adding variations of java.security.AllPermission and other things I've found on the web.  Tried disabling the security manager completely by omitting -Djava.security.manager in the jvm.config file as suggested by some websites, but nope.

 

The user that coldfusion is run as has full read, write, exeucte access to the directory and file that I'm attempting to cfexecute.  I've even tried setting the file and directory structure to permission 777 (world readable, writable, executable), and still no go.

 

I cannot figure out what the heck I need to do to make this thing allow executing files...

 

If anyone can help, it would be greatly appreciated.  Nearing the deadline to have this conversion completed, and if I can't get this working through CF soon, I'm going to have to rewrite our deployer in PHP or something.

 

Thanks

Cannot generate stub objects for web service invocation.

$
0
0

Guys,

 

Anyone know, how can I solve this stub objects problem, follows below:

The ws is hosted in a Linux environment.

 

When I put the ws address in the browser, works without problem.

 

Tks,

 

Fabiano Magno Pechibella

Can't get PDFg to start

$
0
0

We're banging our heads on an issue - starting PDFg to use cfhtmltopdf - and I thought i'd post it here to see if anyone has had anything similar happen. 

 

We're on CF2016 Standard (upgraded from CF11) on Windows 2012. 

 

When the upgrade was done, about a year ago, we can see in the logs that the PDFg service was initially registered and working. 

 

But, soon after, we started seeing this error message in the logs - "Error in setting up authentication for PDFg services". 

 

We have done a lot of experimentation including observing the port activity in the background, and it just seems like CF is not really trying to enable and/or verify this service (perhaps because of an authentication issue).

 

Anyone have any similar problems?  Any ideas what it might be?

 

Nick


Another CF11 Reverse DNS question

$
0
0

Hello, all,

 

It seems that the performance issues haxtbh mentioned regarding reverse DNS lookup on CF11 is way worse than I expected, and apparently not a problem in CF10.  OR, it could be a certain unwelcome 'bot'.  Which brings me to another question.

 

Instead of the CF method of reverse DNS (as it pertains to cgi.REMOTE_HOST), is there a way to get Apache to do the reverse DNS lookup and pass that along to CF?

 

! ! ! OR ! ! !

 

Is there a way to cache the reverse DNS value (cgi.REMOTE_HOST) so that it can be fed from memory?

 

I suspect that it is the dreaded LegiStorm bot (legibot) that is causing our issue of our metrics query timing out ("The request has exceeded the allowable time limit Tag: CFQUERY ").  The error email includes the agentstring "LegiStorm Bot (http://www.legistorm.com/legibot.html)".

 

I think the bot is hitting our server hundreds of times a second (just a guess), causing our DNS lookup to do the same, and the target server is blocking the request after x number of attempts in one second, causing our insert of cgi.REMOTE_HOST into the database to freeze, triggering a timeout error.

 

V/r,

 

^_^

CFX tags not found in Custom Tag Database

$
0
0

Installed CF 2016 32 bit version (developer edition) on a Windows Server 2012 R2 64 bit. When trying to invoke a 32 bit C++ CFX tag I receive the message "The CFX custom tag CFX_XXXXX was not found in the custom tag database".  The CFX tags are located in the CF_Root\cfusion\CustomTags directory.  The CFX are registered in the CF Administrator. File permissions allow CF to access the directory. I have exhausted my ideas of what could be wrong!  I don't have the problem in CF 11 (same setup, just CF 11 instead of CF 2016).  Does anyone have any ideas?

CFCHARTformat=png image not loading on browser

$
0
0

I have created a simple horizontal bar chart using cfchart by following code:

 

<cfchart chartheight="300" chartwidth="400"  showxgridlines="no" showygridlines="no" showborder="no" fontbold="no" fontitalic="no" show3d="no" rotated="no" sortxaxis="no" showlegend="no" showmarkers="no"  format="png"  scalefrom="0"   scaleto="5" font="arial" fontsize="14" xoffset="290" >

 

<cfchartseries type="horizontalbar" serieslabel="Ratings" seriescolor="yellow" >

  <cfchartdata item="Overall Average" value="4" >

  <cfchartdata item="Peer" value="5" >

  <cfchartdata item="Direct Report" value="3.7" >

  <cfchartdata item="Other" value="2.7" >      

  <cfchartdata item="Manager" value="4.2" >

  <cfchartdata item="Self" value="3" >

</cfchartseries>

 

</cfchart>

 

Also, I'm chart is getting generated but if I'm loading the same image in a new tab then it's failing to load with 404 error.

 

 

From the html inspect it looks like the chart generated by HTML5 map element not by the png image. And if I'm using the chart inside a pdf reporting then it's not working.

 

Thanks in advance!

Updating old code, questions about cfcs and functions

$
0
0

The site I manage is spit into four directories on our web server, and most of the code to get things running is leftover from CF6.  As such, each of these folders contains an application.cfm file, but the only thing that file does is <cfinclude> our master file. (I can't have an application.cfm on root, because that would hit folders that belong to other people)

 

I'm getting ready to do a complete facelift on all of our pages, so I think this would be the perfect time to update the code and bring it into the 21st century.  One of our current problems is that we have header and footer includes in each file, and those includes get hosed sometimes when we do global search replaces. I'd like to use Application.cfc to bring the header and footer includes into the page (which I've successfully done before) and leave those includes off the page.

 

My biggest challenge will be getting the new Application.cfc files to do the same thing our current master file does (I think I'll need four separate application.cfcs, because I think that's the only place I can do OnRequest(), correct?)

 

Currently the master file does:

 

1) Sets a bunch of global variables that the pages use.

 

I can do this using OnSessionStart(), correct?  If so, how will session timeouts affect the pages that use these variables?

 

2) Defines a number of functions using cfscript and cffunction.

 

I can move these into their own cfcs, but the way it works now, those functions are available on any page I want to call them on, without doing a separate cfinvoke or anything.  What's the best way to replicate this?  Can I define these in Application.cfc?  If so, where?

 

 

I'm assuming I shouldn't just use the same master file and include it somewhere (like OnSessionStart) in the new Application.cfc.  I mean, that would be easy, but is it the proper way to do it?

Cold Fusion 8 Upgrade

$
0
0

First of all, I know nothing about Cold Fusion. Long ago our company had setup a few Cold Fusion web servers using Cold Fusion 8. Our Cold Fusion developer was downsized, but the web sites continued to be used. Well, now we need to upgrade those servers. What is the process for going from Cold Fusion 8 to 2016? We are planning on setting up fresh VMs and installing Cold Fusion 2016 from a fresh Windows install and just moving all the files over. Not knowing anything about Cold Fusion, will this work? These are pretty basic web pages for the most part. There are some forms. Any help to get me started in the right direction would be appreciated.

Coldfusion 11 on Windows 10

$
0
0

I wanted to recently switch to apache and leave IIS out of my equation...having nothing to lose, I archived my web sites and removed IIS support, uninstalled CF 11, added apache 2.4, switch to CF 2016 (this is all local only, windows 10 box, fully OS patched) and that was an epic fail.

 

So back to IIS and CF 11...epic fail again.  I can, in both cases, get to the administrator AND the default IIS root (localhost/) but when I create a site in IIS, I get no errors, just a blank site.

 

I have been looking everywhere over the weekend and everything always seems to blame WSConfig or some missing "stuff" in IIS...maybe no jakarta virtual directory, etc., etc...but none of those things seem to be wrong.  WSConfig seems to operate...the configuration directories have the files, IIS sites (all of them by my choice) have cfide and jakarta virtual directories created in them pointing to the right directories...manual checks on mime types, handlers, isapi filters...everything looks as both I would expect AND as these various internet scribbling suggest.

 

Because the response I got from CF 2016 was basically identical, I'm not 100% certain it is an issue with CF 11.  Because I can browse CF page content from the DEFAULT IIS site (localhost/), I'm not convinced it's a communication problem between CF and IIS.  The hosts files is configured and simple.  I can ping the dns names of the sites with no errors (of course all point to local host).  I have another box running 11 on 10 and it's working fine...I've compared all the configurations I can think of end everything looks fine.  Made sure I was fully patched on CF 11 (UPDATE 11).

 

I just cannot see anything that suggests these sites should not work.  But I'm tired...and old so frustration is bad for my heart.

 

Can anyone point me to something "new" that might give me a clue what to look toward for finding a resolution?

DateAdd

$
0
0

I suspect it's a lot more simple that I'm making it.

 

I want to add 48 hours to a date that is stored in a table.  I first query the database (MS SQL), then insert the new date into a different field in the same table.

 

I tried this:

<cfset good_until_date  = DateAdd('h', 48, good_date.cc_TIC_fridge_start)>

 

The date that was in the database was:      2017-04-11 18:37:00.000  (this is the date I want to add 48 hour to)

The new (wrong) date is from 6 days prior: 2017-04-05 17:52:00.000

 

CF10

 

I'm sure I've done something wrong. 

 

Any guidance is appreciated.

 

Thanks!


How to speed up of output json object format to feed into the cfhttp

$
0
0

The following codes take more then 12 hours to run for only more than 300,000 records in the table. How do I speed up the process? Is there another way to generate the json object and feed into the cfhttp in a faster manner? Thanks.

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

      <cfquery name="getData" datasource="#request.dsn#">

          SELECT     District, Route, DateTime, Site, TicketNumber, Tons, CommodityCode, GeneralCommodity, DateCreated

                FROM         tSolidResourcesTonnages

      </cfquery>

      <cfif getData.recordcount gt 0>

          <cfloop query="getData">

                    <cfset variables.objJson = variables.objJson & "{'district': '#HTMLEditFormat(getData.District)#'," &

                 "'route': '#HTMLEditFormat(getData.Route)#'," &

                 "'datetime': '#HTMLEditFormat(getData.Datetime)#'," &

                 "'site': '#HTMLEditFormat(getData.Site)#', " &

                 "'ticketnumber': '#HTMLEditFormat(getData.TicketNumber)#'," &

                 "'tons': #HTMLEditFormat(getData.Tons)#," &

                 "'commoditycode': '#HTMLEditFormat(getData.CommodityCode)#'," &

                 "'generalcommodity': '#HTMLEditFormat(getData.GeneralCommodity)#'" &                

                "},">

        </cfloop>

        <cfset variables.objJson = #mid(variables.objJson,1,len(variables.objJson)-1)# & "]">       

        <!---Note: method: put is to replace, post is to append--->

        <cfhttp url="#request.SolidResourcesTonnages_ApiUrl#" method="put" result="uploadResponse" timeout="30000" proxyServer="#request.proxyServer#" proxyport="#request.proxyPort#">

          <cfhttpparam type="header" name="Authorization" value="Basic #ToBase64(request.myCredential)#" />

          <cfhttpparam type="header" name="X-App-Token" value="#request.appToken#">

          <cfhttpparam type="header" name="Content-Type" value="application/json; charset=utf-8">

          <cfhttpparam type="body" value="#variables.objJson#">

        </cfhttp>

      </cfif>

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

ColdFusion Builder Download Broken

$
0
0

When you try to download the CFB 2016 Trial Edition nothing happens.

 

Any ideas?

CF10 cfstat avgrq time

$
0
0

Hi, when I try to compare AvgRq Time with cfstat / Performance Monitor with avg response time registered in IIS (timetaken), I found distinct averages. So, with cfstat AvgRq Time are growing slowly but never decrease or drecrease very very slowly. I could be a bug?

 

Thanks in advance.

Search service installation on exising CF 11

$
0
0

Hello,

We have ColdFusion 11 installed and working on production Windows Server 2012 R2 server. Search Services and Solr were not initially installed. What would be the steps to add them now?  Is there a simple way to do it on a running system?

Your input and advice are appreciated!

How do I use RestEasy in CF

$
0
0

We are attempting to deploy a java client in CF to make talking to webservices (specifically, parsing the response) a lot simpler. The problem we appear to be running into is that the server is using the Jersey Jackson provider and Client Builder instead of the RestEasy jars provided with the distribution. Does anyone know how to force CF to use the RestEasy jars? We have deployed the client jar and all required dependency jars (including RestEasy) under their own path. We have confirmed that CF is seeing the client jar by instantiating the java client  and calling certain functions. We can get up to the point where it attempts to call out to the server. Unfortunately, the error information we are receiving in CF is not particularly helpful. I believe the last one just simply told us that there was an error but nothing us any use.

 

** Note: I am the Java side of this implementation and do not know CF very well. I built the client jar used the maven assembly plugin to provide a zip file containing all of the required dependency jars. I then confirmed that I had all the required required dependencies by writing a java se app which simply made a call through the client. Unfortunately, using Jersey is not an option. It simply does not support the calls in the correct way. We need to be able to use RestEasy. Any assistance will be greatly appreciated.

Viewing all 5794 articles
Browse latest View live


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