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

How to log the rendered cfhttp URL?

$
0
0

I have this cfhttp tag.I want to log the URL to see if it's actually having all the correct parameters because it's not working.

 

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


cfgrid flash issue

$
0
0

So, have this cfgrid which pulls data from few queries to pull and show data in cfgrid but in adobe flash format, and now i like to do in html format, rather than using flash.

 

<cfgrid name="Ladder_grid" height="200" width="900" align="LEFT" autoWidth="yes"    query="lastrun_q"    insert="No" delete="No" sort="Yes" fontsize="14"    bold="No" italic="No" appendkey="Yes"    griddataalign="LEFT" gridlines="Yes"    rowheaders="Yes" rowheaderalign="LEFT" rowheaderitalic="No" rowheaderbold="No"    colheaders="Yes" colheaderalign="CENTER" colheaderfont="Arial" colheaderfontsize="12"    colheaderitalic="No" colheaderbold="Yes"    selectmode="Row" picturebar="Yes"    format="flash" >    <cfgridcolumn name = "EmpID" Header="Key ID" dataAlign = "LEFT" bold = "No" italic = "No" select = "No" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "50">    <cfgridcolumn name = "List" dataAlign = "LEFT" bold = "No" italic = "No" select = "No" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "75">    <cfgridcolumn name = "NewDate" Header="Status Date mdy" dataAlign = "LEFT" bold = "No" italic = "No" select = "No" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "75">    <cfgridcolumn name = "PaperID" display = "No">    <cfgridcolumn name = "EmpName" display = "No">    <cfgridcolumn name = "Owner" display = "No">    <cfgridcolumn name = "Revision" display = "No">    <cfgridcolumn name = "queque" display = "No"></CFGRID><script type="text/javascript">
document.getElementById("StepsIn1Setup_grid").setAttribute("type", "application/x-shockwave-flash");</script>

 

when i run the above, the data grid shows up but when i rightclick on the grid, I get the Adobe flash context menu.

But when i change the format="flash" from line 10 above to "html" and run the above code, i dont see adobe flash context menu etc.


Am i doing that correctly? or is there any other way for me to change from flash to html grid?

thank you

Integrated Pipeline Mode breaks my CF11, but Classic Mode does not

$
0
0

Hi,

I have ran into a problem, fresh after migrating  to IIS 8.5 (from IIS 6), CF 11.07-ent.

Does this make any sense to the pros out there?

 

Here is what I would see:
In taskman, as SOON as the Max JVM Heap memory was reached (for coldfusion.exe), CF would become partially or fully unresponsive.

I understand about connector tuning, and that is not the problem here. Here are the isapi_redirect log lines:

----------------
This first line shown below is the LAST line in the log having to do with connections (as you can see, I am a long way from maxing out. Also, my server.xml file's MaxThreads and Timeout are set to 1600 and 60000 and I only use one wsconfig/x, and one application pool, for a total of 1600 connections. I was very stable with these same numbers in IIS6)

 

[1532:3796] [info] ajp_process_callback::jk_ajp_common.c (2244): (cfusion) current reuse count is 91 of max reuse connection 800 and total endpoint count 1600

 

then hits error condition

[1532:3796] [info] jk_open_socket::jk_connect.c (817): connect to 127.0.0.1:8014 failed (errno=61)
[1532:3796] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1127): (cfusion) Failed opening socket to (127.0.0.1:8014) (errno=61)
[1532:3796] [error] ajp_send_request::jk_ajp_common.c (1787): (cfusion) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=61)
[1532:3796] [info] ajp_service::jk_ajp_common.c (2903): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[1532:3796] [error] ajp_service::jk_ajp_common.c (2924): (cfusion) connecting to tomcat failed (rc=-3, errors=178, client_errors=478).
[1532:3796] [error] HttpExtensionProc::jk_isapi_plugin.c (2763): service() failed with http error 503


