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

Could not find the ColdFusion component or interface model.statistics.

$
0
0

Hi,

 

I'm getting that error even though statistics.cfc is present in model directory, I installed coldfusion 2018 and this code was written in cf10 and it was working fine only changed cf version cos I migrated my site to other hosting server where I installed latest coldfusion 2018 and getting that error now PFA.  Screen Shot 2018-09-06 at 9.13.28 PM.png

Some syntax has changed in latest version ?

 

Please help !
Best,

Sikander


Dynamic Form Values -Outputting

$
0
0

I have a form that submits to itself like this

 

<form action="" method="post">

<table >

   <tr>

  <td width="50"><input type="checkbox" name="client_id_C" value="#client_id#"   ></td>

   <td  width="50"><input type="text"  name="#client_id#_Fee"  value="">  </td>

</tr>

</table>

</form>

 

The client_IDs are 101,102,103 etc

 

So when I fill out the form I get form values like this

101_Fee = 1000

102_Fee = 2000

103_Fee = 3000

 

I also get a list of the client_id's like

client_id_C = 20864,21238,21284

 

My question is once the form is submitted and the form reloads.

 

I want the fee values to populate the #client_id#_Fee text boxes, like this

 

 

<form action="" method="post">

<table >

   <tr>

  <td width="50"><input type="checkbox" name="client_id_C" value="#client_id#"   ></td>

   <td  width="50"><input type="text"  name="#client_id#_Fee"  value="#(#client_id#_Fee)#">  </td>

</tr>

</table>

</form>

 

 

Obviously what I have in red doesn't work

 

The problem is how do I code to get the value?

 

For example

 

I want the value for client_ID 101 to be 1000

 

Like this

 

<form action="" method="post">

<table >

   <tr>

  <td width="50"><input type="checkbox" name="client_id_C" value="101"   ></td>

   <td  width="50"><input type="text"  name="101_Fee"  value="1000">  </td>

</tr>

 

   <tr>

  <td width="50"><input type="checkbox" name="client_id_C" value="102"   ></td>

   <td  width="50"><input type="text"  name="102_Fee"  value="2000">  </td>

</tr>

</table>

</form>

 

What code goes in the value where the red text is.?

 

Because the variable already contains # tags.

 

 

 

 

 

 

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?

How to access method in java object from CF?

$
0
0

Hi, I used cfobject to create java object as follow:

<cfobject

 

type="Java"class="com.as.web.Search"name="myObj"action="create">

 

<cfdump

 

var="#myObj#">

Here is the output:

myjavaobj.JPG

I'm having a hard time accessing these method from coldfusion. If I do:

<cfset x = myObj.getAddress()>

<cfdump var="#x#"> I got this error:

Object Instantiation Exception.

An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. If the class has a constructor that accepts an argument, you must call the constructor explicitly using the init(args) method. Error : com.as.web.Search

 

If I do:

<cfset y = "1st street skillman NJ 08558">

