|
Hi we are using coldfusion10 enterprice edition in our environment, we initiated to move our database to oracle 11g RAC clusterwith 3 Nodes (configured TAF). our application is connecting fine to database using SERVICE NAME instead of SID. But where the database failover is not working. when ever a node goes down the connection between application and database is lost, and it is taking several minutes to reconnect. > Tried connecting to RAC using macromedia driver and ojdbc driver's too. > Used Ora Client 11.2.2 to connect but no use, Failover is not working. Please help. |
CF10 on Oracle 11g RAC not working
CF11 and CF2016: can you use ref cursors with Oracle ojdbc drivers (not DataDirect)?
Will newer versions of CF (cf11 or CF2016) allow you to use Oracle's ojdbc thin drivers (12g) along with REF CURSOR? I know ojdbc drivers did not allow CF ref cursors in older versions... We must use ojdbc drivers:
The Oracle JDBC thin driver oracle.jdbc.thin works fine with proxy authentication. But doesn't work with stored procedure REF CURSOR parameters. The ColdFusion documentation for cfprocresult states "You cannot use [REF CURSORS] with Oracle’s ThinClient JDBC drivers." Is this statement up-tod-date? Does it apply to the current v11/12 Oracle JDBC driver? Is there any workaround that allows REF CURSOR parameters?
Will CF2016 allow Oracle ojdbc drivers to work with REF CURSOR ( cfprocresult) ?
Will newer versions of CF (cf11 or CF2016) allow you to use Oracle's ojdbc thin drivers (12g) along with REF CURSOR? I know ojdbc drivers did not allow CF ref cursors in older versions... We must use ojdbc drivers:
The Oracle JDBC thin driver oracle.jdbc.thin works fine with proxy authentication. But doesn't work with stored procedure REF CURSOR parameters. The ColdFusion documentation for cfprocresult states "You cannot use [REF CURSORS] with Oracle’s ThinClient JDBC drivers." Is this statement up-tod-date? Does it apply to the current v11/12 Oracle JDBC driver? Is there any workaround that allows REF CURSOR parameters?
update multiple fields within multiple records
Hi All,
I'm trying to edit this piece of code to allow me to edit more than just one field within a multi-record update. However, when I add a second field to the SET, I get this error:
"Invalid list index 5. In function ListGetAt(list, index [, delimiters]), the
value of index, 5, is not a valid as the first argument (this list has 4
elements). Valid indexes are in the range 1 through the number of elements in
the list.
The error occurred on line 120." (Line 120 is BESFollowUpStatus)
<CFSET Form.totRecords = Val(Form.totRecords) >
<CFOUTPUT >
<cfloop from="1" to="#form.totRecords#" index="ct">
<cfquery name="Recordset2_UPDATE" datasource="Incident_Reporting">
UPDATE dbo.tbl_P1
SET
AllDocumentsAttached = '#listgetat(form.AllDocumentsAttached,ct)#',
BESFollowUpStatus = '#listgetat(form.BESFollowUpStatus,ct)#'
WHERE
ID = #listgetat(form.ID,ct)#
</cfquery>
</cfloop>
<!---***************Ends : Multiple Active Reocrds************************--->
</CFOUTPUT>
Can you help me understand the error in the logic or if I am just going about this all wrong?
Thanks,
John
Using dot(.) in custom tag variable
Hi,
I want to implement a custom tag for <cfset. I am able to implement but facing issue that i cannot use dot(.) operator in variable name
For e.g.
<cf_set url.value="123"> is not allowed and it gives following error:
coldfusion.compiler.TokenMgrError: Invalid token . found on line 8 at column 27.
at coldfusion.compiler.cfml40TokenManager.getNextToken(cfml40TokenManager.java:6658)
at coldfusion.compiler.cfml40.jj_ntk(cfml40.java:13711)
at coldfusion.compiler.cfml40.TagAttribute(cfml40.java:5488)
at coldfusion.compiler.cfml40.attribute_list_aux(cfml40.java:5356)
at coldfusion.compiler.cfml40.attribute_list(cfml40.java:5334)
at coldfusion.compiler.cfml40.cftag(cfml40.java:224)
but "." operator is allowed with <cfset url.value and it works fine.
Please provide thoughts to resolve it for use of "." with custom tag variable name
How to handle XSS attack?
Hi
Is there any way to prevent a XSS attacks in cold fusion in already established project?
I used encodeForHTML(url.NewValue) for an input but applying this to every input of Form of all the pages in the project won't be possible.
Is there a way to do this from single location without affecting rest of the code in project?
500 Error after updating CF11 on a silent install
I'm trying to get a silent install package working and while the install completes correctly, running any updates for CF result in a 500 error that I cant resolve. It does this whether I install the hotfixes through CF admin or manually
I can reproduce this in my lab every time, but found that if I install CF interactively, everything works great and the updates are successful
I'm not sure what I might be missing in the silent install thats causing this behavior. VC++2012 is already installed, and thats the only difference I noticed between the two
The error I'm seeing after updating to hf-11-0011 is below (this is just from CFAdmin). The update log shows everything is SUCCESSFUL
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.NullPointerException coldfusion.monitor.error.RequestErrorMonitorEventHandler.onRequestEnd(RequestErrorMonitorEventHandler.java:31) coldfusion.monitor.event.RequestMonitorEventProcessor.onError(RequestMonitorEventProcessor.java:558) coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:69) coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) coldfusion.filter.ClickjackingProtectionFilter.doFilter(ClickjackingProtectionFilter.java:75) coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
Is SQL Server 2008 R2 compatible with CF9?
Hello,
We got a message from out IT department that our SQL Server 2000 databases will get decommissioned. They wanted us to migrate to 2014, but according to the CF9 support matrix https://www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/coldfusion9-support-ma trix-4-ue.pdf, CF9 is compatible only up to 2008.
So they created a 2008 R2 database server, but when I'm trying to connect to it through the CF9 admin screen I get the following:
Connection verification failed for data source: test
java.sql.SQLException: Timed out trying to establish connection
The root cause was that: java.sql.SQLException: Timed out trying to establish connection
I have no idea what's going on and I'm looking for help. Does it seems like a problem with a firewall? Not sure. Any help is appreciated. Thank you.
Edwin
cfhtmltopdf and cfhtmltopdfitem font
The HTML used to generate a PDF has a reference to the CSS style with font-family Garamond and it is not coming out as the font.
Then the Footer added via cfhtmltopdfitem seems to be one font and one only. Meaning, as a programmer I seem to have no control over the outputed font of the text in the footer cfhtmltopdfitem.
Is there something in the jetty engine that can be done to correct this? We are running CF 11 update 11. I have installed/confirmed installed the Garamond font is showing in the font management via the CF Admin screens as well.
any suggestions are welcome but to use another PDF engine is not an option. One would expect control over the output of PDF typeface in any system to generate a PDF.
Please advise.
cfspreadsheet in CF2016 doing weird things
We have a little report that writes new data to a pre-existing Excel file that has been working for a while. Recently upgraded to 2016 and apparently didn't test this report!
<cfspreadsheet action="read"
src="#application.loadpath#\#Session.NewWorking#"
name="sObj"
SHEET="2" />
<cfscript>
spreadsheetSetCellValue(sObj,#val(RA)#,2,2);
spreadsheetSetCellValue(sObj,#val(AP)#,3,2);
spreadsheetSetCellValue(sObj,#val(GetCHAP.showvalue)#,4,2);
spreadsheetSetCellValue(sObj,#val(GetFP.showvalue)#,5,2);
spreadsheetSetCellValue(sObj,#val(getrad.showvalue)#,6,2);
spreadsheetSetCellValue(sObj,#val(GetClosed.showvalue)#,7,2);
</cfscript>
<cfspreadsheet action="write" overwrite="true"
filename="#application.loadpath#\#Session.NewWorking#"
name="sObj" />
Previously it would update that data on the 2nd worksheet in the workbook. Now it deletes all of the other worksheets in the workbook... Any one have ideas or fixes for this?
Get size of database?
Hello, all,
I know that CF has CFDBINFO, but it doesn't return the information I am looking for.
The hosting service that I am using for a personal project (hostek.com) puts a limit of 250M on their databases; but you can have an unlimited number of databases.
I would like to check the size of a database before uploading files to it. Basically, if the database is at or near the 250M limit, I want to export some data to an archive table, then finish the upload into the original table.
Is this possible in CF??
V/r,
^_^
CF 2016 cfinput datefield type not working
We are starting to move our site over to ColdFusion 2016, and I noticed that the cfinput datefield type is broken.
When the page loads it tries to reference YUI javascript assets that are apparently now deprecated and no longer come with ColdFusion.
I don't see anything in the documentation about the datefield type being deprecated, so I'm not sure if the documentation is incorrect or if there's something wrong.
Double Apostrophe in SQL?
I have a form fields that allows admins to update the headers & Footers of their site and for the most part it works awesome.
Where is falls apart is anytime there is a double apostrophe with no space.
Here is the stock Tag Manager:
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WN42FJV');</script>
<!-- End Google Tag Manager -->
On this line:
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
Google has:
+l:'';j.async
The 2 apostrophes, when saved in SQL come back as 1 - somewhere in the SQL process one of them is being stripped?
This only happens when there are 2 apostrophes in a row with nothing between them.
How do I fix this?
Safari won't accept default document when document is index.cfm
Request www.electionsonline.com using anything other than Safari on a Mac, and all works perfectly. Request www.electionsonline.com/index.cfm using any browser on any OS and all works.
But request only www.electionsonline.com using Safari on a Mac and it simply hangs for several minutes until timing out. index.cfm is set in IIS to be the default document.
This only started after migrating the site to AWS on a Windows Server 2016 machine running IIS 10. Prior to that (different hosting company, using Windows Server 2008 R2) the site honored the default document, index.cfm, without any problems.
CFSET var Rereplace and wont insert in Database
Hi,
I'm kinna new to this i'm trying to create a little system for my son lawn mowing business.
i have field that have services and prices for it
services1 price1
services2 price2
When he enters the data for the price i want to prevent him from using commas and dollar sign so when he submits field i'm trying to use this to modify it on the inserting page
price_f1 is the form field so if he puts in 450,50$
<cfset price1 = ReReplace(price_f1, "[^\d.]", "","ALL") >
<cfoutput>#price1#</cfoutput> it comes out 45050 i want 450.50 how can i do that ?
And once that works how can i enter it into the database i have tryed to get it in using
<cfinsert datasource="mydatasource" tablename="thetablename" formfields="ID, firstname, lastname...., services1, price1"></cfinsert>
All the data enters but not my price1 at 45050 it stays NULL any suggestion why that is and yes i do set my var before the insert.
Thank you
CF 2016 & empty solr.xml
Hi,
I did a standard Installation on Windows 2008 R2. After creating a solr Collection everything is fine, but the configuration isn't saved in solr.xml
Any idea?
And where I can get a actual description for cfindex and cfsearch?
Best
Thomas
ColdFusion Launcher Application maxing out CPU
Every couple of weeks the ColdFusion Launcher Application will go up and max out the CPU on the server. Site will then begin to timeout. Restarting the ColdFusion server services is required to resolve the issue. The is happening on two separate web servers. Both are running CF 2016 and Windows Server 2012 R2.
CF10 Truncating String
We have a Coldfusion 10 Application that is calling a .NET Class Library (Framework 4.0) which exposes a Base64 String as a Property. On the Coldfusion end, we are converting the Base64 string to PDF and it is being rendered to the users. The issue we are noticing is that the Coldfusion is getting a partial / truncated Base64 string.
We have created a test ASP.NET application that mimics the same behaviour of the Coldfusion application and we are getting the complete Base64 string without truncation. Also, the same Coldfusion application works on other internal Webserver without any truncation. Are we missing some setting?
Automatically display print dialog in PDF generated with cfdocument.
Hey All,
I'm pretty new to CF, but learning more every day. I'm using cfdocument to serve up a PDF in the browser when the user clicks on a 'print' button in my app. That works fine, but what I'd really like is for the document to come up in the browser AND the print dialog to come up with it, as if the user had clicked the print icon after the document loaded.
The reason I want this behavior is that to get to this point, the user has already clicked a 'Print' button in my web app. I don't want them to have to click that, then see the file, then have to click print again, then have to click print yet again on the print dialog.
Here's a link to a PDF that I found that exhibits the behavior I want. http://www.fpdf.org/en/script/ex36.pdf .
Here's the code I'm using to generate the PDF:
<cfdocument format="PDF" orientation="landscape">
<cfoutput>
<h1>This is a test.</h1>
<h4>I'd like the print dialog to pop up automatically when this PDF file is displayed.</h4>
</cfoutput>
</cfdocument>
Any help or pointer in the right direction would be very much appreciated.
Thanks,
Bret
pdf generated via cfdocument not working in Firefox
Firefox 52x is not rendering pdf's generated from cfdocument pdf page.
Instead, I get a prompt to download the page as a cfm file.
Works fine in IE and Chrome.
Any help would be appreciated.