CF MX6.1 Pro and Informix 7.31

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

  1. #1

    Default CF MX6.1 Pro and Informix 7.31

    I am trying to configure the IBM Informix JDBC driver so we don't have to use
    the ODBC connection between Windows 2000 box and the Informix database resides
    in a Sun box which hangs from time to time.

    [url]http://www.macromedia.com/support/coldfusion/ts/documents/config_ibm_informix.ht[/url]
    m

    I have the datasource connection works fine. ColdFusion application runs OK
    with regular select queries. But when I tried to write to a temp table in
    database, I got "Method Can be called only once" error. I have not test update
    and delete yet.

    The driver version I am using is "3.00JC2" which is the most current. There
    was a post dated April 2004 specify a different version of driver that can fix
    the problem. I have tried, but same error without luck.

    [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=6&thread[/url]
    id=780851&highlight_key=y&keyword1=Method%20can%20 be%20called%20only%20once

    Does anyone out there experiences the same problem before and know how to fix
    it? Does this a driver problem?

    Many thanks in advance for any response.


    yc

    ywc Guest

  2. Similar Questions and Discussions

    1. ANNOUNCE: DBD::Informix - IBM Informix Database Driver for PerlDBI Version 2005.01 (2005-03-14) released
      IBM Informix Database Driver for Perl DBI Version 2005.01 (2005-03-14) has been uploaded to CPAN. IBM Informix Database Driver for Perl (also...
    2. Trouble Connecting to Informix DB with UnixODBC/Informix-Client-SDK-2.8UC2
      Hello Informix Users! If anyone can help with this I will very much appreciate it!!! Setting up UnixODBC/informix is proving to be somewhat...
    3. Difference between Informix connect and Informix Client SDK
      Does Somebody would tell me the difference between those Informix products? And the estimated cost of each one (for Linux) ? Thanks in advance...
    4. Eleven FAQ's About comp.databases.informix and informix-list@iiug.org
      Eleven FAQ's About comp.databases.informix and informix-list@iiug.org ===================================================================== Last...
    5. [comp.databases.informix] retrieving Stored procedure with SQL IN INFORMIX
      On Fri, 27 Jun 2003 09:54:13 -0400, Lionel Girard wrote: Myschema does the same thing in ESQL/C and there are not spaces compressed out. The...
  3. #2

    Default Re: CF MX6.1 Pro and Informix 7.31

    Can you post the code?

    Marco
    jumajii Guest

  4. #3

    Default Re: CF MX6.1 Pro and Informix 7.31

    I found that this problem happens whenever I have a query that write data to a
    temp tables in the database. Sometimes, we need to store user input in a temp
    table, after we process the data, we then drop the table.
    For pages that involve static tables, they work just fine.
    Sorry I can't post the code here.
    Thanks.

    Wendy

    ywc Guest

  5. #4

    Default Re: CF MX6.1 Pro and Informix 7.31

    Ok Wendy,
    first you needed of create the temporary table.
    You can perform this in two ways:
    with the :"select .... into temp" statement
    or
    with the explicit: "create temp table".
    For you necessary i think that the second is the right way.
    You can test this code:

    <cfquery name="firststep" datasource="#Application.youDsn#">
    create temp table tmpTest (userid char(30))
    </cfquery>

    <cfif isDefined("Form.userid") and Form.userid NEQ "">

    <cfquery name="secondstep" datasource="#Application.youDsn#">
    insert into tmpTest values('#Form.userid#')
    </cfquery>

    <cfquery name="outTest" datasource="#Application.youDsn#">
    select * from tmpTest
    </cfquery>
    <cfdump var="#outTest#">
    </cfif>

    <cfform name="testTemp" action="">
    <cfinput type="text" name="userid">
    <input type="submit" name="submit" value="Insert">
    </cfform>

    Excuse me for my english
    Regards

    Marco


    jumajii Guest

  6. #5

    Default Re: CF MX6.1 Pro and Informix 7.31

    Yes, I did create the temp table first.
    Basically, I run a query to get data I need, loop throught the result, and
    enbed the insert statement within the loop.
    Everything wroks fine with the ODBC connection, but got strange error with the
    JDBC connection. I believe this is a problem with the Informix JDBC driver.
    Many thanks to your reply.

    ywc

    ywc Guest

  7. #6

    Default Re: CF MX6.1 Pro and Informix 7.31

    Look this (informix section):


    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.1a3c2[/url]
    ad0&extid=1a3c2ad0&dialogID=14443437&iterationID=1 &sessionID=4830a2fa005259285a7
    9&stateID=0+0+14447948&mode=simple

    Marco

    jumajii Guest

  8. #7

    Default Re: CF MX6.1 Pro and Informix 7.31

    To make this error go away with IBM's drivers, you need JDBC 2.21.JC5X2 or later.

    -- DCP

    Diacritical Guest

  9. #8

    Default Re: CF MX6.1 Pro and Informix 7.31

    DCP,

    I have tried version 3.00.JC2 as well as version 2.21.JC5. The problem never
    goes away. (not sure what is JC5X2, here is the site that I had found for all
    JDBC drivers
    [url]http://www14.software.ibm.com/webapp/download/search.jsp?go=y&rs=ifxjdbc[/url], if
    this is not the correct site, please let me know)
    If I don't involve temp table, everything is working just fine. As soon as I
    touch temp table, I was errored out with 'method can be called only once'
    message.
    Many thanks for the reply.

    yc

    ywc 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