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

var location = window.location.href;

$
0
0

Actually I am trying to search whether a particular word exists in URL and trying with below code  in in a .cfm file.

It works fine in html page but not working in coldfusion.Can someone help me how to resolve this issue

 

<script type="text/javascript">

var location = window.location.href;
if (location .indexOf("search_Text") > -1)
{
//do stuff
}
else
{
//do stuff
}
</script>

 

 

 


CFGrid combobox list getting mixed up with other grids in the page

$
0
0

Hi,

 

Currently we have ColdFusion 2016 Update 1 installed on our deployed server. After we upgraded our CF version from 9 to 2016, all cfgrids combobx columns started behaving a bit strange. Grid combobox columns are not displaying the exact values defined in cfgridcolumn values and valuesdisplay list. We have some links on the grid that opens up a pop-up with cfgrid. This grid combobox list data is getting mapped to the parent grid combobox list.

 

For ex: If the parent grid second column is a combobox and values="true,false" and the pop-up grid second column combobox values="FE,TSE,TS", If I try to edit pop-up grid second column, true/false is appearing in the combobox list.

 

Strangely this is happening with all the grids that have editable combobox columns. Can you please help me with the

 

Grids settings is something like:

 

<cfset gridArgs = structNew()>
<cfset gridArgs.name = "LoansGrid">
<cfset gridArgs.pageSize = 20>
<cfset gridArgs.format = "html">
<cfif SERVER.ColdFusion.ProductVersion lt 9>
<cfset gridArgs.width = "99%">
</cfif>
<cfset gridArgs.autowidth = "no">
<cfset gridArgs.bindOnLoad = "true">
<cfset gridArgs.bind = "cfc:XXX.MVP.components.Manager.getRecords({cfgridpage},{cfgridpagesize},{cfgridsortcolum n},{cfgridsortdirection},{Filter})">
<cfset gridArgs.stripeRows = true>
<cfset gridArgs.selectColor = "##D9E8FB">
<cfset gridArgs.selectmode = "edit">
<cfset gridArgs.onchange = "cfc:XXX.MVP.components.Manager.editRecord({cfgridaction},{cfgridrow},{cfgridchanged})">

<style>
td div, table div, form div { margin:0; } .x-grid-header { margin:0; } .x-grid-hd-row td { line-height:normal; }
</style>

<cfform name="EEEForm">

<cfinput type="hidden" name="Filter" value="#id#">

<cfgrid attributeCollection="#gridArgs#">
<cfgridcolumn name='Links' header='Links' display="true" width="170" select="no">
<cfgridcolumn name='Record_ID' header='Record ID' display="false" select="no">
<cfgridcolumn name="ID" header="ID"  display="false" select="no">
<cfgridcolumn name="Number" header="Number"  display="true" bold="yes">
<cfgridcolumn name="IncludeInRun" header="Include in Run"  display="true" values="1,0" valuesdisplay="True,False">
<cfgridcolumn name="Status" header="Status"  display="true">
<cfgridcolumn name="LastName" header="Last Name"  display="true">
<cfgridcolumn name="ProductType" header="Product Type"  display="true" values="#productType#" valuesdisplay="#productType#">
<cfgridcolumn name="PropertyType" header="Property Type"  display="true" values="#propertyType#" valuesdisplay="#propertyType#">
........
</cfgrid>
</cfform>

What version control system do I use with CF Builder2?

$
0
0

I'm a new CF developer and I've been working with Visual Studio and team foundation for several years prior to migrating to Coldfusion, so in advance please pardon my ignorance.

 

We are going to be using ColdFusion Builder 2 as our primary development IDE on our initial development environment. Where my confusion begins is with version control and the potential for additional required software. We will have multiple developers working on various pages, templates, etc. and we've been trying to figure out how to best handle version control. Despite my research I really can't figure out what version control tools(Apache Subversion, TortoiseSVN - Home, etc.)  are directly compatible with CF Builder or which are the most recommended. I've reached out to Adobe for their recommendations and haven't received a response, so I figured I'd ask here.

