Failure of cfcontent 11 ColdFusion

I have a stumper.  CF11 installed on our test server. Did some regression tests and run into a problem. I have a .cfm which uploads information to Excel. It makes very well in CF10 (and earlier versions). In CF11, she makes very well in IE10 and in FireFox. However, she fails horribly in IE8, and because most of our users must always be on IE8, it is a showstopper.

Here is the code that implements the dump of the excel - page name is show_table.cfm:

< cfif IsDefined('URL.) ExcelDump') >

< name cfheader = "Content-Disposition" value = "filename = #Session.utilstablename # .xls" >

< cfcontent type = "application / vnd.ms - excel" >

< / cfif >

The Web site is running under SSL.  I already disabled these lines - without variation of the error below:

< META http-EQUIV = "Pragma" CONTENT = "no-cache" >

"< META http-EQUIV ="cache-control"CONTENT =" non-magasin, non-cache, must-revalidate ">"

That's what I expect to happen - IE10 is a similar open/save Panel:

CF 11 FF download works.JPG

Here is what is happening in IE8:

CF 11 IE8 download issue.jpg

Note that the file name on the fail is identical to the .cfm page that tries to do the download. It is as if he does not see the cfheader assigning the name waited (which, for this particular download, should be er_quality_items_view.xls). I tried commenting the cfheader made are set by default and no change to the error.

It seems to me like it is a bug in CF11... any suggestions on how to work around this failure?

Specific to your problem is the behaviour of some versions of Internet Explorer

Citing MVP Erik Law (link below):

"If a user attempts to download a file via a HTTPS connection, the response headers that prevent caching will cause the process of downloading files to fail."

So it's actually the provision of Cache-Control header tokens as No.-cache & No.-store, a Vary header or the infamous header Pragma no.-cache which are at the origin of the browser give up downloading via the ssl Protocol. Assuming that the link to the blog of Erik Law survives the test of time, you can read all about it via the link below.

Thus, CFHEADER cache settings - the scale of the site can be good in general, but you'll need to erase everything when it comes to download files. Try placing this little gem your download above CFML code:

and test again.

http://blogs.msdn.com/b/ieinternals/archive/2009/10/03/Internet-Explorer-cannot-download-o worm-https-when-no - cache.aspx

https://groups.Google.com/Forum/?fromgroups#! ke6cSVHXMfM/openbd/topic

Tags: ColdFusion