(I also occasionally see the following too)
[1532:14080] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1401): (cfusion) can't receive the response header message from tomcat, tomcat (127.0.0.1:8014) has forced a connection close for socket 5684
[1532:14080] [error] ajp_get_reply::jk_ajp_common.c (2376): (cfusion) Tomcat is down or refused connection. No response has been sent to the client (yet)

 

Once the error condition starts, then these error lines repeat many many times (with different thread number ... ie [1532:xxxxx] where 1532 is the PID for the IIS worker process for the application pool I am in).
----------------------
CF then either hangs, or occasionally comes back on its own (maybe 20-30 minutes later) and the isapi_redirect.log resumes logging normal activity (no more errno=61).

----------------------
Then I turn OFF Integrated Pipeline mode (making it classic), reset, and the problem goes away.

 

I am a pure CF shop, no .NET or .ASP, just CF and static HTML on my IIS. I do not need Integrated mode. But since I have read on google that Jakarta/CF is "supposed" to play nice with Integrated Mode, I am very concerned my problem is a canary in a coal mine, ESPECIALLY since it triggers right when Max JVM is reached(!) which should have nothing to do with that since this is just committed, not used, memory, right? It does not make sense to me.

 

My clue summary: CF instability/hangs are triggered right when MAX JVM Heap is reached (as shown in taskman for coldfusion.exe),  AND I use Integrated Pipeline Mode instead of Classic mode. (Improper connector tuning is not implicated in this situation).

Opinions?
Thanks!
Byron_K

Checkbox values and CF11?

$
0
0

I found what I would think is a somewhat big incompatibility between CF11 and all prior CF version: multiple checkbox and select values. If you have multiple checkboxes "checked" that refer to the same variable name, prior to CF11 these came in as a list; in CF11 they come in as an array causing "Complex object types cannot be converted to simple values." My question to Adobe, was this intentional or a bug?

Please help me in handling java.lang.StringIndexOutOfBoundsException: String index out of range: -1 error

$
0
0

Hi all,

 

I am very new to cfscripts.

I am having below function  <cffunction name="newReplace" > and whenever I am calling this function I am getting java.lang.StringIndexOutOfBoundsException: String index out of range: -1 error.

I think I missed some validation to check the null but unable to identify.

 

 

 

<cffunction name="newReplace" returntype="string" description="Replace the original CF9 Replace() and ReplaceNoCase() which don't support some UTF-8 string">

 

  <cfargument name="stg" type="string">

 

  <cfargument name="origStg" >

 

  <cfargument name="rplStg" >

 

  <cfargument name="all" type="boolean" default=true>

 

  <cfargument name="caseSensitive" type="boolean" default=false>

 

  <cfset var result="">

 

 

 

  <cfscript>

 

  var oStringBuffer = createObject("java","java.lang.StringBuffer");

 

  var i = 0;

 

  var tmpStg = "";

 

 

 

  oStringBuffer = oStringBuffer.init(arguments.stg);

 

  while(i + origStg.length() <= oStringBuffer.length()) {

 

  tmStg = oStringBuffer.substring(i, i + origStg.length());

 

  if(tmStg.equalsIgnoreCase(origStg)) {

 

  oStringBuffer.replace(i, i + origStg.length(), rplStg);

 

  if(!all)

 

  break;

 

  else

 

  i += rplStg.length();

 

  }

 

  else

 

  i++;

 

  }

 

  result = oStringBuffer.toString();

 

  </cfscript>

 

  <cfreturn result/>

 

  </cffunction>

 

 

 

function call:

 

<cfset sndMsg = newReplace(sndMsg,"%EXPIRYDATE%",expiryDate,"ALL")>

 

error:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(Unknown Source)

at coldfusion.runtime.StringFunc.Replace(StringFunc.java:390)

at coldfusion.runtime.CFPage.newReplace(CFPage.java:2633)

 

New Coldfusion Server Setup in Flashbuilder and Coldfusion Builder not working

$
0
0

