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

ColdFusion 10 vs 11 Escaping Input Parameters

$
0
0

Hi,

 

I just recently upgraded to ColdFusion 11 from ColdFusion 10 and noticed that quotation marks are not being escaped in ColdFusion 11 when those are entered in a textbox.

 

Here is an image from my ColdFusion 10 server where the quotation marks are automatically being escaped.

 

Screen Shot 2015-07-09 at 2.30.49 PM.png

 

Here's the view source from Google Chrome:

 

Screen Shot 2015-07-09 at 2.33.50 PM.png

Here is an image from my ColdFusion 11 server where the quotation marks are NOT being escaped.

 

Screen Shot 2015-07-09 at 2.30.56 PM.png


Here's the view source from Google Chrome:

Screen Shot 2015-07-09 at 2.34.08 PM.png

 

Does anyone know if this expected behavior or a bug? Do we really have to use EncodeForHTML() on every form field value now?


Error in spreadsheet cell

$
0
0

Disclaimer, I'm just barely past beginner CF developer.

 

I am using cfspreadsheet to open an Excel document and read some values from the first sheet. It blows up with "An error occurred while reading the Excel: org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException" and specifically "</font> does not close tag <br>."

 

I've Googled left and right trying to find good material on Reading/Writing Excel with CF but not really finding much. Here's what I have:

 

<cfspreadsheet action="read" src="#theFile#" sheet="1" query="data">

 

Besides not knowing exactly how to read what I need from that (yet) I can't get that far because it crashes. Specifically I need to read B2, E2, B3, E3, B4, E4, B5, E5, B6 and E6.

 

Anyway, this particular spreadsheet has 9 sheets, but I only need to read those values for sheet 1. The problem is in sheet 5, column M1 there is a button that has text that wraps and says Reset Data. I KNOW that if I remove the word Data from it, then I can read it. However, I'm not going to have the luxury of doing that. It's spreadsheet is set in stone and I can't change it. And it will be used by hundreds of people. So I have to find a way to import this, read those values and move on.

 

Help???

cf11 - cfgrid getGridObject

$
0
0

We are upgrading Coldfusion from 9 to 11. This worked in 9 just fine, but running into errors in 11. My cfgrid declaration is as follows:

 

<cfgrid name="cfPagingGridName" autowidth="yes" rowHeaders="no" format="html" height="165" width="675" style="border:none;"

   selectcolor="##C6D6EB" striperowcolor="##EEF3F9" striperows="yes" selectOnLoad="false" bgcolor="##FFFFFF" pageSize="1000"

                     bind="cfc:model.nomination.nominationAddRecipientGateway.getNomineeGrid({cfgridpage},{cfg ridpagesize},{cfgridsortcolumn},{cfgridsortdirection},#form.nominationid#)">

 

On selection from this grid, we can add values from this grid to another grid when the add button is selected. The add button runs some JavaScript. This JavaScript is erroring with the getStore() method, but the real problem seems to be right before this. The part of the JavaScript that is erroring is as follows:

 

// Get Nominee Grid Data

  var nomineeGrid = ColdFusion.Grid.getGridObject("cfPagingGridName");

  var mydata = nomineeGrid.getStore();

 

The specific error I'm getting is "Unable to get property 'getStore' of undefined or null reference.  The real problem occurs with the getGridObject line. It never defines the variable nomineeGrid. I'm able to look at this in 2 environments, one using CF 11 and the other using CF 9 . Stepping through the code, CF 9 correctly defines the nomineeGrid variable, but CF 11 does not. My code uses this in many places so any help with this issue would be appreciated.

 

Thanks!

Stephanie

Can Coldfusion 10 be configured to work with the Oracle 12c drivers?

$
0
0

Can ColdFusion 10 be configured to work with the Oracle 12c drivers? If so, what are the configuration instructions?

 

Thank you for your time.

Display result of 1st row only from a query

$
0
0

Hi. I have a search page that searches on a part number. It displays results into a table dynamically. The rows are ordered by a field called ECID. It's just an auto number field I have set up in Access. There are different numbers of rows that are displayed each time a search is done depending on what was searched. I would like to only show the first result for a different search I want to do. How do I do that? I don't have a cfoutput query. Instead I'm using a cfloop query. I can't remember the reason, but I think I needed to use this. I know in a cfoutput query I could use the maxrows function, but I can't use it in a cfloop query. Does anyone know how to get only the first row to display? Is there some other way to make this work? My cfloop query looks like this: <cfloop query="MainActionSearch"> Thanks.