Similar Questions

  • ColdFusion 10 - Communications MySQL link failure

    We are the migration of Web sites on a cloud infrastructure running Windows 2008 virtual machines.  These sites all run on ColdFusion with MySQL database.  Currently, they run in our camp with no problems.  In addition, they run on our network of development in our offices without any problem.

    We implement our cloud to match as much as possible the configuration that we currently use, that is, in essence, CF10 + IIS on a server and MySQL on a separate machine.  We are 99% completed and most of the things are running great.  However...

    We met a couple, like 2, places where we click a link/button and are greeted with:

    Run database query error.

    Failed to bind communication of the last packet received successfully from the server was ago 0 milliseconds. The last package successfully sent to the server was ago 0 milliseconds.

    I also find the stack trace analysis:

    "Caused by: java.net.SocketException: Connection reset'.

    The communication link error is ALWAYS: 0ms.

    What is more amazing is the queries that seem to be causing this are * simple * queries that are used ACROSS sites without any problems.  Why they do not reach these 2 particular places we was to end.

    Our only clue is, looking at the CF error description of which scripts are called, we can see the script where the request is a failure is called twice?  For example, among the occurrences is in our application:

    > the error occurred in D:/Our_Web_Sites/oursite/Application.cfm: line 73

    > called from D:/Our_Web_Sites/oursite/Application.cfm: line 17

    > called from D:/Our_Web_Sites/oursite/Application.cfm: line 1

    > called from D:/Our_Web_Sites/oursite/Application.cfm: line 73

    > called from D:/Our_Web_Sites/oursite/Application.cfm: line 17

    > called from D:/Our_Web_Sites/oursite/Application.cfm: line 1

    We can find nothing in our code of the CF could be at the origin of the script to call twice for our guess is the first call fails on the request for CF try again... only to failure and the error.

    Googling this issue I found a lot of posts on the modification of delays of MySQL.  None of those who have worked and I didn't expect to since what we have dealing to doesn't seem to be a timeout issue.  These pages fail every time.

    The closest we came to a solution came from this blog:

    http://www.TalkingTree.com/blog/index.cfm/2011/1/12/validation-query-for-MySQL-communicati ons-link-failure

    If UNCHECK us "Maintain connections across requests customer." in CFAdmin, then the error disappears.  The blog suggests leaving checked, that is our preference and using the "SELECT 1" connection Validation;.  Try this... same error.

    We also tried the JDBC = true option connection.  No effect.

    Downloaded the latest JDBC connector and used instead of the standard CF10-MySQL connector.  No effect.

    In addition, 99% of the site works with the exception of these two links, which work fine in all other workplaces.  Any other ideas?

    Found the problem.  We manage our network on Cloud Computing of the Savvis infrastructure.  The Windows Server instances that use of Savvis had Trend Micro Deep Security Agent installed.  This is an intrusion protection system and that was the problem.  The deactivation of the service cleared up all communication errors.  I have no idea why he was rejecting some queries that he had simply agreed previously.  I'm just happy to (finally) put this behind me!

  • ColdFusion 9 MySQL communication link failure

    just install Coldfusion 9 and everything now works fine and it is connected to my MySQL database via the administrator Coldfusion as a datasrouce, but I get this error that occur rarely, maybe 5 - 10 times a day. I don't know how to recreate it, and if you get it and refresh the page, it's gone.

    Error Executing Database Query. Communications link failure Last packet sent to the server was 0 ms ago

    The error is caught by coldfusion as it is displayed a friendly message and emailing me the problem.

    Most of the time loading pages and work fine and this problem occurred only since going from CFMX7 to CF9, both using MySQL.

    I use MySQL version is "5.0.77.

    I tried localhost and 127.0.0.1 as host in the source of data, it makes no difference.

    Does anyone have an idea what it is and how to fix it? I've seen a few similar posts for Java, but I don't see how to translate the fix everywhere in Coldfusion?

    And would that be a problem of MySQL or Apache anyway?

    The parameter keep connections means that after you create a db connection

    for a database, this connection will be used for the current request and

    then kept open in a connection pool so that they can be reused for later

    queries. The reason is that opening a connection is expensive once,

    consumption of operation and effective to have only authenticate

    once.  When this setting is disabled, each page request to access a

    given the database, a new database connection will be created, the db

    authentication will occur, that the query/queries on the request will happen,

    then the db connection will be closed.

    When you manage connections you have a db connection pool that may exist

    for an extended period, be reused frequently with additional requests.

    If the connections are inactive for a period over the idle time-out

    adjustment in the definition of data source connections are closed and

    the size of the pool is reduced.  Also, if a query retrieves a connection of

    the pool, trying to use it for a query to a query, then if cela db

    connection generates an error in the db, then that is another situation where the db

    connection will be closed and removed from the pool.

    He has been known to happen when you are pooling of data source connections

    the same as its possible that the TCP connection to the database has been

    interrupted for a reason, and when the connection is checked for use

    on a page request, you will get an error type of 'communication '.  The

    real error message will vary depending on the database.

    If resolve connections uncheck maintain this link of Communication MySQL

    Problem of failure for you, then you are better off rechecked the it AND adding a

    request validation.  ColdFusion 8.0 introduced a field in dsn definition

    for a Validation request.  It works this way: when a database connection is

    created first AND each subsequent time this connection is extract return

    from the pool, the validation request will run BEFORE all queries for the page

    request.  If the validation request fails, the request of your page will never see

    the error because ColdFusion will throw this db connection and get

    another connection from the db connection pool.  It will work then the

    validation query too for this connection.  If this an errors, ColdFusion

    will continue at the close of the bad connections and check other connections

    until now no connection doesn't stay in the connection pool.  If she actually

    got this extreme (which means that every connection in the pool is proven to be bad)

    then ColdFusion will then create a NEW db connection and use that one, and

    It will run the validation on it also query.  All this happens before

    your application runs to ensure that your application receives a good db connection

    from the very beginning.

    A good validation query is something that is very effective for db

    There is not really having to run it.  For MySQL, you can use: select 1

    That's all.  Only enter the field of validation for the data source query

    and keep connections keep checked to improve efficiency with connection

    pooling.

    Make sense?

  • ColdFusion 9.0.2 with IIS 7.5, failure of Windows 2008 R2

    Hello

    I'm fresh install ColdFusion 9.0.2 on IIS7.5 (Windows 2008 R2).

    Options: Company multiserver Configuration.

    After installation, when I opened CFIDE/administrator or any CF page his throwing error like below:

    HTTP error 404.3 - not found

    The page you are requesting cannot be served due to the configuration of the extension. If the page is a script, add a handler. If the file should be downloaded, add a MIME mapping.

    Thank you.

    Problem is solved just need to install the module ASP.NET in IIS.

  • CFContent default on large files since his arrival in ColdFusion 9

    Keep getting "Pascal Web site page". It is allowed when the file is 50 MB and 300 MB or more - she didn't.

    He has worked on CF8. We migrated to CF9 during the weekend and all the settings are the same.

    I found that several users of CF faced a similar question - so I know it is not only me as Dan, Tom, etc (http://www.mail-archive.com/[email protected]/msg348532.html/ / www.mail-archive.com/[email protected]msg348532.html)

    Thank you

    Pat.

    We are currently investigating this bug.

  • By using cfcontent to pull of the pdf of the file

    Hello

    I shopped in the forums and have not found a solution. What I'm trying to achieve is simple, but have problems to run.

    I want to spend a dynamic url string of a web mapping application to a cold fusion page which then opens the pdf file in the users browser. This is an example of the url that will be sent to this page and based on what functionality, the user selects, subdir and page_id will be dynamic:

    http://localhost/displayImage.cfm?subdir=60 & page_id = 3807444

    This is what I have so far for displayImage.cfm, it is just a beginning, I know that I need more, possibly content cfheader? When I run this code I get an error saying the file was not found.

    <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / BY" > ".

    < html >

    < head >

    < title > Untitled < /title >

    < / head >

    < body >

    < cfquery name = "Polls" datasource = "sire", dbtype = "odbc" >

    Select *.

    from slco_sire.dbo.surveys_doc INNER JOIN slco_sire.dbo.surveys_page

    ON slco_sire.dbo.surveys_doc.doc_id = slco_sire.dbo.surveys_page.doc_id

    < / cfquery >

    < cfset picture = "#url.page_id #" >

    < cfset sub = "#url.subdir #" >

    < cfcontent line = "\\path\to\file\#sub#\#picture#" type = "application/pdf" reset = "yes" >

    < / body >

    < / html >

    Any help would be very pleased, I'm stuck.

    No, the variables are not the problem.

    The ColdFusion service runs under a specific user account, and it is this account that must have security privileges to access the file on the network where PDF files.

    You need to ask your network administrator that you are looking for.

    See you soon

    Eddie

  • getJSON application using ColdFusion proxy

    I'm following this article by Ben Nadel - do not know if there is some other better tutorials out there. In any case, I kept getting the Variable ALLARTICLESDATA is not defined. error.

    < script type = "text/javascript" >

    Run when the DOM is ready.

    $(function() {})

    jForms var = $(le «formulaire»);

    Connect the form.

    () jForm.submit

    function (objEvent) {}

    Get the Owl knowledge items.

    GetArticles();

    Prevent default.

    Return (false) End Function

    });

    });

    This method performs cross-site AJAX

    using a ColdFusion proxy page.

    function GetArticles() {}

    {$('#searharea').keyup (function ()}

    var searchField = $('#searharea').val ();

    var myExp = new RegExp (searchField, "i");

    $.getJSON('ajaxProxy-KB.cfm', {proxyURL: 'https://app.knowledgeowl.com/api/head/article.json', )

    name: {}

    $regex: searchField.

    $options: "I."

    }},

    {function (Data)}

    Console.log (data.valid, data.data); Data.Data is an array of information!

    output var = ' < ul class = "search results" > ";

    $(data.data, fonction (i, article) {} .each)

    output += '< li > ";

    " output += ' < h5 > < a href =" https://kb.mysite.com/help/pdfexport/id/'+ article.id + ' "> ' + article.name + ' < / h5 > '; "

    output += "< /li >";

    });

    output += '< /ul > ";

    $('#resultarea').html (output);

    }); get JSON

    });

    }

    < /script >

    < cfoutput >

    < section class = 'block' >

    < ul class = "tabs" >

    < li > < a href = "# tab1" > Search < /a > < /li >

    < li > < a href = "# tab2" > Article < /a > < /li >

    < li > < a href = "# tab 3" > class < /a > < /li >

    < /ul >

    < section id = "tab1" >

    < input type = "text" id = "searharea" name = "searcharea" placeholder = "Search the article name" > < / input >

    < div id = "resultarea" > < / div >

    < / item >

    < section id = "tab2" >

    < cfif! IsJSON (allArticlesData) >

    < h3 > The URL you requested does not valid JSON < / h3 >

    < cfelse >

    < cfset allArtData = DeserializeJSON (allArticlesData) >

    < cfif structKeyExists (allArtData, 'data') >

    < cfloop index = "i" = "1" to = "#arrayLen (allArtData.data) #" >

    " < h5 > < a href =" https://KB.mysite.com/help/pdfexport/ID/#allArtData.Data [i] user.user # "> #allArtData.data [i] .name # < /a > < / h5 > .

    < / cfloop >

    < / cfif >

    < / cfif >

    < / item >

    < section id = "3" tab >

    < cfif! IsJSON (cateData) >

    < h3 > The URL you requested does not valid JSON < / h3 >

    < cfelse >

    < cfset cfDJData = DeserializeJSON (cateData) >

    < cfif structKeyExists (cfDJData, 'data') >

    < cfloop index = "i" = "1" to = "#arrayLen (cfDJData.data) #" >

    < h5 > #cfDJData.data [i] .name #-#cfDJData.data [i] user.user # < / h5 >

    < / cfloop >

    < / cfif >

    < / cfif >

    < / item >

    < / section >

    < / cfoutput >

    And here is my proxy page.

    <!--

    Check if the page request is a POST or a GET.

    On this basis, we can understand our target URL.

    ->

    < cfif (CGI.request_method EQ "get") >

    <!-based on a URL get target url. ->

    < cfset strTargetURL = URL. ProxyURL / >

    <!-remove the target URL. ->

    < cfset StructDelete (URL, 'ProxyURL') / >

    < cfelse >

    <!-get target url FORMS-based. ->

    < cfset strTargetURL = FORM. ProxyURL / >

    <!-remove the target URL. ->

    < cfset StructDelete (FORM, 'ProxyURL') / >

    < / cfif >

    <!--

    Remove any AJAX anit-setting cache which has been used by jQuery. This

    a random number is intended to help ensure that the GET URL are

    not implemented cache.

    ->

    < cfset StructDelete (URL, '_') / >

    <!--

    Make the HTTP proxy request for help. When we do that, trying to convey information to CGI that was made by the initial application of AJAX.

    ->

    "< result cfhttp ="objRequest' url = "#UrlDecode (strTargetURL)" # "method =" #CGI.request_method # "useragent =" "#CGI.http_user_agent #" timeout = "15" > "

    <!-add the referer which was past-po->

    < cfhttpparam type = "header" name = "referer" value = "" #CGI.http_referer # "/ >"

    <!-pass the values to the URL. ->

    < point cfloop = collection 'strKey' = "#URL #" >

    "< cfhttpparam type ="url"name =" (strKey) #LCase "#" value = "#URL [strKey] #" / >

    < / cfloop >

    <!-transmit the values of the FORM. ->

    <!-< element cfloop = 'strKey' collection = "# FORM #" >

    "< cfhttpparam type ="formfield"name =" (strKey) #LCase "#" value = "#FORM [strKey] #" / >

    < / cfloop >->

    < cfhttpparam type = "url" name = "_authbykey" value = "56a7d8c123131c4058361567" >

    < cfhttpparam type = "url" name = "project" value = "55c4ffd123131c567e294fe6" >

    < cfhttpparam type = "url" name = "status [$in] []" value = "published" >

    < cfhttpparam type = "url" name = "status [$in] []" value = "review" >

    < cfhttpparam type = "url" name = "_fields []" value = "name" >

    < / cfhttp >

    <!--

    <!-debug requires more up-to-date. ->

    < cfset objDebug = {}

    CGI = double (CGI)

    URL = double (URL),

    = Double (SHAPE) SHAPE,

    Ask = double (objRequest)

    } / >

    <!-debug output to the file. ->

    < cfdump

    var = "" #objDebug # ""

    output = "#ExpandPath ('.)" (/ ajax_prox_debug.htm") #

    format = "HTML".

    / >

    ->

    <!--

    Get the content as a byte array (by converting it to binary,

    We can send the appropriate length as well as use it in

    the binary response stream.

    ->

    < cfset binResponse = ToBinary (ToBase64 (objRequest.FileContent)) / >

    <!-Echo back the response code. ->

    "< cfheader statuscode =" #Val (objRequest.StatusCode) "#" statustext = "#ListRest (objRequest.StatusCode, ' ') #" / >

    <!-Length response Echo back. ->

    < name cfheader = "content-length" value = "#ArrayLen (binResponse)" # "/ >"

    <!-Echo back all heaers response. ->

    < item cfloop = 'strKey' collection = "#objRequest.ResponseHeader #" >

    <!-Check if this header is a simple value. ->

    < cfif IsSimpleValue (objRequest.ResponseHeader [strKey]) >

    <!-back Echo header value. ->

    "< name cfheader =" "#strKey #" value = "#objRequest.ResponseHeader [strKey] #" / >

    < / cfif >

    < / cfloop >

    <!--

    Echo of content with the appropriate mime type. With the help of

    the Variable attribute, we will ensure that the content

    Stream is reset to zero and THAT the response will be returned.

    ->

    "< cfcontent type =" "#objRequest.MimeType #" variable = "#binResponse #" / >

    It turns out that I don't need this block of code cfloop. The error is actually the cfheader tag. It works fine without the cfloop in this moment, so I'll just remove.

  • Cannot download Coldfusion 11

    I have 11 Coldfusion download problems. We have CF11 but the installable are managed by another group and we do not have access to them. In the past, our developers would just download the trial/developer of Adobe. Now, however, Adobe requires a download manager which apparently does not work with the security of the corporate network. I installed the client (something a lot of people do not), but the status is stuck at "Waiting."... "and the file never shows up in the Akamai NetSession Interface Console.

    I need help to get this file and the official technical support options seem to be abandoned (since all that led me here). I found other places that have the file, but I'm nervous download from an unofficial location.

    For Adobe,.

    This is a major failure. You have a Fortune 500 company who bought your product and its developers (leading to the use of the product to the company) who can't get the download to facilitate the upgrade for its use.

    We use mainly Mura that is well supported under Lucee which is free and open source. This 'disadvantage' is nothing do but pushing us away with your products. In fact we only upgraded to CF11 due to horrible bugs and problems that we still have trouble with on CF10.

    So, Yes, be nice to be actually taken in charge as a paying client instead of having to use the forums or a friendly Downloader outside the company.

    Umbrae,

    I have originated the EddieLotter referenced post.  These links work, for once.  However, do not despair, because Charlie Arehart (well respected in the community of the CF) has provided a link to a CF downloads repo.  I hope you find it useful.

    And although Adobe is hosting this forum, there are very few employees Adobe who deign to enter.  There are a few (Anit_Kumar, hahul_u) who seem to be more frequent than others.  But the fact is that Adobe does not give rectum a rodent on their customers.  They are very much like Micro$ oft - "our users will love is what fit us into their throat, or that they will LOVE it, no matter how difficult, we do for them to acquire or use."

    And if you are on a Unix/Linux platform, the repo is the only way you will get to see  The DLM Akamai does NOT work for these operating systems.

    HTH,

    ^_^

  • If you use CFHEADER and CFCONTENT to disseminate an Excel file, Javascript still works?

    Hello, all,.

    I use a hidden iFrame which loads a page using CFHEADER and CFCONTENT to disseminate an Excel of a form submission.  I'm _trying_ to use JavaScript to change the value of the button element that sends the form to the parent page.

    I see no success.  JavaScript still works when a page using CFHEADER and CFCONTENT?

    I can't even a simple JS alert() to work.

    V/r,

    ^_^

    I don't expect Javascript to run when you use,

    These tags Coldfusion binary content, i.e. sending code Excel, result to the browser.

  • Cfcontent in IE

    Hi all

    This is my code to download an excel file.

    "< cfspreadsheet action ="Write"filename="#local.location#\#local.fileName# "query =" local.qryResultset"overwrite ="false"/ >"

    < name cfheader = "Content-Disposition" value = "inline; filename = #local. FileName #; "/ >

    "< cfcontent file="#local.location#\#local.fileName# "type =" application/msexcel"reset =" "deletefile ="yes"/ >

    All my variables go very well. The process worked well in firefox, but in IE, I have a problem (http or https), it displays an error when saving the file:

    LOCALNAME20150922153304.xls may have been moved or deleted.

    It seems that IE is caching the name somewhere?

    Any ideas?

    We use Coldfusion 10.

    Best,

    I changed the word for fixing line and it works.

    For:

    I hope this helps someone else.

    Best.

  • Update 6 - messaging (BlazeDS) ColdFusion 11 errors

    I upgraded to Coldfusion 11 update 6 and started getting error messages in an application that works for 5 years. When I got back the update to update 5 the messaging errors occur is no longer.

    The coldfusion - out .log file shows the error-

    02/09/2015 09:46:50.656 [BlazeDS-v4] [ERROR] [Message.General] error unhandled during the processing of a message: java.lang.NoClassDefFoundError: javax/jms/InvalidSelectorException

    incomingMessage: Flex Message (flex.messaging.messages.CommandMessage)

    operation = subscribe

    selector = null

    clientId = 331A3C73-901F-61DA-8F42-2798D21DDDB5

    correlationId =

    destination = AMMATECH-TS-1_Assure_Production_PJMCommand

    messageId = EC9A7AA1-BBFE-5E9C-7438-8B4E527E2868

    timestamp = 1441151210640

    timeToLive = 0

    body = {}

    HDR (DSValidateEndpoint) = true

    HDR (DSEndpoint) = magtech-secure-long-polling-amf

    HDR (Iddm) = 32ADC5E8-B31A-1F57-50F5-ED86869A7E69

    errorReply: Flex Message (flex.messaging.messages.ErrorMessage)

    clientId = 331A3C73-901F-61DA-8F42-2798D21DDDB5

    correlationId = EC9A7AA1-BBFE-5E9C-7438-8B4E527E2868

    destination = AMMATECH-TS-1_Assure_Production_PJMCommand

    messageId = 331A3C9A-A00F-ABAC-C68A-EE3098487A55

    timestamp = 1441151210656

    timeToLive = 0

    body = null

    code = Server.Processing

    message = there was a failure not managed on the server. javax/jms/InvalidSelectorException

    Details = null

    rootCause = null

    body = null

    extendedData = null

    Error: java.lang.NoClassDefFoundError: javax/jms/InvalidSelectorException

    at flex.messaging.services.MessageService.testSelector(MessageService.java:1180)

    at flex.messaging.services.MessageService.manageSubscriptions(MessageService.java:928)

    at flex.messaging.services.MessageService.serviceCommand(MessageService.java:337)

    at flex.messaging.MessageBroker.routeCommandToService(MessageBroker.java:1578)

    at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1019)

    at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:101)

    at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:154)

    at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:42)

    at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:63)

    at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:190)

    at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:328)

    at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:373)

    at coldfusion.flex.ColdFusionMessageBrokerServlet.service (ColdFusionMessageBrokerServlet.jav one: 114)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava: 303)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

    at coldfusion.filter.FlashRequestControlFilter.doFilter(FlashRequestControlFilter.java:71)

    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava: 241)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

    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:171)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    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:199)

    to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.jav one: 607)

    to org.apache.tomcat.util.net.JIoEndpoint$ SocketProcessor.run (JIoEndpoint.java:314)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    to org.apache.tomcat.util.threads.TaskThread$ WrappingRunnable.run (TaskThread.java:61)

    at java.lang.Thread.run (unknown Source)

    Caused by: java.lang.ClassNotFoundException: javax.jms.InvalidSelectorException

    at java.net.URLClassLoader.findClass (unknown Source)

    at coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:213)

    at java.lang.ClassLoader.loadClass (unknown Source)

    ... 35 more

    Any ideas?

    Hi Tony - It seems that it may be a few new dependencies in BlazeDS 4.7, see this thread: incompatible replacement [FLEX-34886] BlazeDS 4.7.0 for BlazeDS 4.6-ASF JIRA

    From the I think you add ActiveMQ jar (s) to your lib / directory (classpath).

  • Updating ColdFusion 10 IIS7 13 503 Service unavailable

    Updating ColdFusion 10 13

    Windows Server 2008 Datacenter SP2

    IIS7

    We have periodic problems where our Coldfusion service seems to recycle or restarted, and the user will receive an error Code 503 return of IIS.

    At the time of the error, our coldfusion - out .log shows the start of the service:

    Sep 9, 2014 12:46:55 PM Information [pool-2-thread-1] - Starting logging...
    Sep 9, 2014 12:46:55 PM Information [pool-2-thread-1] - Starting license...
    Sep 9, 2014 12:46:57 PM Information [pool-2-thread-1] - Standard Edition enabled
    Sep 9, 2014 12:46:57 PM Information [pool-2-thread-1] - Starting crypto...
    Sep 9, 2014 12:46:57 PM Information [pool-2-thread-1] - Starting security...
    Sep 9, 2014 12:46:59 PM Information [pool-2-thread-1] - Starting scheduler...
    Sep 9, 2014 12:46:59 PM Information [pool-2-thread-1] - Starting WatchService...
    Sep 9, 2014 12:46:59 PM Information [pool-2-thread-1] - Starting debugging...
    Sep 9, 2014 12:46:59 PM Information [pool-2-thread-1] - Starting sql...
    Sep 9, 2014 12:47:00 PM Information [pool-2-thread-1] - Pool Manager Started
    Sep 9, 2014 12:47:00 PM Information [pool-2-thread-1] - Starting mail...
    Sep 9, 2014 12:47:00 PM Information [pool-2-thread-1] - Starting runtime...
    Sep 9, 2014 12:47:01 PM Information [pool-2-thread-1] - CORBA Configuration not enabled
    Sep 9, 2014 12:47:01 PM Information [pool-2-thread-1] - Starting cron...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting registry...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting client...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting xmlrpc...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting jaxrs...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting graphing...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting solr...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting archive...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting document...
    Sep 9, 2014 12:47:02 PM Information [pool-2-thread-1] - Starting eventgateway...
    Sep 9, 2014 12:47:03 PM Information [pool-2-thread-1] - Event Gateway Disabled.
    Sep 9, 2014 12:47:03 PM Information [pool-2-thread-1] - Starting FlexAssembler...
    Sep 9, 2014 12:47:03 PM Information [pool-2-thread-1] - Starting .NET...
    Sep 9, 2014 12:47:04 PM Information [pool-2-thread-1] - Starting Monitoring...
    Sep 9, 2014 12:47:04 PM Information [pool-2-thread-1] - Starting WebSocket...
    Sep 9, 2014 12:47:04 PM Information [pool-2-thread-1] - WebSocket server listens on port: 8575
    Sep 9, 2014 12:47:04 PM Information [pool-2-thread-1] - ColdFusion started
    Sep 9, 2014 12:47:04 PM Information [pool-2-thread-1] - ColdFusion: application services are now available
    

    The IIS access log displays the page request, followed by the 503 status code.

    2014-09-09 16:46:48 10.185.130.118 POST /cart 8086 - 10.238.196.27 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+Trident/7.0;+rv
    :11.0)+like+Gecko 503 0 0 2199
    

    In the Windows event logs, we see the following

    12:46:44PM The WinHTTP Web Proxy Auto-Discovery Service service entered the running state.
    12:47:16PM The ColdFusion 10 Application Server service entered the running state.
    

    This occurs several times per day

    Isapi_redirect.log spring tomcat late CF10 is a failure.

    Maybe some of the tuning of tomcat CF application mentioned in this blog will help you. The blog is titled CF11 however CF10 affect details:

    http://blogs.ColdFusion.com/post.cfm/ColdFusion-11-IIS-connector-tuning

    I discuss and demonstrate some of the parameters SEE here tomcat:

    http://Vimeo.com/67571552

    The date stamp connector seems correct.

    HTH once again, Carl.

  • Problem with installing ColdFusion 10 Apache 2.2.3

    OK so I'm having a hard time getting CF10 64 bit installed on Red Hat Enterprise Linux 5.10

    Apache version: 2.2.3

    I installed CF10 but when I try to restart Apache I get this error:

    From httpd: http: /etc/httpd/conf/httpd.conf 992 online syntax error:

    On line 2 of /etc/httpd/conf/mod_jk.conf syntax error

    Cannot load /opt/coldfusion10/cfudion/wsconfig/1/mod_jk.so into server: /opt/coldfusion10/config/wsconfig/1/mod_jk.so

    unidentified symbol: a_get_server_description

    Everything seems to work perfectly, but I can't get Apache to restart due to this error.

    Anyone have any suggestions to try?

    TIA

    Update:

    Okay, for now, I think I've got it worked. So I hope to help someone else in my shoes I'll summarize what I did to get this to work:

    10 ColdFusion

    Red Hat Enterprise Linux 5.10

    Apache x 64 v 2.2.3

    After installation, I noticed the following error when you try to start Apache:

    From httpd: http: /etc/httpd/conf/httpd.conf 992 online syntax error:

    On line 2 of /etc/httpd/conf/mod_jk.conf syntax error

    Cannot load /opt/coldfusion10/cfudion/wsconfig/1/mod_jk.so into server: /opt/coldfusion10/config/wsconfig/1/mod_jk.so

    unidentified symbol: a_get_server_description

    After much research, I found this link: https://helpx.adobe.com/coldfusion/kb/rhel-connector-configuration.html

    Here, he mentioned that Adobe has some prior mod_jk.so files met for a specific version of RHEL.

    My version did not appear, but it didn't stop me from trying to copy the mod_jk.so file in the config directory located here (/ opt/coldfusion/config/wsconfig/1 /)

    According to the link, if none of these worked, I have to compile a connector of my own.

    To compile the source connector, follow these steps:

    1. Unzip the connector - source.zip.
    2. Open the Aboriginal file.
    3. Gives permission to file chmod-r 777 natively.
    4. Run the command configures the following:
    . / configure--with-apxs = {path executable apxs} {find the location of the apxs using find /-name apxs}

    For example, if the apache is installed under/home/apache2, then above the command is as follows:

    . / configure--with-apxs = / home/apache2/bin/apxs

    1. Once configured, the command works fine. Run the make of the same folder. The mark command compiles all sources.
    2. Open the folder of apache - 2.0 and locate mod_jk.so.
    3. If you can't find mod_jk.so, open the file apache - 2.0.
    4. Replace the mod_jk.so generate with previous configured connector. You can find the same location {cf-home}/config/wsconfig/{magic-numner}/mod_jk.so.
    5. Restart ColdFusion and Apache.

    The first problem I encountered was, apxs has not been installed on the system.

    I could get installed (as root)

    sudo yum install httpd-devel

    This gave me the apxs command. I tried again, another failure. This error says: error: C++ preprocessor "/ lib/cpp" fails the validation test

    This means that there can be no c compiler ++ on my system. So, back to yum to install gcc - c++.

    sudo yum install gcc - c++

    Once was installed, I was able to find the path to apxs and follow directions above. Once he had compiled, I looked in the directory apache - 2.0 and copy the mod_jk.so freshly were respected in the configuration directory.

    A quick restart of Apache and coldfusion has confirmed that everything was working.

  • Treatment of the variables in ColdFusion that resides inside a database table

    One of my table stores an HTML form that contains the coldfusion variables. In my code I question this table and I need display the form in the front. But while dsiplaying, I'm getting the coldfusion variable name itself instead the transformed value of the variables.

    HTML form stored in the db table:

    ================================

    < do action = "" name = "ci_entry_form" id = "ci_entry_form" method = "post" > "

    < table width = "100%" height = "100%" border = "0" >

    < b >

    < td align = "right" > < style b = "color: red" > * < /b > < class label = "pop_up_letter_font" > G/L #: < / label > < table >

    < td > < input class = "pop_up_textbox" type = "text" name = "gl_number_text" id = "gl_number_text" maxlength = value = "#ARGUMENTS.chkDetails.GL_ACCT_NBR #"21"" required / > "

    < select class = "pop_up_dd" name = "gl_number_drop" id = "gl_number_drop" onChange = "enableDisableGL ()" >

    < option value = "" > - Select - < / option >

    < option value = "new" > enter a new G/L number < / option >

    < cfoutput query = "glNumbers" >

    < option value = "#glNumbers.GL_ACCT_NBR #" > #glNumbers.GL_ACCT_NBR # < / option >

    < / cfoutput >

    < / select >

    < table >

    < /tr >

    < /table >

    < / make >

    Method (cffunction) contains the code to query the html form for the db table and return the form html below.

    ========================================================================================== ==

    < name cfquery = "qry_getTemplate" datasource = "#APPLICATION.dsn #" >

    Select FORM_TXT in the HTML_FORMS where REQ_ID = 172

    < / cfquery >

    < cfsavecontent variable = "form_content" >

    #qry_getTemplate.FORM_TXT < cfoutput > # < / cfoutput >

    < / cfsavecontent >

    But when I dump the cfcontent (form_content) variable I get the HTML form without transformation of the coldfusion variables (* #ARGUMENTS.chkDetails.GL_ACCT_NBR #, #glNumbers.GL_ACCT_NBR #*).

    I'm missing something. Can someone help me solve this problem.

    Your timely help is well appreciated.

    Thanks in advance.

    Add the cfoutput tag:

  • Connection of multiple instances of ColdFusion 10 to a single server Apache 2.2

    It is replicated from site "Server failure" StackOverflow. The CF community is under represented, so I post here also.  Sorry for "cross-post".

    It's on Windows 7 Home Premium edition.

    I had two instances of ColdFusion 10 (update 2): "cfusion" (the default) and "scratch."

    I had a single instance of Apache 2.2 running.

    In Apache, I've set up two virtual servers, each of which must be served by another instance of ColdFusion.

    Each CF instance serves files through an internal web server to Tomcat. Apache serves as vanilla HTML files too. If instances of CF and two virtual servers separately work OK.

    I can get wsconfig.exe to connect either of the CF instances to the Apache Server and serve files via Apache and this instance CF.

    However I don't find a way to connect the second instance of CF at Apache, so that two instances of CF are connected, each serving one of the virtual servers. WSConfig doesn't seem to understand the concept of "multiple instances of CF", and the changes it brings to the httpd.conf (via mod_jk.conf) does not seem to be implemented so as to take account of multiple instances of CF, speaking to a single instance of Apache, or several virtual servers. I will admit not being fairly confident with mod_jk (or even really httpd.conf) operation to be able to guess if I can change things to make it work.

    If I try to add the second instance of CF using WSConfig, I received a message "the web server is already configured for ColdFusion. Whatever it is... not the instance of ColdFusion - what I want to connect to. If I remove the connector in any instance is already connected, I can connect and then a no problems. Not that this helps, but it demonstrates that the CF can connect to Apache.

    All of this used to be relatively straight line fwd under older versions of CF and JRun :-(

    The docs just I found are on the page "Connect multiple Apache virtual servers on a web server to a single ColdFusion Server" (http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fd 5 html), but that precisely only addresses a single instance of CF. There is no equivalent page for several instances of CF.

    I hope a little I can move some of the config of mod_jk in my virtual host entries in httpd - vhosts.conf (that's how it used to work for JRun), but I have no idea what to put where.

    I think I covered all the necessary info here? If not, sing and I'll add more. Thank you.

    Anyone?  See you soon.

    --

    Adam

    HA, in fact, I see the question ServerFault replied back right after you asked me: connecting multiple instances of ColdFusion 10 to a single server Apache 2.2 - Server Fault

Maybe you are looking for