I have not found the combination for adding a new Coldfusion Server in Flash Builder 4.7 or Coldfusion Builder 2.01 with Coldfusion 10. I am running windows 7 64bit. on IIS 7. Coldfusion 10 is running fine.

 

All was well with Coldfusion 9 Flash Builder 4.6 and Coldfusion Builder 2.0.

 

Local Server Settings for CF9 were

Server Home C:\Coldfusion9

Document Root   C:\inetpub\wwwroot

Version: 9.0.x

 

Now as soon as I put in C:\Coldfusion10 or C:\Coldfusion10\cfusion I get an error "Server home is not valid".

 

Any hints on getting this going.

Protect spreadsheet with cfspreadsheet

$
0
0

I am trying to create a locked version of spreadsheet before letting users download it. The password function for cfspreadsheet does not seem to work. the basic operation is this: I read an existing spreadsheet, and then I write it to a new file using the password option. But the file is not protected. I have looked at cfspreadsheet password, but that is not giving me any insight to the issue. I have also tried to use spreadsheetfomatcellrange function to lock all of the cells in the sheet, but that didn't work either.

 

On a secondary note, I am seeing some behavior that I wasn't expecting. The Excel file that I am trying to recreate has 3 sheets. When I read the file, I am getting all three sheets and not just the first one. Then when I write the sheet, I am getting all three sheets in the new file. I was expecting to have to read each sheet individually then then write them individually as well.

 

<cfset xfile = '#application.doc_directory_file#' & '#URL.fname#'>

<cfset new_file = '#application.doc_directory_file#'  & 'locked' & '#URL.fname#'>

<cfspreadsheet action="read" src = "#xfile#" sheet="1" name="pilot_sheet">

<cfspreadsheet action="write" filename="#new_file#" sheetname="Pilot Instructions" name="pilot_sheet" password="pwd" overwrite="true">

 

Any help would be much appreciated.

 

Thanks

 

DW

Coldfusion 11 Scheduled Task Event Handler

$
0
0

Hello,

 

I have a coldfusion 11 install on a windows server.

 

I am trying to create a scheduled task with an eventhandler.

 

Here is the error I am receiving:

 

  • An error occured scheduling the task.
    Invalid eventhandler.
    Error: Eventhandler taskalert could not be found.

 

The event handler cfc is located here:

C:\ColdFusion11\cfusion\wwwroot\taskalert.cfc

 

In the box on the scheduled task I just entered taskalert because I dropped the cfc in the base directory.

 

The directions say:

Everything I read shows that the webroot default is C:\ColdFusion11\cfusion\wwwroot

 

but it doesn't seem to work.

 

The CFC contains code found here: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d31851899e53a51353e87049 3-8000.html

 

but I changed it to my email address

 

Any ideas what I am missing?

 

Thanks!

 

Randy


Does anyone know where I can download CF8 developer edition

$
0
0

I migrated a CF site to a server the only supports up to CF8. Does anyone know where I can download CF8 developer edition?

Unable to restart CF10 application - can anyone help?

$
0
0

We are in the midst of a regular maintenance downtime and our systems engineer went through standard tasks to restart the coldfusion application and was not able to. She has restarted the entire server and still is unable to restart the application. She rolled back to her first snapshot when all was working fine and is still not able to restart successfully. As far as we can see, any changes that were made initially should not have impacted anything. But even after she rolled back to the original snapshot, we still can't restart. Any insights? Thanks so much.

debug output missing

$
0
0

It appears that CF11 Update 7 broke the debug output by removing “tagcontext” from the “stacktrace” structure. For pages that are below the top level page all debug output after the “Execution Time” heading disappeared. The fix is simply to remove the string “.tagcontext” from all lines in the debug template. This applies to all templates that I could find. I hope this gets to Adobe.

Exception: An error has occured while trying to execute query :LDAP.owl.com:939; socket closed.

$
0
0

I have the following custom-application.cfm file and I kept getting the above error when trying to login.

 

<!--- Custom-Application.cfm --->