Microsoft access error

$
0
0

I get this error trying to map a microsoft access database with cold fusion 18 dev. edition on windows 10,64 bits....

 

 

Connection verification failed for data source: Labarque

java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][SequeLink Server]The specified data source is not defined.

The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][SequeLink Server]The specified data source is not defined.

 

 

Why 404 on isapi_redirect.dll via Jakarta on CF11 Windows 2012?

$
0
0

I had a lot of trouble getting a fairly complicated site to function with CF11 on Windows 2012 (I'm moving from CF8 on Windows 2003). After several days I noticed update 1; once I applied that, I was able to get beyond the 404

 

Now I'm trying to add a second site and I'm back to the 404s. I can access the main page with a domain name by not specifying index.cfm.

http://www.mydomain.com:80/jakarta/isapi_redirect.dll

Detailed Error Information:

Module    IIS Web Core

Notification    MapRequestHandler

Handler    ISAPI-dll

Error Code    0x80070002

Requested URL    http://www.mydomai.com:80/jakarta/isapi_redirect.dll

Physical Path    C:\ColdFusion11\config\wsconfig\1\isapi_redirect.dll

Logon Method    Anonymous

Logon User    Anonymous

 

The Configuration Wizard

Created a folder 1 in cfroot\config\wsconfig, that contains all connector-related files.
Created a virtual directory Jakarta in cfroot\config\wsconfig (in IIS).
Added an entry, tomcat, under the ISAPI FILTERS. This points to cfroot\config\wsconfig

\1\isapi_redirect.dll.

Added an entry, tomcat, to  cfroot\config\wsconfig\1\isapi_redirect.dll

with permission allowed under ISAPI and CGI Restrictions. It is applicable for global sites in IIS manager

(I see the tomcat entry in IIS.ISAPI FILTERS.. not sure where ISAPI and CGI Restrictions are.)

Added the following isapi handlers: cfcHandler, cfmHandler, cfmlHandler, cfrHandler, and

cfswfHandler.

 

Makes me think I have to uninstall and reinstall CF 11, set up all the sites, run the connector wizard, then apply the update. That can't be true can it?

 

On this server, I'm serving pages off of C:\inetpub\wwwroot (a simpler setup than what I'd prefer which would be to serve off D:\inetpub\wwwroot so that the C drive is less accessible to web access)

 

Any ideas would be welcome.

Does ColdFusion 2018 have Responsive Charts Now

$
0
0

We use the cfchart tag which uses the Zing Chart engine. Zing Chart itself is responsive. However, ColdFusion 2016 had not implemented that version of Zing Charts. I was wondering if CF 2018 will implement the latest Zing Chart engine with responsive charts?

Thanks in advance,

Justin

ColdFusion 2018 - Not able to select IIS Web Server.

$
0
0

During installation of CF2018 on windows 2019, I'm not getting option to select IIS as web user. In-Built web server is being used.  Anyone had this same issue?

JSESSIONID secure and httpOnly??

$
0
0

Hello, all,

 

We have been alerted to a minor finding.  JSESSIONID session cookies are not secure.  The CFID and CFTOKEN are secure and httpOnly.

 

We followed instructions from a 2014 thread to make JSESSIONID session cookies secure and httpOnly.

 

Viewing in FireFox with DevTools, initially the JSESSIONID cookies are secure and httpOnly, but if you click on to another cookie, then come back to JSESSIONID, the cookie is NOT secure.

 

Viewing in IE11 with DevTools, the JSESSIONID cookie shows twice; once as secure and httpOnly, once as not secure but httpOnly.

 

What is happening??  I'm at a loss, on this one.


V/r,

 

^ _ ^


ORA-01012: Not Logged On Error after CF2018 upgrade

$
0
0

