Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Database Error

    I get this error when I run CFUDPATE but If I make the same query using
    <cfquery> the update statement, the update works fine. Is this some ODBC
    error?

    java.util.EmptyStackException
    at java.util.Stack.peek(Unknown Source)
    at macromedia.jdbc.base.BaseStatement.commonGetNextRe sultSet(Unknown Source)
    at macromedia.jdbc.base.BaseStatement.executeQueryInt ernal(Unknown Source)
    at macromedia.jdbc.base.BaseStatement.executeDatabase MetaDataQuery(Unknown
    Source)
    at macromedia.jdbc.base.BaseDatabaseMetaData.getColum ns(Unknown Source)
    at coldfusion.tagext.sql.InsertTag.getColumns(InsertT ag.java:214)
    at
    coldfusion.tagext.sql.InsertTag.retrieveDatabaseMe taData(InsertTag.java:247)
    at
    coldfusion.tagext.sql.UpdateTag.retrieveDatabaseMe taData(UpdateTag.java:281)
    at coldfusion.tagext.sql.InsertTag.doStartTag(InsertT ag.java:617)
    at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPag e.java:1918)
    at cfUpdate2ecfm2127964166._factor9(C:\Inetpub\wwwroo t\armco7\Update.cfm:280)
    at cfUpdate2ecfm2127964166._factor18(C:\Inetpub\wwwro ot\armco7\Update.cfm:277)
    at cfUpdate2ecfm2127964166._factor19(C:\Inetpub\wwwro ot\armco7\Update.cfm:5)
    at cfUpdate2ecfm2127964166.runPage(C:\Inetpub\wwwroot \armco7\Update.cfm:1)


    grndvl1 Guest

  2. Similar Questions and Discussions

    1. Error after upgrade "Error Executing Database Query. "
      I have set up a new server with CF MX 6.1. I have moved code from a CF 5 server. Now I am getting a lot of errors like this one. They all vary...
    2. Error loading a database
      I'm getting the following result by attempting to load a database via 'mysql> source C:\Download\PHPexamples\winestore.data'. This is the result: ...
    3. Database access error. Please help!
      I finially manages to get my Access database to connect with Coldfusion, however when i run a simple 'Select * from ' statement, i get this error. ...
    4. database or asp error
      Hi Marius, The date issue could have several causes. Do you use VBScript or Jscript to retrieve the bookings? Jscript always uses the US-date...
    5. Database error.
      I am trying to load a software onto my XP but I have a problem while I try to run the application... I get the Database error...Stating that ...
  3. #2

    Default Re: Database Error

    Does this happen every time you used CFUPDATE or only when using certain values or updating certain columns? Can you post the CFUPDATE and CFQUERY code and maybe someone can help.
    mxstu Guest

  4. #3

    Default Re: Database Error

    This happens everytime I try to update a particular form Insert from this form.
    Same exact code works on the live server and both are using the same database.
    The code is just:

    <cfupdate datasource="armco" tablename="contacts"

    formfields="ct_name,ct_haddr1,ct_haddr2,ct_hcity,c t_hstate,ct_hzip,ct_hprovince
    ,
    ct_hcountry, ct_cellular, ct_pager, ct_password,
    ct_hphctycode,ct_hphacode,ct_hphnumber,ct_hfxctyco de,
    ct_hfxacode,ct_hfxnumber,ct_hemail,ct_wemail,
    ct_wphctycode, ct_wphacode, ct_wphnumber, ct_extension,
    ct_wfxctycode, ct_wfxacode, ct_wfxnumber, ct_birthday">

    Unfortunately I can't play with this any more as we needed it to work so I had
    to uninstall the CF server. Will try again to reinstall, hope I don't run into
    the same problem.


    grndvl1 Guest

  5. #4

    Default Re: Database Error

    I would recommend using CFQUERY over CFUPDATE because it offers more control
    and IMO is a little less buggy.

    Does the CFQUERY work with the exact same values used with the CFUPDATE? Is
    the live server running the same version/hot fixes?

    If you have time to post the pertinent information: database type, the actual
    values being inserted, and column data types, maybe someone can look at it and
    possibly offer an explanation.

    mxstu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139