<cfparam name="Cas_Server_Secure" default="https://ash.owl.com/cas">

<!--- <cfparam name="ReturnURL" default="http://#cgi.server_name##cgi.script_name#?#cgi.query_string#"> --->

<cfparam name="ReturnURL" default="http://#cgi.server_name##cgi.script_name#">

<cfparam name="Session.CAS" default="">

<cfparam name="tempMember" default="">

<cfparam name="strstart" default="0">

<cfparam name="strend" default="0">

<cfparam name="teststring" default="">

<cfparam name="strtotalmember" default="">

<cfset session.updatedForGolive = 1 >

 

<!---include adf core--->

<cfset request.scriptsExecuted = "">

<cfinclude template="/ADF/core/load_site_adf.cfm">  

  

    <!--- <cfif not IsDefined("url.ticket") >

    <cfset ReturnURL = URLEncodedFormat(ReturnURL)>

    </cfif> --->

<cflock scope="Session" type="ReadOnly" timeout="5" throwontimeout="no">

     <cfscript>

      if (not IsStruct(Session.CAS))

          {

            session.CAS = StructNew();

            session.CAS.IsAuthenticated = "";

            //session.CAS.owlTarget = "http://www2.owl.com";

                  

            session.CAS.owlTarget = URLEncodedFormat(Replace(GetDirectoryFromPath(ReturnURL), "http://www.owl.com/", "http://www2.owl.com/" ));

        }

    //Testing requestTarget

    //needs additional validation

  

    </cfscript>

</cflock>

 

<cfif not cgi.query_string contains "csModule=security/logout" and not cgi.SCRIPT_NAME contains "/commonspot/" >

  

    <cfif SERVER_PORT_SECURE eq 1 >

        <cfset ReturnURL ="https://#cgi.server_name##cgi.script_name#">

    </cfif>  

  

<cfif not FindNoCase("?login=1", ReturnURL) and not FindNoCase("login.cfm", ReturnURL) >

  

    <cfif not IsDefined("url.ticket") >

    <cfset ReturnURL = URLEncodedFormat(ReturnURL)>

    </cfif>

  

    <cflock scope="Session" type="ReadOnly" timeout="5" throwontimeout="no">

                <cfscript>

                    if (not IsDefined("url.ticket")){

                            Session.CAS.owlTarget = ReturnURL;

                    }

 

                </cfscript>

    </cflock>

 

</cfif>

 

<!--- <cfdump var="#session.CAS#"> --->

<!--- <cfabort> --->

 

<cfscript>

//session.CAS.IsAuthenticated = "";

 

    //LDAP Starting Point

    LDAP.StartLevel="ou=owl users,dc=owl,dc=com";

 

    //Active Directory Server or IP Address

    LDAP.Server="cabage.owl.com";

    //LDAP.Server="potato.owl.com";

  

    //Switch to this when Bob is done

    LDAP.Server="LDAP.owl.com";

 

    //LDAP Service Port Number

    LDAP.Port="939";

 

    //LDAP Query Timeout (in seconds)

    LDAP.Timeout="5";

  

    // what to query for

    strAttributes = "cn,mail,memberOf,dn";

  

    //LDAP User to run query as ADDED by Bob

    // example: "domainName\userName";

    LDAP.AUser="ldapAuth";

  

    //LDAP User to run query as ADDED by Bob

    // example: "domainName\userName";

    LDAP.User="tester";

 

    //Password for LDAP User ADDED by Bob

    LDAP.Password="pass600";

  

 

</cfscript>

 

<!--- if we have a url.ticket then we need to get the users userid back from CAS --->                  