After CF2018 Upgrade from CF11, I get an intermittent ORA-01012:Not logged on error. Anyone know what's causing this? Note: The obvious question, am I logged in? Yes, via the Oracle Datasource in CFAdmin.

Deleted Htdocs files

$
0
0
I accidentally deleted the htdocs files, these are the files that setup the administrative functions. I didn't know they were important until i deleted them by accident lol. I really don't want to do a whole new install for them, I am using the linux version. Is there anyway somebody could just copy them and email them to me? I doubt they are very big files, but from what i remember there was maybe 20 files at most?

Thanks!
Adam

ColdFusion processing files uploaded with multiple attribute in input tag

$
0
0

Hello, all,

 

I'm attempting (for the VERY first time) to code a function that will take files posted via HTML5 form from an <input type="file" multiple="multiple" name="images" /> tag.

 

Specifically, how do I determine how many files were selected for upload on the server-side?

 

The aim is to use CFFILE to READASBINARY the images, then insert them directly into a MySQL database.  (This last part I think I've got down pat.)

 

V/r,

 

^_^

cfcharts style issue in CF 10 with re. to webcharts generated styling

$
0
0

Hi,

 

First off, I have an issue where my CF 10 cfchart is requiring the style attribute to be a json file.  From what I can see, this wasn't supposed to happen until CF 11, and there seems to be no way to set it to take an xml instead.

 

Secondly, I have not been able to successfully convert the xml to json myself, and nor do I find the cfchart_xmltojson.sh/bat utility, which I also gather is for the CF 11 release.  Thus, if anyone has either some conversion rules, or this script linked somewhere - would be a great help.

 

I am also in the process of trying to run the full webcharts3d generated file.wcp, but that seems to be failing for another reason, i.e. “Class not found: com.gp.api.jsp.MxServerComponent”, (though the correct jar(s) seem to be in place), though that might be a better subject for a separate thread.

 

Thanks!

Dynamically Populating CFSelect Dropdowns

$
0
0

I have a page with 3 dropdown fields. The 2nd dropdown uses the selection from the first to create list and the 3rd dropdown uses the selection in the 2nd to create that list. I'm using CFSelect with the bind option and a function in a CFC file. The page loads fine, I select the item out of the first dropdown and the 2nd dropdown is correctly bound to the data returned. But, I get a browser error that tells me that there was an error executing a database query and that I need to add cfdebug to my url. This isn't an error that halts execution, it's just a little modal. I can click on "Ok" to get rid of it and then when I select an item in the 2nd dropdown, the 3rd dropdown is correctly loaded. The code from both the CFM and CFC files is below.

 

Is the page trying to bind the 3rd dropdown at the same time as the 2nd? How can I keep from getting that error?

 

Thanks

 

DW

 

PS I'm using CFSelect because I haven't been a professional coder for quite some time and I'm not familiar with JQuery, AJAX and the like.

 

 

Code from CFM file:

<table>

<tr>

<td>Category 1:<br />

            <cfselect name="proceduretype1"

               query = "Gettoplevel"

       display ="proceduretypename"

       value ="proceduretypeid"

               multiple="no"

               size="6" /></td>

<td> </td>

<td>Category 2:<br />

            <cfselect name="proceduretype2"

               bind="cfc:dynamicdropdown.getnextlevel({proceduretype1})"

               bindonload="false"

               type="link"

               display="proceduretypename"

               value="proceduretypeid"

               multiple="no"

               size="6"/></td>

<td> </td>

<td>Category 3:<br />

            <cfselect name="procduretype3"

               bind="cfc:dynamicdropdown.getnextlevel({proceduretype2})"

               bindonload="false"

               type="link"

               display="proceduretypename"

               value="proceduretypeid"

               multiple="no"

               size="6"/></td>

 

Code from CFC file:

<cfcomponent name="dynamicdropdown">

 

<cffunction name="getnextlevel" access="remote" returntype="query">

      <cfargument name="parentid" type="any" required="no">

      <!---Define variables--->

      <cfset var data="proceduretype">

      <!---Run query to get Date Data--->

      <cfquery name="data" datasource="cusp_dev">

         SELECT *

         FROM tblproceduretype

         WHERE proceduretypeparent=#ARGUMENTS.parentid#

         ORDER BY proceduretypename

      </cfquery>

      <!---And return it--->

      <cfreturn data>

</cffunction>

 

</cfcomponent>

Coldfusion 11 build 19 SOLR Issue

$
0
0

We just upgraded to CF11 build 19.  Right after that, one of our SOLR search indexes stopped working, and throws the following errors.

A second server that had the older CF11 (prior to build 19) continued to work fine.  We upgraded that to build 19 and the same collection stopped working.  So it looks like CF11 build 19 is having issues with some SOLR indexs of previous builds.

 

Any help is greatly appreciated.

 

(names were replaced with xxxxxxxx and zzzzzzz)

 

java.io.FileNotFoundException: \\zzzzzzzzzz\search_collections\solr\xxxxxxxxx\data\index\_g1x3.fnm (The system cannot find the file specified)

Aug 23, 2019 3:20:48 PM org.apache.solr.common.SolrException log

 

Also, that particular collection is completely removed from CF admin, and when we try to add it back, it gives this error:

 

Unable to create collection xxxxxxx.

Unable to create Solr collection xxxxxxx.

An error occurred while creating the collection: org.apache.solr.common.SolrException. Check the Solr logs for more detail.

 

And the following is from stderr log:

 

INFO: created /debug/dump: solr.DumpRequestHandler

Aug 26, 2019 11:10:24 AM org.apache.solr.common.SolrException log

SEVERE: org.apache.solr.common.SolrException: Error executing default implementation of CREATE

    at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:3 15)

    at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:11 5)

    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)

    at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:309 )

    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:185)

    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)

    at coldfusion.filter.HTTPMethodFilter.doFilter(HTTPMethodFilter.java:64)

    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)

    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)

    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)

    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)

    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)

    at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:2 30)

    at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

    at org.mortbay.jetty.Server.handle(Server.java:326)

    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)

    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)

    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)

    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

    at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)

    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: \\zzzzzzzzzzzzzz\search_collections\solr\xxxxxxx\data\index\_g1x3.fnm (The system cannot find the file specified)

    at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1099)

    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:585)

    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:463)

    at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:3 10)

    ... 23 more