Andy

upgrade mx7 to cf9

$
0
0

Our company intranet site was built by a third party.  It's been using CF MX7 Standard.  They have an upgrade for the site which requires CF 8.01 or better.  I'd read of issue with 10 and thought it safest to upgrade to 9.  What's the procedure for upgrading?  I gather I need to purchase 11 with a downgrade to 9.  I understand there's a utility in the developer edition that analyzes the site for issues, which I'd like to use.  Thanks for any help.

ColdFusion won't run after cleaning up a malware infection.

$
0
0

I got a nasty package of malware delivered to my personal/development workstation over the weekend.  I used both HouseCall and Kapersky tools to clean it up.  I think I got it all.  But when I went to work in my coldfusion code, I found that the service would not start.

I reinstalled it, but now it starts yet I get a 503 error: Service not available when I try to open administrator to finish the install.

 

Please help.  One of things I noticed was the malware had attacked the jre's.

SOAP Namespace Prefix

$
0
0

Good pm!

Client is interfacing with me through web service. My soap response looks like this


<?xml version="1.0" encoding="utf-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

  <soapenv:Body>

    <ns:WhatPasswordResponse xmlns:ns="http://ws">

      <ns:return>password </ns:return>

    </ns:WhatPasswordResponse>

  </soapenv:Body>

</soapenv:Envelope>

 

but client is expecting it to look like this

 

<?xml version=”1.0” encoding=”UTF-8”?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Body>

    <ns2:WhatPasswordResponse xmlns:ns2="http://ws">

      <ns2:return>password </ns2:return>

    </ns2:WhatPasswordResponse>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>


I have already tried passing xml as string, but client does not like that.Is there a way to do this? Your help would be most appreciated. Thank you!


ORA-00933: SQL command not properly ended. CF9 Error Executing Database Query, using ojdbc6 driver with Insert statement using select query.

$
0
0

Hi,

When using the CF9 in-build Oracle driver, the query works well, but when it is changed to use the ojdbc6.jar, then getting the below issue.

ORA-00933: SQL command not properly ended.

Issue particularly happens when we do an Insert using a select query inside cfquery. i.e.

INSERT INTO Table1
  (
  id
  , name
  , viewtime
  )
  SELECT
  tab_id as id
  , name
  , viewtime
  From Table2

CFCONTENT not working correctly with CF11 and IE10

$
0
0

I have a very simple which is working in CF8 using IE10

 

<CFHEADER NAME="Content-Disposition" VALUE="inline; filename=sammy.jpg">

<CFCONTENT TYPE="application/unknown"

    DELETEFILE="No"

    FILE="c:\inetpub\mysite\sammy.jpg"

  reset="Yes">

 

I recently upgraded to CF11 and now the same code is not working on IE10, but amusingly it is working in Chrome and Firefox.

 

Any clue?

Indexing certain PDFs fails

$
0
0

Hey Group.

 

I have 36000 files or so on a windows 2008 server.  CF11 Enterprise Update 5

 

Love SOLR indexing for it's speed but having issues with some of the docs.  PDFs especially.  These are documents of a legal nature so i cannot share them but the problem is pretty straight forward.

 

I get the: "Could not index the file [path here] .pdf in SOLR. Check the exception for more details: An error occurred during the extracttext operation of the cfpdf tag.

 

When i run cfpdf extract on the file I get invalid document [path] specified for source or directory.

cfpdf action="extracttext" source="http://localhost/[path]" name="mypdf"

 

When I run the same with useStructure="false"

cfpdf action="extracttext" useStructure="false" source="http://localhost/[path]" name="mypdf"


and dump the variable I get all of the text along with what looks like poorly formatted xml (xml closing tags missing)

I dont really care if that is how I get the data as it is only used to let the uner know what document contains the subject of their search.


Thngs I know:

it opens in Acrobat

was created with Acrobat PDF maker 10.1 for Word

all dates are present

claims to be PDF Version 1.4 (acrobat 4.x)

it is 3 mb


Is there a way to tell CF11 to retry on failure of that document, ignoring the structure?


Thanks

notification question

$
0
0