<cfif isDefined("url.ticket")>  

    <!--- Ticket returned from CAS on initial login --->

    <!--- Now we've gotten the service ticket so we must validate it --->

            <cfset casurl = CAS_Server_Secure & "/serviceValidate?ticket=" & url.ticket & "&service=" & "#Session.cas.owlTarget#">

            <cfhttp url="#casurl#" method="get" proxyserver="mstmgproxy.owl.com" proxyport="8080"></cfhttp>

            <!--- Strip out the username that is returned from CAS --->

      

            <!--- if ticket has expired.  Send back to CAS to reauthenticate --->

            <cfif cfhttp.filecontent contains "not recognized">

                 <cflocation url="#Cas_Server_Secure#/login?service=#Session.cas.owlTarget#" addtoken="No">

            </cfif>

 

            <cfscript>

            myxmldoc = XmlParse(cfhttp.filecontent);

            selectedElements = XmlSearch(myxmldoc, "cas:serviceResponse/cas:authenticationSuccess/cas:user");

            if(isArray(selectedElements) AND NOT ArrayIsEmpty(selectedElements)) {

            //valid ticket found

            ULuserid = selectedElements[1].XmlText;

            LDAP.user = #ULuserid#;

            }

            else

            //invalid ticket

            ULuserid = 0;

            </cfscript>

       

                <!--- <cfdump var="#Cas_Server_Secure#/login?service=#ReturnURL#">

                                <cfabort> --->

      

        <cfif NOT ULuserid is 0>

                <!--- User ID returned with CAS Ticket --->

                <!--- <cfdump var="#ULuserid#">

                                     <cfabort> --->

         <cfset LDAP.User="#ULuserid#">

      

                <!--- Available cfldap parameters ACTION,ATTRIBUTES,DELIMITER,FILTER,FILTERFILE,MAXROWS,NAME,PASSWORD,PORT,REBIND,REFERRAL, RETURNASBINARY,SCOPE,SECURE,SEPARATOR,SERVER,SORT,SORTCONTROL,START,STARTROW,TIMEOUT,USERN AME --->.

                  

                    <!--- note removed port attribute??????????? --->

                    <!--- Added application ldapuser and pwd these never change --->

                  

                <cfldap

                    server = "#LDAP.server#"

                    action = "query"

                    name = "loginResult"

                    start = "#LDAP.startLevel#"

                    attributes = "#strAttributes#"

                    sort = "cn ASC"

                       filter = "cn=#ldap.user#"

                    port = "939"

                    username = "owl\#ldap.auser#"

                    password = "#LDAP.Password#">

  

              

                <cfif loginresult.recordcount>

                    <cfldap

                        server = "#LDAP.server#"

                        action = "query"

                        name = "groupresult"

                        start = "ou=owl groups,dc=owl,dc=com"

                        attributes = "dn,name"

                        sort = "cn ASC"

                        filter = "(&(objectclass=group)(member=#loginResult.dn#))"

                        port = "939"

                        username = "owl\#ldap.auser#"

                        password = "#LDAP.Password#">

                </cfif>

              

                <cfif groupresult.recordcount>

                    <cfldap action="query"

                    name="getGroups"

                    attributes="name,memberof"

                    start = "ou=owl groups,dc=owl,dc=com"

                    filter="(&(objectclass=group)(member=#loginResult.dn#))"

                    port = "939"

                    server = "#LDAP.server#"

                    sort="cn ASC"

                    username = "owl\#ldap.auser#"

                    password = "#LDAP.Password#"

                    separator=";">

              

                <cfscript>

                        for ( i=1; i LTE getGroups.RecordCount; i=(i+1)){

                                    teststring = getGroups["memberof"][i];

                                    if ( teststring neq "")

                                    {  

                                            strstart =0;

                                            strend=0;

                                            Do

                                            {

                                                if(Findnocase("cn=",teststring,0) neq 0){

                                                strstart = Findnocase("cn=",teststring,0);

                                                strend = Findnocase(",",teststring,strstart);

                                                //Get group

                                                tempMember = mid(teststring,strstart,strend-strstart);

                                                teststring = Replace(teststring, tempMember, "");

                                                strtotalmember = strtotalmember &","& replacenocase(tempMember, "cn=", "");

                                                }

                                             }

                                             While (Findnocase("cn=",teststring,0));  

              

                                    }

              

                            }

              

                    strtotalmember    = valuelist(groupresult.name) & strtotalmember;  

              

                    </cfscript>

                </cfif>

              

                   

            <!--- if we found a user and group then authorize the person --->   

            <!--- Requires finding groups --->

            <!--- <cfif (loginresult.recordcount) and (groupresult.recordcount)> --->

          

             <cfif (loginresult.recordcount)>

              

                    <!--- Fix for Alumni Users with Numeric userids --->

                    <cfif IsNumeric(Mid(ULuserid, 1, 1))>

                        <cfset ULuserid = "owl" & #ULuserid#>

                                <!--- <cfoutput>#ULuserid#</cfoutput> --->

                        <!--- <cfexit> --->

                    </cfif>

 

                        <!--- // authorize the user --->

                        <cfmodule template="/commonspot/security/populate-user-struct.cfm"

                                                        defaultUserID = "#ULuserid#"

                                                        defaultGroupNames = "#strtotalmember#"

                                                        defaultGroupIDs = ""

                                                        additionalGroupNames = "#strtotalmember#">

                  

                            <cfif session.user.LICENSEDCONTRIBUTOR eq 0 >

                                <cftry>

                                    <CFLOCK SCOPE="Session" TYPE="Exclusive"

                                            TIMEOUT="5" THROWONTIMEOUT="Yes">

                                        <cfquery DATASOURCE="#session.user.USERSDATASOURCE#" NAME="updateContributor">

                                           UPDATE Users

                                           SET LicensedContributor = '1'

                                           WHERE ID = #session.user.id#

                                        </cfquery>

                                    <cfset session.user.LicensedContributor = "1">

                                    </CFLOCK>

                              

                                <cfcatch><cfoutput>Error Occurred</cfoutput>

                                </cfcatch>

                                </cftry>

                            </cfif>                                                      

                  

                <!--- We have a valid userid --->

                 <cfscript>

                    session.CAS.IsAuthenticated = "Yes";

                    session.CAS.userid = "#ULuserid#";

                    session.CAS.groups = "#strtotalmember#";

                </cfscript>

                        <!--- <cfdump var="#session#">

                                  

                                    <cfabort> --->              

                        <cflocation url="#URLDecode(Session.CAS.owlTarget)#" addtoken="No">

                <cfelse>

                          

                <cflocation url="http://#cgi.server_name##request.subsitecache[1].url#restricted.cfm" addtoken="No">

               

                </cfif>

              

        </cfif>