Caused by: java.io.FileNotFoundException: \\zzzzzzzzzzzzzzzzz\search_collections\solr\xxxxxxx\data\index\_g1x3.fnm (The system cannot find the file specified)

    at java.io.RandomAccessFile.open(Native Method)

    at java.io.RandomAccessFile.<init>(Unknown Source)

    at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:214)

    at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:345)

    at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:74)

    at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:73)

    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:115)

    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:93)

    at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:113)

    at org.apache.lucene.index.ReadOnlyDirectoryReader.<init>(ReadOnlyDirectoryReader.java:29)

    at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:81)

    at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:754)

    at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:75)

    at org.apache.lucene.index.IndexReader.open(IndexReader.java:421)

    at org.apache.lucene.index.IndexReader.open(IndexReader.java:364)

    at org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java :38)

    at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1088)

    ... 26 more

ColdFusion 2016 Application Server service will not start

$
0
0

Hey -

 

I recently upgraded our ColdFusion10 to ColdFusion 2016 Upgrade 3. After the initial upgrade, I opened CF Admin as local host in my browser and completed the migration settings as their instructions stated in the coldfusion-2016-lockdown-guide. After that was complete, I logged in and Server Upgrade stated I needed to upgrade to version 4. Followed the instructions, and rebooted the server to be certain the services would start, but 1 of the three services do not start.

 

