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

CFGRID, was working in CF8 won't display results in CF11

$
0
0

Hi

 

I recently upgraded a client from CF 8 to CF 11.

 

In the code is a CFGRID which was working in CF8 but now in CF11 the grid displays but no data appears (the grid is simply empty).

 

With debugging enabled the Coldfusion Ajax Logger is reporting the following error:

Uncaught SyntaxError: Unexpected identifier (http://hiddenServer.com/index.cfm?action=job.manageJobOperations&jobId=2395&cfdebug, line 104)


Line 104 is the "</cfgrid>" tag.


Here is cfgrid code, complete with it's bound cfselect statement immediately before it:

<cfselectname="primarysupplier"query="getconcretecompanies"display="name"value="id"required="yes"  />

 

<cfgridname="mixdesigns"format="html"bind="cfc:controller.Controller.getMixDesign({primarysupplier},{cfgridpage},{cfgridpagesize},{c fgridsortcolumn},{cfgridsortdirection},{primaryconcrete:jobid})"bindonload="yes"height="400"selectmode="row"sort="yes"selectonload="false">

                            <cfgridcolumnname="id"display="no" />

                                <cfgridcolumnname="selectcode"select="yes"display="yes"header="Select"width="40" />

                                <cfgridcolumnname="shortcompanyname"display="yes"header="Supplier"width="75"select="no" />

                                <cfgridcolumnname="mixnumber"display="yes"header="Mix Number"width="75"select="no" />

                                <cfgridcolumnname="psistrength"display="yes"header="PSI"width="45"select="no" />

                                <cfgridcolumnname="cubicyardprice"display="yes"header="Price"width="50"select="no" />

                                <cfgridcolumnname="description"display="yes"header="Description"width="180"select="no" />

                            </cfgrid>

 

I've dumped the query that populates the cfselect and there are no empty rows.

The console at the bottom of Chrome simply reports the same error, "Uncaught syntaxError. Unexpected identifier".

 

Has anyone else encountered this issue? If nothing else I'd love to learn how to debug this error, it seems as if there is some extra data being fed to the cfgrid but I can't seem to trap it....

 

Anyone?

 

Thanks in advance for your help,

 

Rich

    

 


CF11 on IIS 8.5 frequently slow

$
0
0

Recently installed CF11 on a Windows 2012R2 server running IIS 8.5. There are currently 9 sites configured in IIS, all under separate application pools.

 

Several times a day, for reasons I have not yet determined, requests for CF pages under any one of the sites are returned very slowly (>10 seconds). Typically, they are returned in <500 ms. Recycling the application pool (or pools) appears to address this issue, which made me think the issue was with IIS. However, requests for static resources from the same IIS sites load fine, so I suspect it is not strictly an IIS issue.

 

I applied the changes to worker.properties and server.xml recommended by Anit Kumar Panda in ColdFusion 11 IIS Connector Tuning — Adobe ColdFusion Blog:

  • worker.cfusion.max_reuse_connections=250
  • worker.cfusion.connection_pool_size=2250 (9*250)
  • worker.cfusion.connection_pool_timeout=60
  • maxThreads="2250" connectionTimeout="60000" attributes in Server/Service/Connector

 

I'm still seeing slow responsiveness several times a day. I'll continue troubleshooting but thought I'd reach out to the community for ideas/troubleshooting tips.

In migrating from flash forms for CF11 upgrade, I'm getting the following error on a large form submission

$
0
0

"Error validating html input.Invalid HTML input. Error=The input was too large. The specified input was 5,040 bytes and the maximum is 5,000 bytes.

 

I don't see a setting to change this in the CF admin?  Please advise.

Coldfusion9 upgrade to 11 standard

$
0
0

Hi Team,

 

Could you please advise the procedure for upgrading Coldfusion Standard version 9 to 11.

Why do I receive two serial numbers when I purchase ColdFusion 11 Full License?

$
0
0

I have just purchased ColdFusion 11 Standard Full license (not Upgrade license).

 

The Order email from Adobe contains two different serial numbers, why?

 

Does that mean that with a single purchase of ColdFusion 11 that I can legally install, license and run on two different servers?

 

Or is there some other explanation for having two serial numbers?

prepare a report of 500 pages

$
0
0

Hi All,

I'm generating a report with Oracle Queries in CFQUERIES and using CFOUTPUT and Fusioncharts, preparing a report which will generate minimum of 10 pages to maximum of 600 pages.

 

At some times, I get an error "Null Pointer Exception" in the middle of execution.

 

Any tips on how to avoid this error?

 

Is there a better way or to speed up the performance when it generated more than 500 pages?

 

Thanks in advance!

CFIMAP Not Moving Messages in GMAIL -

$
0
0

I am downloading  attachments and trying to move the message(s) to a "downloaded" folder   when I use  

 

<cfimap  action="CreateFolder"  folder="downloaded"  connection="gmailconnection">

<cfimap action="MoveMail" connection = "gmailconnection" newfolder="downloaded" >  gives me the below error. 

 

An exception occurred while performing action MoveMail in cfimap tag. The cause of this exception was: java.lang.IllegalStateException: This operation is not allowed on a closed folder.


I am successfully downloading the attachment(s).  and I can mark the messages as being read.  I can delete the files   I just can't seem to "move" the files.


Any help would be greatly appreciated,

cffile image

$
0
0

I am attempting to upload a photo and I keep getting errors.

 

    <cfform method="post" action= "test2.cfm" name="uploadForm" enctype="multipart/form-data">

    <cffile action = "upload"

        fileField = "FileContents"

        destination = "D:\home\manpcs.com\wwwroot\Realtor\images\"

        accept="image/*"

        nameConflict = "overwrite">

        <br>

        <input name="submit" type="submit" value="Upload File" > 

    </cfform>

 

Result

Invalid content type: ''.

The files upload action requires forms to use enctype="multipart/form-data".
The error occurred in D:/home/manpcs.com/wwwroot/Realtor/test.cfm: line 10
8 :         destination = "images\" 9 :         accept="image/*" 10 : nameConflict = "overwrite"> 11 :         <br> 12 :         <input name="submit" type="submit" value="Upload File" > 

get cffile name

$
0
0

Aloha All,

 

Thank you for any help in advance.  I am attempting to insert the image name into a database so I can recall it later.

This is my code for uploading the photo.

<cfif isDefined("form.image") >

    <cffile action = "upload"

        fileField = "image"

        destination = "D:\home\manpcs.com\wwwroot\Realtor\images\"

        accept = "image/jpeg"

        nameConflict = "MakeUnique">

        Done uploading image!

       <cfoutput> #form.image#</cfoutput>

 

 

<cfelse>

    <cfform method="post" action="test.cfm"

        name="uploadForm" enctype="multipart/form-data">

        <cfinput name="image" type="file">

        <br><br>

        <cfinput name="submit" type="submit" value="Upload image">

    </cfform>

</cfif>

When I output the form.image I receive th following.

Done uploading image! 1 2 C:\ColdFusion11\cfusion\runtime\work\Catalina\localhost\tmp\neotmp5787371421837803116.tmp 4

In the images file I get the image names as "example.jpg,

I want to capture the real image name.  How can I?

HomeSite crashing on Windows 8

$
0
0

Hello,

 

Earlier I had HomeSite 5.5 installed on Windows 7 and everything worked fine, until I upgraded to Windows 8, and now, about every 20 minutes or so, it throws up this error message before it crashes:

 

HomeSite has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.

 

Then if I click debug, it says:

 

An unhandled Win 32 exception occurred in HomeSite+.exe [8064]

 

The error number differs each time. I can't debug because I don't have Visual Studio installed.

 

Is anyone else running HomeSite on Windows 8? If so, maybe you know of a solution.

 

Pete

PDF limit

$
0
0

     Hi guys,I'm trying to create multiple pdfs with <cfdocument> tag inside a loop.When I say multiple pdf files , the counter could reach up to 1500 files.The result should be a zip with all the files .

    The problem is that after a while the request crashes because of : java.lang.OutofMemoryError : java heap space .

    My question is : has coldfusion a limit in generating <cfdocument> pdf files? I tried also , to break all this action into multiple threads , putting only 100 pdf files on a thread, but even so some of the threads ended with java heap space error.

     Have anyone of you encountered this problem before ? Any tips or help it will be gratefully apreciated.

 

     Best Regards,

      George T.

Recherche prestataire applications web coldfusion

$
0
0

Bonjour,

 

Nous sommes à la recherche d’un prestataire pour la migration d’applications Web de recueil de données et l’exploitation des bases de données.

 

Une personne saurait-elle nous orienter pour trouver ce prestataire s'il vous plait, sachant que les applications ont été développées en CFML et destinées au moteur open source Lucee?

 

Notre organisation, l’URSIEA (Union Régionale des structures d’insertion par l’économique d’Alsace), située à Strasbourg, doit en effet changer de prestataire pour l'hébergement des applications web qui ont été développées spécifiquement pour ses besoins par son prestataire actuel et pour la phase d’exploitation des données.

 

Le prestataire devra tout d’abord installer l’application développée par le prestataire précédent dans son environnement de production. Le produit fini livré sera une application web développée en CFML et destinée au moteur open source Lucee (disponible à http://www.lucee.org ). Cette application sera construite sur la base des technologies suivantes :

● Apache httpd pour le serveur web.

● Apache Tomcat et Lucee pour le serveur applicatif.

● MySQL pour la base de données.

 

Le nouveau prestataire serait en charge de :

  • L’hébergement des applications existantes et de la base de données
  • L’administration et la gestion de la base de données
  • L’exploitation de la base de données
  • La maintenance, l’assistance technique
  • L’évolution et le développement de nouvelles applications et fonctionnalités

 

Je reste à votre disposition pour toute information complémentaire que vous souhaiteriez.

 

  Alizée

Creating HMAC Hash

$
0
0

After a couple fruitless hours of trying I need some help...  I'm trying to sign a URL for a REST API and, for the life of me, can't get CF to output the expected result.  The API is Aspose and the the instructions are here:

 

http://www.aspose.com/docs/display/totalcloud/Request+Format

 

According to their example I need to hash this URL: http://api.aspose.com/1.1/storage/folder/test_folder?appSID=c821f123-1a8b-4b97-925a-9d69a6 b2fcd8

Using this Key: 23e9d89a967a5f18142221fa8f7cbcd0

And the result should be:Z98TBrlwdtx3pTa6fWVD/Q0c2dE=

 

According to the C# example they give the algorithm should be: HMACSHA1 and the encoding: UTF8

 

I cannot get CF to produce this result.

 

I've tried using the CF function hmac().

#toBase64(hmac(url,key,"HMACSHA1","UTF8"))# gives me: MjYwMkQxN0EyM0IyMzkxNjNDMDU4QTQyMjc3RDgyNkMyNzM0NTA3OA==

 

I've also tried suggestions and variations found here:

http://stackoverflow.com/questions/9186773/coldfusion-hmac-sha1-encryption

and Ban Nadel's Crypto.cfc.

 

What am I missing here?

Can ColdFusion 11 process .htm and .html extension

$
0
0

Can ColdFusion 11 process .htm and .html extensions?

CF Update 5 download

$
0
0

I cannot connect to "Update" site in CF Administrator.  I need CF 11 Update 5 for Windows Server 2008 R2 (64 bit).  Where can I get it please.


Coldfusion 11 cfheader or cfcontent 'failed to load PDF document'

$
0
0

I have a website that worked fine with Coldfusion 10 and now I have updated to Coldfusion 11 and this code doesn't work:

 

<cfheader name="content-disposition" value="inline; filename=#vPublicFile#" />

<cfcontent type="application/pdf" file="#DownloadFolder##qryDownload.fileNameOnserver#" deleteFile="no" />

 

If I type in the URL directly to the PDF file it loads fine, but if I try to get it through this code then I get the message "failed to load PDF document".  Even if I change the code to allow me to save the file, I get a saved file but it won't open in acrobat.

 

I know the code is working code, I tried it with Coldfusion 10 again just to make sure.  Something about 11 is stopping it from working.  Any ideas?

syntax error after server migration

$
0
0

Hi,

 

This is for a legacy site. I'm not the person who developed it and am new to Coldfusion. This is happening when doing a search query.

 

Cold is old but running on CF9. Previous db was MSSQL 5 but was converted to MSSQL 14 during this conversion.

 

Code

<cfquery name="registrylist" datasource="#DSN#">

  SELECT

  Registry.registryID

  ,Registry.categoryID

  ,A.textImage

  ,Registry.categoryOrder

  ,B.InvName

  ,B.retail_price

  ,C.brideLastName

  ,C.brideFirstName

  ,C.groomLastName

  ,C.groomFirstName

  ,Registry.ProductID

  ,Registry.quantity

  ,Registry.quantityGot

  ,Registry.inventoryType

  ,Registry.nonInvDesc

  ,Registry.nonInvPrice

  ,Registry.nonInvDesc

  ,event.eventDate

  ,EventType.eventName

  ,event.eventID

  ,C.RegistrantID

  ,B.Desc_Short

  ,B.img_large

  ,b.Personalize_Flag

  FROM Registry,event

  ,registryCategory A

  ,products B

  ,registrant C

  ,eventType

  WHERE Registry.categoryID*=A.regCategoryID

  and Registry.ProductID*=B.ProductID

  and event.registrantID*=C.RegistrantID

  and event.eventid = #eventid#

  and registry.eventid = event.eventid

  and Event.eventTypeCode = EventType.eventTypeCode

  ORDER BY A.sortOrder,Registry.categoryOrder,Registry.registryID

</cfquery>

 

Error:

[Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near '*='.


Issue seems to be with the "*+" Removing just they "*"'s page will load but with no information from db. Removing jus the "=" or both "*+"'s returns similar error.


Please help.


Troy

Why am I getting handshake error on cfhttp with SSL certificate?

$
0
0


We upgraded from CF9 to CF11.  We copied the cacerts file to the new server but now am getting handshake failure with cfhttp tag.  Spoke with tech on their end.  He said he sees the original request come in.  They send back their part of handshake and are expecting to see something from us which they are not.  Turned on SSL logging and can see the verbiage "valid certificate found".  It just appears that for some reason we are not completing the handshake.  All we see in logs after clienthello portion, serverhello portion, serverhellodone portion, is I/O exception handshake_failure.  Is there anything special in the CF11 upgrade that needs to be done in order to configure for SSL cfhttp tag to work?

Does anyone know where I can download Coldfusion 10 standard?

$
0
0

Does anyone know where I can download Coldfusion 10 standard?

ColdFusion 11 memory leak

$
0
0

We started with an out-of-box install of ColdFusion 11 x64 on Windows 2008 R2. As sites were added to the server, we noticed a memory leak started to become apparent. There was plenty of information about this error being a bug in the older JRE, so we upgraded staging, and eventually production, to jre1.8.0_45. The memory leak still persists - after about 3 weeks, the 4GB heap fills up and the server starts to slowdown, so we restart ColdFusion. If we let it continue to run, ColdFusion starts to throw out-of-memory errors.

 

From the last time when the heap utilization was about 50% after 7 days:

 

     The class "java.io.DeleteOnExitHook", loaded by "<system class loader>", occupies 1,165,311,936 (51.15%) bytes. The memory is accumulated in one instance of "java.util.LinkedHashMap" loaded by "<system class loader>".

     Keywords

     java.util.LinkedHashMap

     java.io.DeleteOnExitHook


Does anyone have an idea of where to look from this point? There are no recent discussions about this memory leak in my searching.

 

The exact problem: Bug ID: JDK-6664633 DeleteOnExitHook leaks memory (with fix)

 

Current server update level:

Version     11,0,05,293506

Tomcat Version     7.0.54.0

Edition     Enterprise 

Operating System     Windows Server 2008 R2  

OS Version     6.1 

Update Level     C:/ColdFusion11/cfusion/lib/updates/chf11000005.jar  

Adobe Driver Version     5.1.3 (Build 000094)  

Java Version     1.8.0_45  


We have 58 SQL Server datasources, and 2 MS Access datasources running on this server.


No website files reference DeleteOnExitHook directly.


ColdFusion has DeleteOnExitHook in the following files:

\cfusion\jetty\jre\lib\classlist

\cfusion\jetty\jre\lib\deploy.jar

\cfusion\jetty\jre\lib\jfr.jar

\cfusion\jetty\jre\lib\rt.jar

\cfusion\jnbridge\jre\lib\deploy.jar

\cfusion\jnbridge\jre\lib\classlist

\cfusion\jnbridge\jre\lib\jfr.jar

\cfusion\jnbridge\jre\lib\rt.jar

\cfusion\lib\tools.jar

\cfusion\lib\oosdk\classes\com\sun\star\lib\loader\WinRegKey.class

 

The JRE has DeleteOnExitHook in the following files:

\Java\jre1.8.0_45\bin\server\classes.jsa

\Java\jre1.8.0_45\lib\deploy.jar

\Java\jre1.8.0_45\lib\rt.jar

\Java\jre1.8.0_45\lib\ext\jfxrt.jar

 

The DeleteOnExitHook resources all point to \Temp\ddtb377039557646079978.tmp or other various files that start with ddtb and have .tmp extensions. I believe these are related to a leak in the JDBC driver. Happens on all of our CF11 servers. Our CF10 servers appear to have a resource leak also, but I am not yet able to create heap dumps from the CF10 environments due to how they are configured. Our CF10 environments have far fewer sites though, so this problem isn't affecting those servers nearly as much.

Viewing all 6243 articles
Browse latest View live


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