<cfset x = myObj.getAddress( #y#)>

<cfdump var="#x#"> I got an error :

 

The getAddress method was not found.

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

 

I have no experience working with java object and don't understand what this mean and what should I do, please help?

 

 

 

 

 

Cannot connect ColdFusion 2016 to RDS MySQL

$
0
0

Hello,

I have a Coldfusion 2016 instance on Windows 2012R2, started from the AWS Marketplace, and an RDS MySQL instance. Both instances are on the same VPC and subnet. I am unable to connect ColdFusion 2016 to the RDS MySQL instance.  I have created an ODBC in ColdFusion 2016. When ColdFusion tries to connect to the RDS MySQL I get an error. I have tried with the two drivers for MySQL included in Coldfusion 2016.

 

 

With the ColdFusion driver MySQL (DataDirect)  I get the following error:

Connection verification failed for data source: MSQL_Desa

java.sql.SQLException: [Macromedia][MySQL JDBC Driver]Connections to MySQL Community Server are not supported. Please contact MySQL to obtain a MySQL Enterprise or Commercial version.

The root cause was that: java.sql.SQLException: [Macromedia][MySQL JDBC Driver]Connections to MySQL Community Server are not supported. Please contact MySQL to obtain a MySQL Enterprise or Commercial version.

 

 

With the ColdFusion driver MySQL 5 I get the following error:

Connection verification failed for data source: MySQL5

java.sql.SQLException: No suitable driver available for MySQL5, please check the driver setting in resources file, error: com.mysql.jdbc.Driver

The root cause was that: java.sql.SQLException: No suitable driver available for MySQL5, please check the driver setting in resources file, error: com.mysql.jdbc.Driver

 

 

Is it possible to connect ColdFusion 2016 to RDS MySQL ? Which driver should I use ?

 

How to create new employee numbers

$
0
0
My company is currently using the last 6 digits of a person's social security number as their Employee Number. For obvious reasons, we are moving away from this method and trying to adopt a new one. The Human Resource group would like to keep the new Employee Number somewhat sequentially tied to the number that corresponds to when the person was hired, i.e. if you were the 3527 person ever hired, your new employee number should be tied to 3527. However, this causes security concerns. I would like to see the new employee number be a little more cryptic than simply using the hire number. A more cryptic number would make it harder to guess another person's employee number. A possibility would be to use a modulus formula like for a credit card number or a UPC symbol. Does anyone have any suggestions regarding a good method for creating new employee numbers for a company with less than 1000 employees?

Encrypt data in a created Excel file

$
0
0

Hi,

 

Is there away in Cold Fusion2016 to encrypt the contents of a create Excel file, either completely or by cell?

 

Then allow the user to de-encrypt the Excel file after it has been created?

 

Using the following to create an excel file.

 

<cfset TabChar = Chr(9)>
<cfset NewLine = Chr(13) & Chr(10)>
<cfheader name="Content-Disposition" value="attachment; filename=reports.xls">
<CFCONTENT TYPE="application/vnd.ms-excel" RESET="Yes">

 

 

Thanks in advance,

 

 

Mike

 

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


How to reset the password of cold fusion administrator

How to put a background image in coldfusion page?

$
0
0

Hi all,

I have created number of coldfusion pages,i would like to have a background image for them either unique or different images.

So i have created a style.css and added a line for background image like

                    background-image: url(/images/nature.jpg);

But it doesn't works.

Even i tried this by giving in head section of all my cfm pages but it doesn't work.

Also i have used


<head>
     <style type="text/css">
          html {overflow-y:hidden;}
          body {overflow-y:auto;}
          #page-background {position:absolute; z-index:-1;}
          #content {position:static;padding:10px;}
     </style>
</head>

<body>
     <div id="page-background"><img src="images/sri.jpg" alt="Smile"></div>
         <div id="content">
              This is body content
         </div>
</body>

but the alt value 'smile' only appearing not the image.

I'm working on CFBuilder.

Both firefox and IE not displaying the image

 

Any help appreciated,

Chandru P

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

JVM Heap size settings

$
0
0

Recently I got a VPS server and I'm running Coldfusion, the website was running fine until it got more and more traffic and I started to encounter 'OutOfMemory' exceptions.

I thought simply to rise the memory of the VPS server, but this didn't help.

After doing some Google searches I found a setting in de CF Admin settings to set the JVM Heap memory. It was on the standard: Max Heap size 512MB and Min Heap size was empty. After playing around a bit I have now set it to Min 50MB and Max 200MB, good things is that I'm not getting the 'OutOfMemory' exceptions anymore. So far so good!

But with about 50 active visitors on the website, the website starts to get slow. The CPU usage is only about 8% (Windows Taskmanager), also the taskmanager show only about 30% of the 3GB RAM in use.

So I'm thinking that my values could be tweaked to use more of the RAM. Honestly I don't understand these JVM Memory heap settings, so I have no clue what is a good setting for me.

I found a CF script that displays the memory usage, the details are:

 

HeapMemoryUsage-Committed    194 MB 
HeapMemoryUsage-Initial  50.0 MB
HeapMemoryUsage-Max  194 MB
HeapMemoryUsage-Used     163 MB
JVM
-FreeMemory    31.2 MB
JVM
-MaxMemory     194 MB
JVM
-TotalMemory   194 MB
JVM
-UsedMemory    163 MB
MemoryPool-CodeCache-Used  13.0 MB
MemoryPool- PS EdenSpace-Used   6.75 MB
MemoryPool- PS OldGen-Used  155 MB
MemoryPool- PS PermGen-Used     64.2 MB
MemoryPool- PS SurvivorSpace-Used   1.07 MB
Non-HeapMemoryUsage-Committed    77.4 MB
Non-HeapMemoryUsage-Initial  18.3 MB
Non-HeapMemoryUsage-Max  240 MB
Non-HeapMemoryUsage-Used     77.2 MB
FreeAllocatedMemory:30mb
TotalMemoryAllocated:194mb
MaxMemoryAvailable to JVM:194mb
% of FreeAllocatedMemory:16%
% of AvailableMemoryAllocated:100%

 

My JVM arguments are:

-server -Dsun.io.useCanonCaches=false-XX:MaxPermSize=192m-XX:+UseParallelGC-     Dcoldfusion.rootDir={application.home}/../-Dcoldfusion.libPath={application.home}/../lib

Can I give the JVM more memory? If so, what settings should I use?

Thanks very much!!



500 error after installing CF 11 Update 2

$
0
0

Hola,

 

I installed CF 11 Update 2 today, and am now seeing nothing but a 500 error when trying to access either CF administrator or the application we are *trying to* host.  In the CF logs, I keep seeing the following error messages each time CF 11 Application Server service is started:

 

"coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Monitoring service is not available."

 

and

 

"Unable to initialise Monitoring service: coldfusion.server.ServiceException: Unknown tag: Arg"

 

I don't know whether these are the reason I'm getting the 500 error, however.  I have tried rebuilding the web connector, restarting the OS and services, etc., to no avail.  I also tried installing a VSC++ 2012 redistributable that I saw was suggested somewhere on these forums, and that did not help either.

 

Any help would be greatly appreciated.

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.

ColdFusion admin password

$
0
0

Where can I find the ColdFusion administrator page password in the server (in which folder I can find it) and how to view it (if it is cryptic).


Linked Folder

$
0
0

I have been developing ASP.Net web sites in Visual Studio for years. Now I am trying to learn ColdFusion. I like what I have seen so far. I have tried to take a training class twice this year only to have it cancelled. So I took an Old class online that is obsolete Coldfusion10 and not fully compatible with version I am running "ColdFusion 2016" I am trying to use ColdFusion Builder 2018. I have an issue I can't seem to solve. I have a sample ColdFusion website from the class I took on line and I can open/browse it in IIS. But when I try to open the main page in Builder "Index.cfm" I get this message.

 

"Selected file is not in the document root of the server. it the project is not in the document root, create a linked folder to the document root (selecting Project Properties > ColdFusion Project)."

 

She here is what I did.

1. I created a new ColdFusion project.

2. One by one I imported the files from my sample website

3. Then I click the Run button.

 

I'm sure this sounds small to you but when your lost as to what to do this stops everything.

 

Also can some one recommend a class that will not be cancelled.

Coldfusion 2018 - Error Executing Database Query

$
0
0

 

Hello,

   I am using Coldfusion 2018 with Oracle Database. One of my pages in the application gives me an error as shown below

How can this be resolved ?   I am not getting the same error on Test server where the same version of Cold fusion 2018 is installed.

Thanks

IQ

 

Error Executing Database Query.

  ORA-01858: a non-numeric character was found where a numeric was expected   
  The error occurred in C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 134
Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 1
Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 134
Called from C:/inetpub/wwwroot/TOPS/ValidateConsumptionList.cfm: line 1
132 :        and dd.data_date = TO_DATE(<cfqueryparam 133 :                                   value="#time1#" 134 :                                   cfsqltype="VARCHAR" 135 :                           maxlength="28">,'YYYY/MM/DD hh24') 136 :        WHERE lu.IPN in (304305,304350,304354,304352,304309,304310,304311,304312, 304313, 304314)

and dd.data_date = TO_DATE(<cfqueryparam

133 : value="#time1#"

134 : cfsqltype="VARCHAR"

135 : maxlength="28">,'YYYY/MM/DD hh24')

136 : WHERE lu.IPN in (304305,304350,304354,304352,304309,304310,304311,304312, 304313, 304314)

 

Coldfusion administrator is not being served up by iis

$
0
0

I have CF 2016 installed and at one time the CF administrator was working. the sort cut to the CFIDE/administration is does not server up the web page any longer.

CF is working on the server the websites are still running.

 

my sites are under WWW the coldfusion default is under wwwroot.

IIS default is WWW and does not include wwwroot. I'm guessing that's the problem. but again it did work at one time.

 

 

I think the answer may be in IIS? is there someplace I need to look for specific CF configuration in IIS?

 

Thanks you,

 

Mike

ColdFusion 9 on IIS 8 Windows Server 2012 R2

$
0
0

So I am having all sorts of difficulty getting ColdFusion 9 to load the administrator page on IIS 8 in Windows Server 2012 R2.  I saw CF 10 has this compatibility but I was unable to find a CF 9 Support Matrix.  The Web Configuration Tool can not finish because there is a IIS compatibility issue and when it tries to restart IIS the process fails and indicates that IIS is version 8.x and the config tool is good for 4.x, 5.x, 6.x, and 7.x.  Has anyone had to accomplish this yet for a client?  Currently I am getting Service Unavailable HTTP Error 503. The service is unavailable.

ColdFusion 11 Destroyed My Charts

$
0
0

Surely we can't be the only ones who are disappointed with the newest charting engine in CF11?  Yes, ZingCharts can be cool and the plethora of style options gives us total freedom to build the perfect chart.  However, that is also the root of the problem!  Since CF8, CFCHART has been adequate for our needs.  It produced good looking chart images and was just flexible enough for us to produce what we needed while staying simple enough for us to put together quickly and move on in development.  This has been true up through CF10....

 

We just installed CF11 on our test server and it has DESTROYED every chart we produce using the same code we've had in place for years.

 

Custom chart colors: gone.  Readability: hit or miss.  3D angles and depths: changed.  Proper fitting of images in pages: gone.  Legends specifically told to hide: now showing, and showing incorrectly.  Labels: FUBAR.

 

What the hell?!  Who was in charge of the backward compatibility of this charting engine?  The least that should have been done was to give us a default style similar to the old one.

 

Again, we liked the simplicity the old engine gave us.  And, while it would be cool to spend some time with the ZingChart Editor creating super awesome charts, we don't have the time to mess with the minutiae of all the little details for these charts.  But it looks like I have no choice.  So, instead of proceeding with our upgrade to CF11 we have to stop and reconfigure hundreds of CFCHART tags!

 

Here are some examples of our mangled charts that have had NO CODE CHANGES from CF10 to CF11:

 

CF10CF11
CF10_3dBar.PNGcf11_3dbar.PNG
cf10_3dpie.PNGcf11_3dpie.PNG
cf10_2dline.PNGcf11_2dline.PNG

 

 

OK, rant over.  Have to waste time fixing this bullsh*t...

Viewing all 14291 articles
Browse latest View live


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