- ColdFusion 2016 Application Server service. The error is below:

 

I typically have the service running as a service account (which has full permissions to my ColdFusion 2016 server on my E:\) I thought that my be my original issue, but when I switched it back to running as the Local System, it still will not start.

 

Event Viewer isn't much help stating "The ColdFusion 2016 Application Server service could not be started.  Check the server "cfusion" log files for more information." Not really sure what log files I should be opening, and the ones I'm picking do not seem very helpful.

 

Does anyone have any ideas?

 

ISDigINF


CF 10 JVM 1.8 not sending TLSV1.2 email to Office 365

$
0
0

I have a CF10 server running on Windows 2008 r2. JVM is 1.80_91. I have configured the Mail settings in CFAdmin to our Office 365 instance, I have a relay account we are using configured. When I send test emails they are only TLSv1.0 to Office365. I read a couple of forums and found the Dhttps settings which I have put into Java and JVM in CFAdmin. I restart the CF service and still the test messages are TLSv1.0. I even went into the javacpl.exe and unchecked TLS 1.0 and TLS 1.1 in Advanced.

 

What am I missing? Based on what I have been reading, this should work correctly.

CF10: Apache returns 404 when ;jsessionid is appended

$
0
0

Hi all,

 

we are currently upgrading a SLES 11 Server to CF10 64bit.

Last week we spend 2 days to eliminate a problem with the connector.

Apache refused to deliver CF-Pages. The log file said that mod_jk could not connect to the cfusion instance - Error 503...

 

We finally fixed this by copying a mod_jk binary from a working CF10 Server to this one.

Now Apache (2.2.23) serves all CF pages flawlessly.

 

What I just discovered was a problem, when a client doesn't accept cookies and J2EE-Sessions are turned on.

A URL with the sessionid appended (as for example cflocation creates it) results in a 404 error:

http://xxxxx.xxxxxx.com/login.cfm;jsessionid=xyxxyxyxyxyxyxy

 

I remember such a problem from a CF6/7 install, but that was IIS on Windows.

 

I'm just stuck with this one.

Can somebody please help?

 

Regards

Joerg

License cost for upgrading Cold Fusion MX7 to Cold Fusion 11

$
0
0

Hello There !!

 

I wanted to know the cost involved for upgrading  Cold Fusion MX7(Enterprise edition) to Cold Fusion 11(Enterprise edition )

We have been using ColdFusion MX7 for one of the application for many years and now plan is to upgrade it to Cold Fusion 11.

 

One more query : We do not have the license details of CFMX7. So will the serial number found in cold fusion administrator work out for Adobe to find the license details? If not then, is there any way to find license details?

 

Thanks & Regards.

500 Internal Server Error on server that is running Windows 2012 R2 and IIS 8.5

$
0
0

Hi. We have a new server. On our old server, I used to get all the debugging info. from Cold Fusion on my computer if something was wrong with a Cold Fusion page. Now with the new server, all I get is a 500 internal server error. Is this because something is not set up correctly on the server and the debugging info. from Cold Fusion is not able to display? Does anyone know what I need to do to get the Cold Fusion Debugging info. to display? Below is what we all currently have:

 

Our new server is running Windows Server 2012 R2 and IIS 8.5

ColdFusion 11 Standard

SQLEXPRESS 2008


Thank you.

Andy

Failed to add HTML header - CFWebstore on CF11

$
0
0

Hello,

 

I am getting the error below on a new install of CFWebstore v6.6 on CF11. I've used previous release of CFWebstore on CF7 and CF9 without issue. Looking for any suggestions.....

 

Failed to add HTML header. ColdFusion is unable to add the header you specified to the output stream. This is probably because you have used it to set one of the ColdFusion Session Cookies or Authentication cookie. Please use Application/Server level configuration for this. The error occurred on line 213.

 

Thanks in advance for any help!

 

Gary

Viewing all 14291 articles
Browse latest View live


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