CF8 cfQuery Issue

In previous versions of CF you could execute a stored
procedure using the <cfQuery> tag and you would receive a
query result set containing the returned data. For example:
<cfquery name="checkLogin" datasource="myDataSource">
Execute LoginUser
@Email = '[email protected]',
@PasswordHash = '5F4DCC31234765D61D8327DEB882CF99'
</cfquery>
In CF7 and prior this would return a query result set
containing several fields that specified the permission level of
the user, etc. In CF8 the result set contains a single column
called “COMPUTED_COLUMN_1” and has a single blank row.
I’ve tested this same code on CF7 and it works fine. We
need to use <cfQuery> rather than <cfStoredProcedure>
because we need to be able to pass in the names for parameters
since they can be in any order and our stored procedures
don’t always require all parameters. <cfProcParam> does
not allow you to pass in a parameter name. There is a dbVarName
attribute but it hasn’t worked since the pre-MX days even
though it is still referred to in certain places in the docs.
Anyone else having this problem?

I get correct results from a similar stored procedure with
CF8 using either the CF8-supplied SQLServer driver or the Microsoft
v1.1 JDBC driver from
http://www.microsoft.com/downloads/details.aspx?familyid=6d483869-816a-44cb-9787-a866235ef c7c
It works OK with SQLServer 2000 and with SQLServer 2005.
Since you are not getting any error, it doesn't seem that you
need to use dbVarName.
Maybe you should try it with a test procedure which just
returns the arguments to see what is going on.
-tom-