</cfif>

 

</cfif>

 

<!--- <cfdump var="#session.user#"> --->

 

 

And this the CommonSpot error log.

 

Entry Date/Time: 2016-02-15 06:42:54.873

>> error processing custom application module (/owl/custom-application.cfm)

~~

Exception: An error has occured while trying to execute query :LDAP.owl.com:939; socket closed.

 

~~~~~ CommonSpot Instance Details ~~~~~

Request ID: 18979 (1)
Request accepted: 2016-02-15 06:42:54
CommonSpot Build: Build 9.0.1.175
CFML Engine: ACF

CFML Engine Version: ColdFusion Server 10.0.15.292620 (Apache Tomcat/7.0.54)

JVM version: 1.7.0_67-b01 - [64 bits, Windows Server 2008 R2]
JVM memory (MB):  max:7282 total:2696.5 free:530.23

CFML Engine Started: 2016-02-12 06:57:23.413 (running for 3 days)

commonspot.jar: built 2014-10-14 14:20:11
jar path: C:/owlweb/commonspot/java/commonspot.jar
Server ID: 1 (Master?:1) Site ID: 1 Subsite ID:5896
User ID: 0[anonymous] - Groups: 0

==

Request (GET) from 172.15.1.225

Server: www2.owl.com Port: 80 Script: '/computer-science/index.htm'
Referrer:
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Args: ticket=ST-18814-KuWWvmIRIMzEQavnVDwU-ASH