I have a basic question on how to handle a simple notification system.  I have an intranet site that contains a simple blog.  When someone creates a new blog article, I would like to notify users with a badge or any notification method.  What is the best way to handle this?  Timestamp the blog post and compare it to the last time the user logged in?  I assume there is a simple lightweight way to do this.  I can write some process that compares timestamps but I can see this method getting klunky.  Should I consider using a push system once a blog post is created?  thoughts?

CFHTMLtoPDF - page breaking

$
0
0

I am attempting to force a page break in my PDF and not having any luck, wondering if anyone have an suggestions that might help.

 

 

<cfhtmltopdf marginBottom="1"

     marginLeft="1"

     marginRight="1"

     marginTop="1"

     orientation="portrait"

     pageType="letter"

     saveAsName="PersonsName">

 

    <cfinclude template="/dsp_create_pdf.cfm">

 

</cfhtmltopdf>

 

dsp_create_pdf.cfm contains a loop and I want to add a Page Break before each title header (to Keep it simple).

 

BUT reading documentation on cfhtmltopdfitem reads:

 

pagebreak: can be used to insert a pagebreak in the generated PDF. When <cfhtmltopdf> is used as a service, pagebreak will not work


We WANT to us cfhtmltopdf as a service, so how is this accomplished.


CSS with <p style="page-break-before: always"> </p> DOES NOT work either.


dsp_create_pdf.cfm:


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

    <title>My PDF wihout page breaks</title>

    <cfoutput>

    </cfoutput>

 

 

    <style type="text/css">

        .pdf

        {

           font-size:18pt;

           font-family:"Times New Roman";

        }

    </style>

 

 

</head>

 

 

<!--- get my data --->

<cfinclude template="qry_websrg70.cfm">

 

 

<body>

 

 

<div class="pdf" align="center">

  <table>

  <tr>

  <td align="center" colspan="3">

  Title

  </td>

  </tr>

  <tr>

  <td align="center" colspan="3">

  <cfoutput>

     #PersonsName#

                </cfoutput>

  </td>

  </tr>

  <tr>

  <td align="center" colspan="3">

  <cfoutput>

     #NOW()#

  </cfoutput>

  </td>

  </tr>

  <tr>

  <td align="center" colspan="3">

   

  </td>

  </tr>

  <cfoutput query="qLetter">

 

 

            <cfswitch expression="#CONTENT_IND#">

 

 

                <cfcase value="GRDIST">

                <tr>

                    <td align="left" colspan="3">

                    <!---Page Break here--->

                        <!---<cfhtmltopdfitem type="pagebreak" />--->

  <p style="page-break-before: always"> </p>

                    </td>

                </tr>

               </cfcase>

 

 

            </cfswitch>

  <tr>

  <td align="left">

  <u>#data1#</u>

  </td>

  </tr>

  <tr>

  <td align="left" colspan="3">

                #l_comments#

  </td>

  </tr>

  <tr>

  <td align="center" colspan="3">

   

  </td>

  </tr>

  </cfoutput>

  </table>

 

 

</div>

 

 

</body>

 

 

</html>

ColdFusion 11 won't start with newest OJDBC drivers

$
0
0

Hello,

 

We're running CF 11 Standard Edition on Linux and need to connect to an Oracle database.  We've done this before on CF 9 using Oracle's JDBC drivers (ojdbc5.jar and ojdbc6.jar).  I downloaded the newest JDBC drivers from Oracle, but soon discovered that CF would not start with these drivers installed.  When I downgraded to the older version installed on our CF 9 instance, CF 11 worked fine and we could connect to Oracle.  I am installing the jar files into /opt/coldfusion11/cfusion/wwwroot/WEB-INF/lib.

 

These older drivers work fine:

 

/opt/coldfusion11/jre/bin/java -jar ojdbc5.jar

Oracle 11.2.0.2.0 JDBC 3.0 compiled with JDK5 on Sat_Aug_14_12:16:40_PDT_2010

#Default Connection Properties Resource

#Mon Jul 13 14:14:59 EDT 2015

 

/opt/coldfusion11/jre/bin/java -jar ojdbc6.jar

Oracle 11.2.0.2.0 JDBC 4.0 compiled with JDK6 on Sat_Aug_14_12:18:34_PDT_2010

#Default Connection Properties Resource