Similar Messages

  • CF8 cfquery multiple sql statements

    In CF8, when I run a cfquery against MS SQL 2005 with
    multiple SQL statements, the query return the result of the first
    statement not the last one as in CF7. The following code snippet
    will cause an error because myID doesn't exist in qry. I know I
    should set a "result" variable to get the identity key in CF8 but
    we have some sites deployed in CF7. Before all sites migrate to
    CF8, I would like to have a way to use the same code for both CF7
    and CF8 so I don't have to maintain two versions. BTW, I tried
    three datasourcr drivers: "Microsoft SQL Server", "Other" with
    JDBC, and "ODBC Socket" with SQL Native Client. All of them gave
    the same result. Please help. Thanks.

    Hi Alex Pai,
    Coincidentally, someone just asked a similar question
    here.
    So you might try searching the forums first. The query in the other
    thread is slightly different, but the answer is the same.
    Totally unrelated to your problem, but for SQL 2000/2005 you
    should use scope_identity(), not @@identity.

  • CF8 Installation issue

    Hello All
    I have a CF6.1 MX dev sever running under windows 2003Server
    sp2. The 6.1 instance is installed in a dir c:\CFusionMX. 6.1 is
    connected to IIS 6 from the original install
    I am trying to install CF8 standalone on the same box (not
    linked to IIS6) but the installation keeps returning I error
    associated with ANT.
    the CF8 installer creates c:\JRun4 and does the installation
    in there however the one point where the process fails is a call to
    c:\CFusionMX\servers\etc\etc\etc here is some lines including the
    error
    Install File: C:\JRun4\Readme.htm
    Status: SUCCESSFUL
    Modify Text File - Single File: New File
    C:\JRun4\jrun.license.properties
    Status: SUCCESSFUL
    ANT Script Error:
    Status: ERROR
    Additional Notes: ERROR -
    jrun.xmlC:\CFusionMX\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib
    not found.
    Custom Action:
    com.macromedia.ia.action.ExecuteANTScriptAction
    Status: SUCCESSFUL
    Install File:
    C:\JRun4\docs\javadocs\allaire\jrun\install\GetControlPort.html
    Status: SUCCESSFUL
    Install File:
    Well this directory doesn't exist within the CF6.1
    Installation. I am beginning to think that the CF8 installer has a
    hard coded path to c:\CFusionMX\ which is screw up from Adobe ?
    Before you ask i have done all the turning off of DEP, I have
    cleared temp directories, changed temp directories to paths without
    spaces, I am logged in as Administrator and I have set read
    permissions on the installation directory. In short I have done
    everything I can find on various KB articles and fora
    Help me !!!!

    Check out the 2nd comment in the LiveDocs for cfchart:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_05.html#comments

  • CF8 & IIS6 issue

    Really weird issue happening.
    I've setup a site 'abc.com' in IIS and pointed it to a local
    directory 'cfusion-war\abc\'. Site resolves, everything works.
    I setup a second site 'abc2.com' and point it to
    'cfusion-war\abc2\' and it points the domain back to the root
    folder 'cfusion-war'.
    Thinking it was just an IIS issue I tried pointing the
    'abc2.com' site to a directory that only had an 'index.htm' file in
    it to test, 'cfusion-war\abc2-html', and it resovles to the correct
    page.
    So the issue is, for any site in IIS that points to a
    coldfusion site outside of the 'cfusion-war\abc' directory the page
    won't resolve. Point it to that directory though and it will.
    Anyone faced this issue before?
    Thanks in advance!
    Paul.

    Should also mention that we're running Windows Server
    2003.

  • Long page load / cfquery issue

    Hi all,
    I am developing a CFM page that is essentially a data dump of data that resides in our AS400.  This is really my first coldfusion project, so I am still learning a few ins and outs of the language.  I have a query, and it's taking over 15 minutes to return data.  Is there a tag I could use to speed this along, or is my syntax wrong, or any query optimization suggestions?  When I remove my <cfquery tag> everything loads fine. Any assistance would be appreciated.  Thanks in advance!!!  Here is my code:

    It might help if I remember to paste in my code
    <cfquery name="GetData" datasource="Web_Catalog" result="GetDataResult" >
            SELECT    DISTINCT WSFILE001.DEL1.DDEAL## AS DEAL## , WSFILE001.DEL1.DVER## AS VERSION##, WSFILE001.PRD1.PGROUP AS GROUP, WSFILE001.PRD1.PPROD## AS ITEM##,
            WSFILE001.PRD1.PDESC AS PRODUCT_DESC, WSFILE001.PRD1.PSIZE AS SIZE,
            (SELECT MAX(WSFILE001.COS1.CFOBP) FROM WSFILE001.COS1 WHERE WSFILE001.PRD1.PPROD## = WSFILE001.COS1.COSPRD AND WSFILE001.COS1.COSDAT < '1090505')   AS FOB,
            (SELECT MAX(WSFILE001.COS1.CFRTP) FROM WSFILE001.COS1 WHERE WSFILE001.PRD1.PPROD## = WSFILE001.COS1.COSPRD AND WSFILE001.COS1.COSDAT < '1090505') AS FREIGHT,
            WSFILE001.COS1.CPURCP AS PA,
            (SELECT MAX(WSFILE001.COS1.CDEIM) FROM WSFILE001.COS1 WHERE WSFILE001.PRD1.PPROD## = WSFILE001.COS1.COSPRD AND WSFILE001.COS1.COSDAT < '1090505') AS OCEAN_FREIGHT,
            WSFILE001.COS1.CDUTYP AS IMPORT_DUTY, WSFILE001.COS1.CPBANK AS BANK, WSFILE001.COS1.CMISC AS MISC, WSFILE001.COS1.COTAXP AS FEDERAL_TAXES, WSFILE001.COS1.CSTAXC AS STATE_TAXES,
            (SELECT MAX(WSFILE001.PRC1.PSEL8P) FROM WSFILE001.PRC1 WHERE WSFILE001.PRD1.PPROD## = WSFILE001.PRC1.PRCPRD AND WSFILE001.COS1.COSDAT < '1090505') AS LANDED,       
            (SELECT MAX(WSFILE001.PRC1.PSEL1P) FROM WSFILE001.PRC1 WHERE WSFILE001.PRD1.PPROD## = WSFILE001.PRC1.PRCPRD AND WSFILE001.COS1.COSDAT < '1090505') AS LIST_PRICE,
            WSFILE001.NDEP1.NPRC01 AS DA,
            ((SELECT MAX(WSFILE001.PRC1.PSEL8P) FROM WSFILE001.PRC1 WHERE WSFILE001.PRD1.PPROD## = WSFILE001.PRC1.PRCPRD AND WSFILE001.COS1.COSDAT < '1090505') - WSFILE001.NDEP1.NPRC01) AS NETCOST,
            WSFILE001.DEL1.DM1 AS QUANTITY
            FROM     WSFILE001.DEL1, WSFILE001.PDEL, WSFILE001.PRD1, WSFILE001.COS1, WSFILE001.PRC1, WSFILE001.NDEP1, WSFILE001.DIS1
            WHERE    
                WSFILE001.DEL1.DDEAL## > '71' AND
                WSFILE001.DEL1.DDEAL## < '1400' AND
                WSFILE001.PRD1.PGROUP = WSFILE001.PDEL.PDGRUP AND
                WSFILE001.PRD1.PPROD## = WSFILE001.COS1.COSPRD AND
                WSFILE001.PRD1.PPROD##  = WSFILE001.NDEP1.NETPRD AND   
                WSFILE001.PRD1.PPROD## = WSFILE001.PRC1.PRCPRD AND
                WSFILE001.PRD1.PSUPPL = WSFILE001.PDEL.PDCMP AND
            WSFILE001.DEL1.DDEAL## > 0 AND WSFILE001.DEL1.DDEAL## =
            COALESCE  (CASE WHEN WSFILE001.PDEL.PDX = 0 THEN NULL ELSE WSFILE001.PDEL.PDX END,
                                  CASE WHEN WSFILE001.PDEL.PDW = 0 THEN NULL ELSE WSFILE001.PDEL.PDW END,
                                  CASE WHEN WSFILE001.PDEL.PDV = 0 THEN NULL ELSE WSFILE001.PDEL.PDV END,
                                  CASE WHEN WSFILE001.PDEL.PDU = 0 THEN NULL ELSE WSFILE001.PDEL.PDU END,
                                  CASE WHEN WSFILE001.PDEL.PDT = 0 THEN NULL ELSE WSFILE001.PDEL.PDT END,
                                  CASE WHEN WSFILE001.PDEL.PDS = 0 THEN NULL ELSE WSFILE001.PDEL.PDS END,
                                  CASE WHEN WSFILE001.PDEL.PDR = 0 THEN NULL ELSE WSFILE001.PDEL.PDR END,
                                  CASE WHEN WSFILE001.PDEL.PDQ = 0 THEN NULL ELSE WSFILE001.PDEL.PDQ END,
                                  CASE WHEN WSFILE001.PDEL.PDP = 0 THEN NULL ELSE WSFILE001.PDEL.PDP END,
                                  CASE WHEN WSFILE001.PDEL.PDO = 0 THEN NULL ELSE WSFILE001.PDEL.PDO END,
                                  CASE WHEN WSFILE001.PDEL.PDN = 0 THEN NULL ELSE WSFILE001.PDEL.PDN END,
                                  CASE WHEN WSFILE001.PDEL.PDM = 0 THEN NULL ELSE WSFILE001.PDEL.PDM END,
                                  CASE WHEN WSFILE001.PDEL.PDL = 0 THEN NULL ELSE WSFILE001.PDEL.PDL END,
                                  CASE WHEN WSFILE001.PDEL.PDK = 0 THEN NULL ELSE WSFILE001.PDEL.PDK END,
                                  CASE WHEN WSFILE001.PDEL.PDJ = 0 THEN NULL ELSE WSFILE001.PDEL.PDJ END,
                                  CASE WHEN WSFILE001.PDEL.PDI = 0 THEN NULL ELSE WSFILE001.PDEL.PDI END,
                                  CASE WHEN WSFILE001.PDEL.PDH = 0 THEN NULL ELSE WSFILE001.PDEL.PDH END,
                                  CASE WHEN WSFILE001.PDEL.PDG = 0 THEN NULL ELSE WSFILE001.PDEL.PDG END,
                                  CASE WHEN WSFILE001.PDEL.PDF = 0 THEN NULL ELSE WSFILE001.PDEL.PDF END,
                                  CASE WHEN WSFILE001.PDEL.PDE = 0 THEN NULL ELSE WSFILE001.PDEL.PDE END,
                                  CASE WHEN WSFILE001.PDEL.PDD = 0 THEN NULL ELSE WSFILE001.PDEL.PDD END,
                                  CASE WHEN WSFILE001.PDEL.PDC = 0 THEN NULL ELSE WSFILE001.PDEL.PDC END,
                                  CASE WHEN WSFILE001.PDEL.PDB = 0 THEN NULL ELSE WSFILE001.PDEL.PDB END,
                                  CASE WHEN WSFILE001.PDEL.PDA = 0 THEN NULL ELSE WSFILE001.PDEL.PDA END) 
            AND
            WSFILE001.DEL1.DVER##  > 0 AND WSFILE001.DEL1.DVER## =
            COALESCE  (CASE WHEN WSFILE001.PDEL.PDVX = 0 THEN NULL ELSE WSFILE001.PDEL.PDVX END,
                                  CASE WHEN WSFILE001.PDEL.PDVX = 0 THEN NULL ELSE WSFILE001.PDEL.PDVW END,
                                  CASE WHEN WSFILE001.PDEL.PDVX = 0 THEN NULL ELSE WSFILE001.PDEL.PDVV END,
                                  CASE WHEN WSFILE001.PDEL.PDVU = 0 THEN NULL ELSE WSFILE001.PDEL.PDVU END,
                                  CASE WHEN WSFILE001.PDEL.PDVT = 0 THEN NULL ELSE WSFILE001.PDEL.PDVT END,
                                  CASE WHEN WSFILE001.PDEL.PDVS = 0 THEN NULL ELSE WSFILE001.PDEL.PDVS END,
                                  CASE WHEN WSFILE001.PDEL.PDVR = 0 THEN NULL ELSE WSFILE001.PDEL.PDVR END,
                                  CASE WHEN WSFILE001.PDEL.PDVQ = 0 THEN NULL ELSE WSFILE001.PDEL.PDVQ END,
                                  CASE WHEN WSFILE001.PDEL.PDVP = 0 THEN NULL ELSE WSFILE001.PDEL.PDVP END,
                                  CASE WHEN WSFILE001.PDEL.PDVO = 0 THEN NULL ELSE WSFILE001.PDEL.PDVO END,
                                  CASE WHEN WSFILE001.PDEL.PDVN = 0 THEN NULL ELSE WSFILE001.PDEL.PDVN END,
                                  CASE WHEN WSFILE001.PDEL.PDVM = 0 THEN NULL ELSE WSFILE001.PDEL.PDVM END,
                                  CASE WHEN WSFILE001.PDEL.PDVL = 0 THEN NULL ELSE WSFILE001.PDEL.PDVL END,
                                  CASE WHEN WSFILE001.PDEL.PDVK = 0 THEN NULL ELSE WSFILE001.PDEL.PDVK END,
                                  CASE WHEN WSFILE001.PDEL.PDVJ = 0 THEN NULL ELSE WSFILE001.PDEL.PDVJ END,
                                  CASE WHEN WSFILE001.PDEL.PDVI = 0 THEN NULL ELSE WSFILE001.PDEL.PDVI END,
                                  CASE WHEN WSFILE001.PDEL.PDVH = 0 THEN NULL ELSE WSFILE001.PDEL.PDVH END,
                                  CASE WHEN WSFILE001.PDEL.PDVG = 0 THEN NULL ELSE WSFILE001.PDEL.PDVG END,
                                  CASE WHEN WSFILE001.PDEL.PDVF = 0 THEN NULL ELSE WSFILE001.PDEL.PDVF END,
                                  CASE WHEN WSFILE001.PDEL.PDVE = 0 THEN NULL ELSE WSFILE001.PDEL.PDVE END,
                                  CASE WHEN WSFILE001.PDEL.PDVD = 0 THEN NULL ELSE WSFILE001.PDEL.PDVD END,
                                  CASE WHEN WSFILE001.PDEL.PDVC = 0 THEN NULL ELSE WSFILE001.PDEL.PDVC END,
                                  CASE WHEN WSFILE001.PDEL.PDVB = 0 THEN NULL ELSE WSFILE001.PDEL.PDVB END,
                                  CASE WHEN WSFILE001.PDEL.PDVA = 0 THEN NULL ELSE WSFILE001.PDEL.PDVA END)    
            AND 
            WSFILE001.DEL1.DVER##  > 0 AND WSFILE001.DEL1.DM1 =
            COALESCE  (CASE WHEN WSFILE001.DEL1.DVER## = 12 THEN WSFILE001.DEL1.DM12 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 11 THEN WSFILE001.DEL1.DM11 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 10 THEN WSFILE001.DEL1.DM10 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 9 THEN WSFILE001.DEL1.DM9 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 8 THEN WSFILE001.DEL1.DM8 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 7 THEN WSFILE001.DEL1.DM7 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 6 THEN WSFILE001.DEL1.DM6 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 5 THEN WSFILE001.DEL1.DM5 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 4 THEN WSFILE001.DEL1.DM4 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 3 THEN WSFILE001.DEL1.DM3 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 2 THEN WSFILE001.DEL1.DM2 ELSE NULL END,
                                  CASE WHEN WSFILE001.DEL1.DVER## = 1 THEN WSFILE001.DEL1.DM1 ELSE NULL END)
            AND       
            WSFILE001.NDEP1.NPRC01 = 
            COALESCE    (CASE  WHEN  WSFILE001.NDEP1.NPRC01 > MIN(WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC06, WSFILE001.NDEP1.NPRC07,
                                    WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC09, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC02 > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC06, WSFILE001.NDEP1.NPRC07,
                                    WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC09, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC03 > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC06, WSFILE001.NDEP1.NPRC07,
                                    WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC09, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC04 > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC06, WSFILE001.NDEP1.NPRC07,
                                    WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC09, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC05 > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC06, WSFILE001.NDEP1.NPRC07,
                                    WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC09, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC06 > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC07,
                                    WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC09, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC07 > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC06,
                                    WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC09, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC08  > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC06, 
                                    WSFILE001.NDEP1.NPRC07, WSFILE001.NDEP1.NPRC09, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC09  > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC06, 
                                    WSFILE001.NDEP1.NPRC07, WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC10) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END,
                 CASE WHEN  WSFILE001.NDEP1.NPRC10  > MIN(WSFILE001.NDEP1.NPRC01, WSFILE001.NDEP1.NPRC02, WSFILE001.NDEP1.NPRC03, WSFILE001.NDEP1.NPRC04, WSFILE001.NDEP1.NPRC05, WSFILE001.NDEP1.NPRC06,
                                    WSFILE001.NDEP1.NPRC07, WSFILE001.NDEP1.NPRC08, WSFILE001.NDEP1.NPRC09) THEN WSFILE001.NDEP1.NPRC01 ELSE NULL END)
        ORDER BY DEAL##
    </cfquery>

  • CF8 CFChart issue

    Does anyone have a fix for this bug? The below code displays
    perfectly in CF 7 and earlier versions. But in CF 8, the first
    chart series displays 6 elements in the graph even though it has
    just 2 elements.
    <cfchart format="png" chartwidth="280" chartheight="100"
    showlegend="false">
    <cfchartseries type="line">
    <cfchartdata item="a" value="20">
    <cfchartdata item="b" value="15">
    </cfchartseries>
    <cfchartseries type="line">
    <cfchartdata item="a" value="10">
    <cfchartdata item="b" value="6">
    <cfchartdata item="c" value="27">
    <cfchartdata item="d" value="5">
    <cfchartdata item="e" value="20">
    <cfchartdata item="f" value="3">
    </cfchartseries>
    </cfchart>

    Check out the 2nd comment in the LiveDocs for cfchart:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_05.html#comments

  • Symlink Issue

    Hi
    I have recently upgraded a project from CFMX7 to CF8. The
    problem I'm having is that I have a number of subdomains which are
    setup. Each of these subdomains contains an Application file at the
    root, and a folder called administration. This folder is a symlink
    which has been setup which links to the physical files.
    If I try and view a login.cfm page with the administration
    folder (i.e.
    http://test.domain.com/administration/login.cfm),
    an error message comes up which says that my application variables
    are not defined. This directory seems to have an issue locating the
    Application file in the directory above. Has anyone experienced the
    same error at all? I've read that CF8 has issues with symlinks.
    Thanks for your help - it would really be appreciated!!
    Aileen

    It is a symlink.   The symlink is owned by the vim package.  As vim is a dep for gvim, that file is being managed by the package manager.
    Saying I want to store a file there is like saying I want to store a text file at /bin/bash...   Sure you could, but do not expect bash to keep working.
    So what exactly is your issue here?

  • Issues with Flex3 and CF8 on Windows Vista

    Sorry for the whine, however I feel it necessary to get a few
    issues I've found with Flex3 on a Vista Laptop working with CF8
    that I've not seen documented elsewhere.
    Environment:
    Sony Laptop with Intel Core 2 Duo processor and 3 GB Ram.
    Running CF 8 Standard Edition, along with mySQL 5.x and
    access to a SQL Server instance on another machine on the same
    local network.
    What I am trying to do:
    A) learn flex, my background is CF with over 8 years of
    experience along with Flash AS2 along the way.
    B) put together a hello world app.
    C) use the flex/cf application wizard to build a simple
    master/detail set of selection/edit screens for one table of a
    database that I used recently on a CF8 project. To see how much
    better the UI really is on Flex and whether I could use it to retro
    fit that old application to have a better UI using flex3.
    Issues.
    My mini-application is set up initially in the folder
    c:/inetpub/wwwroot/mydirectory, but it does not work.
    Reason is that when run, it cannot access the flex2gateway on
    the url that the wizard puts into the app. which is
    http://localhost/mydirectory/flex2gateway...
    Details:
    flex2gateway does not work on a subdirectory URL on the
    default web site.
    If I access
    http://localhost/flex2gateway/
    I get a blank screen (as expected) meaning that the flex2gatweway
    is working.
    If I access
    http://localhost/mysubdirectory/flex2gateway/
    I get a 404.0 error (not found)
    Now, I beleive this is supposed to work, something must be
    wrong with one of the xml file setups. But I cannot find any
    documentation for it.
    Initially the flex2gateway did not work at all. I did the web
    connector thing with CF batch file and that got it working, but
    only on the base directory, not the subdirectory.
    So, to get around this issue, Luckily Vista with IE7 allows
    more than one website.. I create a whole new website that is
    accessed using
    http://192.168.1.73:81/
    I set this website up in the folder c:/localhost/mydirectory.
    The flex project is called mydirectory
    So we come to issue 2.
    Given the above Issue number 1, I have further frustration
    because when the Flex/Cold Fusion Application wizard builds the
    various mxml files it insists on prefixing all of the remote object
    calls with 'mydirectory.'
    e.g "mydirectory.components.cfgenerated.mycfc"
    Now, given that the web root is also the base of the project,
    this will not work.
    What actually works is: "components.cfgenerated.mycfc"
    There seems to be no way I can configure the project when
    building it to get around this issue. The only way |I can fix this
    is to manually edit all the mxml files after the wizard is
    finished. I also have to doctor the project setup for similar
    reasons. It wants all of the urls to be:
    http://192.168.1.73:81/mydirectory/bin/main.html
    instead of
    http://192.168.1.73:81/bin/main.html
    So obviously the wizard is not set up to handle applications
    that are based right at the web root, even though this is the only
    place that the flex2gateway can work. <snafu I guess>
    Issue 3:
    I find that the flex/Cf application wizard is set up to build
    pages based upon a certain narrowly defined way of constructing the
    source database tables. In particular it wants every table to have
    its own unique numeric id for each row, and can't handle a string
    for the primary key and have the primary key editable as well.
    Seems inflexible if you ask me. The main problem is that the
    preconditions on the table structure that the wizard can work with
    are poorly defined and documented. You obviously had to go to the
    same school of database design and the same class as the Adobe
    developers to think in the same way.
    Given that this tool is supposed to be a help to new users of
    Flex and AS3 and it is supposed to be a productivity aid, perhaps I
    should not be surprised to have had to spend over a week getting to
    grips with the wizard and learning its tricks just to get it to
    build a mind numbingly simple mini app of my own that works when
    run. Sorry Adobe, but you get a F minus on your report card for
    this one, particularly on the really bad documentation. Just as bad
    for the coding complexity of the solution to seemingly simple
    application concept.
    Cheers,
    Bryn Parrott

    Hi,
    Which version of RDP client you are using for your client?
    Does more user login at same period of time?
    As you have commented that after sticking the user can’t able to login in RDCB server, here I can suggest you to check the setting of connection broker. Also you can check that you have place the proper location path of UPD while configuring in collection configuration
    wizard. You can take a look at below article foe virtual desktop configuration.
    Deploying Virtual Desktops with Windows Server 2012
    Are you trying to use same UPD for different collection then also it might happens to occur your issue. The fact of UPD is User profile disks are for a single collection only. A user connecting to two different collections will have two separate profiles. If
    you want to synchronize settings, refer to Microsoft User Experience Virtualization. Go through this article for more understanding related to UPD.
    Working with User Profile Disks on Session-Based Desktop Deployments
    Hope it helps!
    Thanks.

  • CFMAIL issue in cf8

    I have set up the mail connection via CF Admin.
    I tested connection and I ahve no problem.
    But now when I send any emails where the address is in
    format:
    [email protected] it fails with invalid address
    but if i try [email protected] it send the email with no problem.
    So I know that my connection is correct.
    In fact, I already CF7 as my production server, but we are
    testing this to see if it is worth it for us to
    upgrade.
    So far this issue is cauing a major issue.
    Because many of clients have email format that I specified.
    I tested this from my email account from ail server to an
    address [email protected], and was able to send it with no problem.
    Only when using cfmail, seems to be having an issue.
    If anyone can give me a pointer or a some information to
    andle this wuld be great.
    Asad

    i have no problems sending mail to addresses like
    [email protected] using
    cf8's cfmail...
    tested on cf8 with hf2 on winxp. do you have all hotfixes in
    stalled?
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • CF8 ODBC performance issues w/ SQL 2K5

    Problem: A basic "select *" query returning 5 rows is taking
    a little over 5000ms.
    Platform: Vista Business, CF8 Developer, MS SQL 2K5 Developer
    SP2, ODBC Socket using trusted connection
    I ran a query against cfartgallery without any performance
    problems. Leads me to believe this is an ODBC issue.
    (Server monitor memory tracking is off.)
    Does anybody have any suggested fixes? Thank you.

    gdemaria -
    I reverted back to using MX7 rather than 8.
    I tried using the JDBC driver, which is the default driver on
    the first screen--where you have to specify a username and password
    and you connect over port 1433-- but I couldn't get that to work.
    (This is probably a problem with my SQL server configuration.)
    My plan is to play around some more with the JDBC driver. Or,
    wait and see if I get an ODBC solution from the forum here. For now
    I will develop on MX7 and use CF8 in the live hosting
    environment---not an ideal situation, but it's workable.

  • Cfdocument printing issues: cf7 vs cf8

    Here's what happens when I create a pdf with
    <cfdocument> on CF7 vs CF8:
    CF7
    The generated pdf is 16 pages and 87.6 KB. When I print the
    pdf the progress bar in acrobat fills up immediately. The total
    size in the print spooler is 1.18MB
    CF8
    The generated pdf is 16 pages and 622 KB. When I print the
    pdf the progress bar in acrobat takes almost 3 minutes to get to
    100%. The total size in the print spooler is a whopping 75.5MB
    I am using fontembed="false", but that seems to have no
    effect on the actual filesize either. Also, on the CF8 document I
    can click all over the place and get these 1/2" x 1/2" blue cubes
    that show up. They are exactly like the ones you get if you click
    on an image, only they are in random areas all over the place. One
    other thing, when I save the CF8 pdf, there is a progress bar in
    the lower right that says "optimized for fast web viewing". It
    doesn't do that for CF7.
    What is going on here, and what can be done? Users are not
    able to print anything out in a timely fashion. Thanks.
    EDIT:
    If I don't import my 3KB css file, the pdf behaves like it
    does in CF7, minus the formatting of course

    There was a background image in the css that was causing the
    issue, but it was only a problem when using @import to get the css,
    and only in CF8.

  • Cfquery tag closing issues

    This one has been plauging me for a long time and it's rather annoying.  In Preferences / Code Hints, I have closing tags set for "</".  This works fine for every tag except for cfquery.  There are a couple other people I work with who have the same issue but at the same time there are plenty of people who do not have this issue at all.  I've gone as far as uninstalling Dreamweaver entirely (including deleting all of my preferences) and reinstalling it after a reboot.  Nothing seems to work.  Any ideas on how I can fix this?
    Note: Setting it to close after typing the opening tag doesn't work either; for cfquery.  All other tags work just fine.  o_O

    I think I've found the culprit... CF9 Extensions for Dreamweaver!  I uninstalled everything related to Adobe from my system making sure to select "Remove Preferences" as well.  Then I ran ccleaner and manually searched through my registry for anything related to Adobe and deleted it.  Rebooted and reinstalled CS5.  The cfquery tag (auto close) was finally working!  So I then proceeded to install the updates and the HTML5 and CF9 extensions.  All of a sudden cfquery stopped working again.  So I removed the CF9 extension, tested again, and presto! cfquery worked.
    So there's got to be something in the CF9 extensions killing cfquery.  I don't know how to open up this extension to see what it's made of.  Any ideas?
    EDIT:  I think I might have narrowed it down even more.  I thought maybe it was the code hints xml file that the Extension itself overwrites but it's identical to the original one.  Then I noticed that the Extension adds a new folder with redefined tags (Application Data/Adobe/Dreamweaver CS5/en_US/Configuration/Content/Reference/CFML).  This folder does not exist without the extension and contains "cfquery.htm".  I tried to rename it and reload Dreamweaver to see if that fixed the issue but it didn't.  So technically I'm still looking for a solution but at least this time it's now a solution to retain the CF9 Extension and the ability for an auto closing cfquery tag haha
    UPDATE:  Application Data\Adobe\Dreamweaver CS5\en_US\Configuration\TagLibraries\cfml.  The files cfquery.cfm and cfquery.vtm.  I backed up those files and renamed them to .old and cfquery auto closes properly even with the CF9 extension enabled!  Getting closer!   I guess I'll have to open those up and see what's going on.  They don't exist with the CF9 extension disabled so I'm not certain what to look for.
    FINAL UPDATE:  So it would seem that nothing needs to be changed in either of those files.  Simply renaming them, loading Dreamweaver, renaming them back, and reloading Dreamweaver did the trick.  CF9 extension enabled and no issues with the cfquery tag.  Perhaps there's a problem with Dreamweaver initially loading those tag files or pulling from cache somewhere before the extension was installed.  Either way, it works.
    Message was edited by: KrakaJap

  • Significant Load Issues (CF8 and Model Glue 2)

    I'm running an enterprise-level application running CF8 and Model Glue 2 that has seen a recent spike in users.  Several hundred users are submitting complex forms at any one time, which then trigger e-mails.
    During our peaks, we're seeing the following error messages pour in:
    Either there are no methods with the specified method name and argument types, or the getUserID method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that matched the provided arguments. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.
    Has anybody run into these types of errors before.  I'd really appreciate your guidance.

    Sounds like you have an issue with the var scope.
    Model Glue controllers are singletons and this means one single instance of
    the controller is shared among all requests. While this is a great way to
    increase performance, it does mean you must be careful to use the ColdFusion
    var keyword properly.
    Since this is showing up under load, I am going to bet this is the issue. *Here
    is what you need to do:*
    Short Version:
       1. Download this: http://varscoper.riaforge.org/
       2. Run it against your application and fix everything it finds.
    Long Version:
       1. Read this:
       http://www.nodans.com/index.cfm/2007/9/27/Is-your-code-Thread-Safe-How-do-you-know
       2. Watch this:
       http://www.schierberl.com/blog/thread-safety-and-the-var-scope-live-example/
       3. Download this: http://varscoper.riaforge.org/
       4. Run it against your application and fix everything it finds.
    Dan Wilson

  • CF8 Issue

    I'm trying to call a web service from CF8, running on Mac OS
    X 10.4.10 (with all updates).
    I'm getting this error on the cfinvoke line:
    coldfusion.jsp.JavaCompiler$UnknownCompiler: Unable to run
    the internal Java compiler: java.lang.NoClassDefFoundError:
    javax/tools/StandardJavaFileManager.
    This is using Java 5 that comes as part of OS X (again with
    all updates). Browsing to the WSDL for the CFC in question returns
    the expected wsdl. javax.tools.StandardJavaFileManager appears to
    be part of Java 6, not Java 5. I tried installing the Java 6
    pre-release for Tiger from last fall, doesn't seem to make a
    difference.
    Mark

    I'm answering this for myself, as no one else has. It appears
    that CF8 ships with the JDK 1.6 tools.jar file in cfusion/lib. The
    JDK1.5, which is current on a Mac, includes the 1.5 version of the
    tools.jar. The conflict causes the JVM to blow up. Removing the
    tools.jar on a mac should let the native tools.jar work. On a PC,
    if you're swapping between a 1.5 and 1.6 JVM, you'll need to
    replace the cfusion/lib/tools.jar with the correct version. Adobe
    needs to write an official technote on this.
    Information gleaned from:
    http://www.petefreitag.com/item/652.cfm
    http://coldfused.blogspot.com/2007/08/coldfusion-and-webservice-file-has.html
    http://rahulnarula.blogspot.com/2007/06/coldfusion-8-installation-tip.html

  • CF8.01 Cluster creation issues

    I've just recently installed CF8.01 Enterprise edition with
    IIS 6, and I'm trying to wrap my head around creating instances
    from J2EE EAR archives and clustering them on the same machine.
    I followed the official instructions for "Enabling clustering
    for load balancing and failover", but I don't quite understand why
    you'd want to overwrite the IIS website connected to the cfusion
    instance with the clustered instance, as this makes the cfusion
    CFIDE administrator page inaccessible. Should I create a separate
    webserver for the cluster first and connect it to that?
    Also, how can I easily update the clustered instances? We're
    used to editing templates on a test machine and then copying the
    changes directly to the production server, but obviously it won't
    be that simple with multiple instances.

    WV_DEP_GUY wrote:
    > That is Cold Fusion 8 cannot do load balancing and
    failover without a third party product. Is this correct?
    I think it can, on the same machine. I.E. I know you can have
    multiple
    instances of ColdFusion installed on the same machine. I have
    read that
    this *can* be used for fail over and|or load balancing.
    Personally, I
    have only used it for application isolation.
    But I think when you start talking multiple physical servers,
    then you
    are looking outside of ColdFusion for your load
    balancing|fail over tools.
    Just be aware that there maybe more options here, depending
    on what you
    want to do. It is often not thought that a ColdFusion server
    can be
    separated from and configured to connect to one or more
    remote web
    server boxes. You can separate the web server layer from the
    application server layer. Then you can load balance|fail over
    these
    layers independently of each other as needed or desired.

Maybe you are looking for