====

Operation: query :LDAP.owl.com:939; socket closed
Message: An error has occured while trying to execute query :LDAP.owl.com:939; socket closed.
Type: Application
Detail: One or more of the required attributes may be missing or incorrect or you do not have permissions to execute this operation on the server.

 

Thread 'ajp-bio-8012-exec-2' [ID=77, State='RUNNABLE']

... request started at 2016-02-15 06:42:54.763[running 125 milliseconds]

...  Request (GET) from 172.15.1.225

... Server: www2.owl.com Port: 80 Script: '/computer-science/index.htm'

   ...request mode: : read

minimized stack with 57 entries

   0: ........coldfusion.tagext.net.LdapTag.doStartTag[ldaptag.java:777]

   1: ........coldfusion.runtime.CfJspPage._emptyTcfTag[cfjsppage.java:2795]

   2: CFM....cfcustom2dapplication2ecfm992673038.runPage[c:/owlweb/owl/custom-application.cfm:1 85]

   6: CFM....cfsite2dapplication2dmeat2ecfm185143928._factor10[{CS Root}/commonspot/startup/site-application-meat.cfm:527]

   7: CFM....cfsite2dapplication2dmeat2ecfm185143928._factor13[{CS Root}/commonspot/startup/site-application-meat.cfm:397]

   8: CFM....cfsite2dapplication2dmeat2ecfm185143928.runPage[{CS Root}/commonspot/startup/site-application-meat.cfm:1]

  13: CFM....cfsite2dapplication2ecfm72844038.runPage[{CS Root}/commonspot/site-application.cfm:23]

  17: CFM....cfApplication2ecfm1010495360.runPage[c:/owlweb/owl/computer-science/application.cf m:13]

Nested loops with arrays

$
0
0

This is my current and outer cfloop. How many nested cfloops do I need to get to data.current_version.en.text field? My guess is two loops but I'm not sure about specifying the value for the "to" in the cfloop.

 

<cfif structKeyExists(cfData, 'data')>

        <cfoutput>

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

            <h1>#cfData.data.searchTitle.en#</h1>

            <p>#cfData.data.current_version.en.text#</p>

            </cfloop>

        </cfoutput>

    </cfif> 

 

And this is what the struct looks like.

 

ColdFusion-Array.png

Connecting multiple ColdFusion 10 instances to a single Apache 2.2 server

$
0
0

This is replicated from StackOverflow's "Server Fault" site. The CF community there is under represented, so I'm posting here too.  Sorry for "cross post".

 

This is on Windows 7 Home Premium edition.

 

I have got two ColdFusion 10 (updater 2) instances: "cfusion" (the default one), and "scratch".

 

I have got a single instance of Apache 2.2 running.

 

Within Apache, I have set up two virtual hosts, each of which needs to be served by a different ColdFusion instance.

 

Each of the CF instances serves files fine via Tomcat's internal web server. Apache serves vanilla HTML files fine too. So both CF instances, and both virtual hosts separately work OK.

 

I can get wsconfig.exe to connect either one of the CF instances to the Apache server, and serve CF files via Apache & that instance.

 

However I cannot find a way of connecting the second CF instance to Apache as well, so that both CF instances are conected, each serving one of the virtual hosts. WSConfig doesn't seem to understand the notion of "multiple CF instances", and the changes it makes to the httpd.conf (via mod_jk.conf) does not seem to be implemented in such a way as to accommodate multiple CF instances talking to a single Apache instance, or multiple virtual hosts. I freely admit to not being confident enough with how mod_jk (or even really httpd.conf) works to be able to guess if I can change stuff to make it work.

 

If I try to add the second CF instance using WSConfig, I just get a message "the web server is already configured for ColdFusion". Be that as it may... not the instance of ColdFusion I want to connect it to! If I remove the existing connector to whichever instance is already connected, I can then connect the other one no problems. Not that this helps, but it demonstrates that the CF instance can connect to Apache.

 