#Mon Jul 13 14:15:04 EDT 2015

 

These newer drivers do not:

 

/opt/coldfusion11/jre/bin/java -jar ojdbc5.jar

Oracle 11.2.0.4.0 JDBC 3.0 compiled with JDK5 on Thu_Jul_03_18:16:49_PDT_2014

#Default Connection Properties Resource

#Mon Jul 13 14:15:10 EDT 2015

 

/opt/coldfusion11/jre/bin/java -jar ojdbc6.jar

Oracle 11.2.0.4.0 JDBC 4.0 compiled with JDK6 on Thu_Jul_03_18:17:32_PDT_2014

#Default Connection Properties Resource

#Mon Jul 13 14:15:13 EDT 2015

 

Using the newer drivers resulted in CF apparently locking up during startup, with the following errors in the coldfusion-error.log file:

 

SEVERE: LifecycleException

java.io.IOException: Failed to access resource /WEB-INF/lib/ojdbc5.jar

  at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:981)

  at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:604)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5332)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

  at java.util.concurrent.FutureTask.run(FutureTask.java:266)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

  at java.lang.Thread.run(Thread.java:745)

Caused by: javax.naming.NameNotFoundException: Resource ojdbc5.jar not found

  at org.apache.naming.resources.BaseDirContext.lookup(BaseDirContext.java:498)

  at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:979)

  ... 10 more

 

 

Jul 13, 2015 2:02:14 PM org.apache.catalina.core.ContainerBase startInternal

SEVERE: A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]

  at java.util.concurrent.FutureTask.report(FutureTask.java:122)

  at java.util.concurrent.FutureTask.get(FutureTask.java:192)

  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)

  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:799)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

  at java.util.concurrent.FutureTask.run(FutureTask.java:266)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

  at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

  ... 6 more

Caused by: org.apache.catalina.LifecycleException: Failed to start component [WebappLoader[/]]

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5332)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  ... 6 more

Caused by: org.apache.catalina.LifecycleException: start:

  at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:630)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  ... 8 more

Caused by: java.io.IOException: Failed to access resource /WEB-INF/lib/ojdbc5.jar

  at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:981)

  at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:604)

  ... 9 more

Caused by: javax.naming.NameNotFoundException: Resource ojdbc5.jar not found

  at org.apache.naming.resources.BaseDirContext.lookup(BaseDirContext.java:498)

  at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:979)

  ... 10 more

 

 

Jul 13, 2015 2:02:14 PM org.apache.catalina.core.ContainerBase startInternal

SEVERE: A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]

  at java.util.concurrent.FutureTask.report(FutureTask.java:122)

  at java.util.concurrent.FutureTask.get(FutureTask.java:192)

  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)

  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:731)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  at com.adobe.coldfusion.launcher.Launcher.run(Launcher.java:993)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:483)

  at com.adobe.coldfusion.bootstrap.Bootstrap.init(Bootstrap.java:90)

  at com.adobe.coldfusion.bootstrap.Bootstrap.main(Bootstrap.java:165)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

  at java.util.concurrent.FutureTask.run(FutureTask.java:266)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

  at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.catalina.LifecycleException: A child container failed during start

  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)

  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:799)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  ... 6 more

 

 

java.lang.reflect.InvocationTargetException

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:483)

  at com.adobe.coldfusion.bootstrap.Bootstrap.init(Bootstrap.java:90)

  at com.adobe.coldfusion.bootstrap.Bootstrap.main(Bootstrap.java:165)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8009]]

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

  at com.adobe.coldfusion.launcher.Launcher.run(Launcher.java:993)

  ... 6 more

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:731)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  ... 7 more

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  ... 9 more

Caused by: org.apache.catalina.LifecycleException: A child container failed during start

  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)

  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)

  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

  ... 11 more

 

Running coldfusion stop resulted in the following on the console:

 

Stopping ColdFusion 11 server, please wait

Jul 13, 2015 2:03:12 PM com.adobe.coldfusion.launcher.Launcher stopServer

SEVERE: Shutdown Port 8009is not active. Stop the server only after it is started.

 

And then it just hung until I hit CTRL-C.  There was a single java process running for CF which needed to be killed before I could try starting CF again.

 

Does anyone know why the newest OJDBC drivers cause such a problem with CF 11?

 

Thanks!

Installing ColdFusion on Windows 10