This all used to be fairly straight fwd under older versions of CF and JRun :-(

 

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

 

I'm kinda hoping I can move some of the mod_jk config into my virtual host entries in httpd-vhosts.conf (this is how it used to work for JRun), but I've no idea what to put where.

 

I think I've covered all the necessary info here? If not, sing out and I'll add more. Thanks.

 

Anyone?  Cheers.

 

--

Adam

ColdFusion Cache object keeps disappearing

$
0
0

Hi,

 

I recently started using ColdFusion cache (cachePut/cacheGet) in CF10 to store some objects (struct/array).  However, the objects disappear from the cache within a day or so and I have to re-create them.  The cache objects are used regularly so there is no idle time that would cause them to time out.  For good measure, I have also set the "eternal" property of the cache to true. 

 

Does this have anything to do with the cache limit settings (for component, query caching, etc) in the admin?  I would think not, but I am perplexed as to why my cache keeps getting reset.  Anything I am not doing?

 

Thank you!


Cannot start the Coldfusion 2016 new release on a Mac. The instructions say go to cfusion/bin and type coldfusion start. Go to WHERE in cousin/bin?

$
0
0

Cannot start the Coldfusion 2016 new release on a Mac. The instructions say go to cfusion/bin and type coldfusion start. Go to WHERE in cousin/bin?

CFZIP and MAC

$
0
0

When we use CFZIP to compress directories, we cannot use the standard MAC tool to open them on Apple computers.  Works fine on PC and works with some of the third party MAC tools.  Any ideas?


Thanks,
Dave

Cannot Log Into CF Administrator After Clean CF11 Install

$
0
0

Windows Server 2012 R2 and IIS.

 

I cannot log into CF Administrator after doing a clean install of CF11 with purchased standard license. I was running the trial version before this clean install with no issues. Browser indicates "Waiting for 127.0.0.1.....", both FireFox and IE.

 

CF services are running. A .cfm page of my creation renders fine. Checked the CF log coldfusion-out.log file and shows successful admin login.

 

Tried changing password with passwordreset.bat

CF 12 documention

$
0
0

Is it online anywhere?  I was able to upgrade to 12 but it would be nice to have an online reference to the documentation.

cfgrid missing columns

$
0
0

Below is my current code, i recently changed the format set to html from flash to render in html.

but i noticed from the time, i changed the format = html, the first and last row columns are not showing or generating,

 

so when i run the below code, im only seeing the Step, Operation, RevCode columns, but not the KeyID or StatusID columns.

what am i doing it wrong.

 

But when i set the format = "flash" everything works fine, im able to get all the columns correctly displayed.

 

<cfgrid name="Setup_grid" height="200" width="900" align="LEFT" autoWidth="yes"    query="Finalquery"    insert="No" delete="No" sort="Yes" fontsize="14"    bold="No" italic="No" appendkey="Yes"    griddataalign="LEFT" gridlines="Yes"    rowheaders="Yes" rowheaderalign="CENTER" rowheaderitalic="No" rowheaderbold="No"    colheaders="Yes" colheaderalign="CENTER" colheaderfont="Arial" colheaderfontsize="12"    colheaderitalic="No" colheaderbold="Yes"    selectmode="Row" picturebar="Yes"    format="html" >    <cfgridcolumn name = "KeyID" Header="Key ID" bold = "No" italic = "No" select = "Yes" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "75">    <cfgridcolumn name = "Step" dataAlign = "LEFT" bold = "No" italic = "No" select = "No" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "75">    <cfgridcolumn name = "Operation" dataAlign = "LEFT" bold = "No" italic = "No" select = "No" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "75">    <cfgridcolumn name = "RevCode" display = "No">    <cfgridcolumn name = "StatusID" display = "No"></CFGRID><script type="text/javascript">
document.getElementById("Setup_grid").setAttribute("type", "application/xhtml xml");</script>
Viewing all 6243 articles
Browse latest View live


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