$
0
0

Anyone successfully installed CF11 (or any other version) on a Windows 10 machine?

 

I installed IIS, ISAPI Extensions, ASP.NET, and CGI.  The CF11 installer seemed to run well, and got to the point where it would normally launch CF Admin and came up with a 404 error.  I ran the Web Server Configuration Tool, and it pops up a warning box that says "Version 10.0 installed. Supported versions are 4.x, 5.x, 6.x, 7.x, 8.x" after I chose all IIS sites. Also, there isn't a numbered folder under c:\ColdFusion11\config\wsconfig\ like there should be, so there are no Handler Mappings for CF file extensions in IIS.

 

You'd think Adobe would be all over this as many developers will be switching to Windows 10 soon.

 

 

 


If I upgrade a customer from CF 6 MX to CF 11, should I do the Version 8, 9, 10 and then 11 or go directly to 11?

$
0
0

They have decided to stay with ColdFusion and I would be purchasing version 11.  But my concern was that there might be a greater chance of issues with compatibility from 6 directly to 11 than performing the incremental versions and test as I go.  Of course, the license key is an issue if I stop at all the intermittent versions, I would suppose.

 

Very old version and sorry to have to ask this question.

I want to implement ADFS 2.0 integration with Coldfusion. Has anyone implemented this before, please I need help.

$
0
0

I want to implement ADFS 2.0 integration with Coldfusion. Has anyone implemented this before, please I need help.

The web application is ready and the ADFS 2.0 has also been installed.

Cold Fusion 11 debugging question

$
0
0

Hi,

 

Trying to enable the debug option in Cold Fusion 11 in the development environment.

In the CF administration, the "Enabled Robust Exception" is enabled.

 

The URL below shows the error screens. These screen do not appear in Cold Fusion 11

The Complete Guide to Adding Error Handling to Your ColdFusion Application | Raymond Camden's Blog

 

The screen that appears is the:

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

 

Is there another option to enable?

 

 

 

Thanks,

 

Mike

hashing password with bcrypt in coldfusion

$
0
0


Hello

    I am trying to hash a password with bcrypt algorithm (try to match password with an off the shell software), but I keep getting error, it works for algorithms "SHA-1", "SHA-256" etc...<cfset hashpw = #hash(password_from_form, "SHA-1")#>, <cfset hashpw = #hash(password_from_form, "SHA-256")#>

   but  <cfset hashpw = #hash(password_from_form, "BCrypt")> don't work,  got error : The BCrypt is not supported by the security Provider you have chosen.

   Is there no bcrypt algorithm in coldfusion hash function ?

   Have been working on it over a week but without luck.

   btw, I am using dreamweaver 8.

 

    thank you so much in advance.

java.lang.IllegalStateException: Cannot create a session after the response has been committed

$
0
0

Yesterday a new CF11 server that we are prepping for production started spitting out these exceptions while performing a site security scan:

 

java.lang.IllegalStateException: Cannot create a session after the response has been committed

 

In googling I found some references to some Tomcat issues but nothing regarding ColdFusion. I know CF11 uses Tomcat but I have no idea what the error is or how to fix it. Anyone have any experience with this error and if so, details please...

 

Stack trace is as follows, if it helps:

 

java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2925) at org.apache.catalina.connector.Request.getSession(Request.java:2301) at org.apache.catalina.connector.RequestFacade$GetSessionPrivilegedAction.run(RequestFacade. java:216) at org.apache.catalina.connector.RequestFacade$GetSessionPrivilegedAction.run(RequestFacade. java:205) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:894) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:22 9) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:22 9) at coldfusion.runtime.AppHelper.setupJ2eeSessionScope(AppHelper.java:989) at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:1082) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:397) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:141) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:297) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55 ) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:249) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:237) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55 ) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186) at sun.reflect.GeneratedMethodAccessor855.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:97) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorR equestHandler.java:472) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest( FusionReactorRequestHandler.java:312) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(Fusio nReactorRequestHandler.java:192) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorR equestHandler.java:507) at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCor eFilter.java:36) at sun.reflect.GeneratedMethodAccessor854.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:79) at sun.reflect.GeneratedMethodAccessor853.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactor StaticFilter.java:53) at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChai nPointCut.java:41) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

 

Thanks.

Viewing all 6243 articles
Browse latest View live


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