java.sql.SQLException CLOB

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

  1. #1

    Default java.sql.SQLException CLOB

    I use a <CFSTOREDPROC with an Oracle 9i(R1) database and CFM MX7 standart
    edition (So i use a jdbc driver, oracle driver is only available in a
    enterprise version)

    The procedure return a clob.
    When the clob has a small len, the resultset is ok.
    When the clob is more big, I have a cfm error : java.sql.SQLException (see as
    under).
    I dont' have this bug with an enterprise version with jdbc driver using.
    I 've download the Updated DataDirect JDBC drivers (version 3.5) and the
    option Enable long text retrieval (CLOB) is enabled in the cfide administrator


    We can find the call as under :

    <CFSTOREDPROC procedure="PS_FACADE" datasource="#cnxCimsaDB#">
    <cfprocparam type = "inout" CFSQLType = "CF_SQL_CHAR" value="#strData#"
    VARIABLE="xmlResult">
    </CFSTOREDPROC>


    java.sql.SQLException: ORA-06502: PL/SQL : erreur num?rique ou erreur sur une
    valeur ORA-06512: ? ligne 1 at
    oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:134) at
    oracle.jdbc.ttc7.TTIo

    romain_soco Guest

  2. Similar Questions and Discussions

    1. How to access SQLException.getNextException?
      Hi, I'm getting this error occasionally in a production environment: Error Executing Database Query. Exception generated during defered local...
    2. java.sql.SQLException Error when Creating New DSN inCFMX Administrator
      I'm having a similar issue...did you ever get any news on how this was solved? Thanks, Heather
    3. java.sql.SQLException: ERROR: Relation 38868974 does not exist
      I've come across a problem which is only happening intermittently, and having a difficult time finding information to help me determine what is the...
    4. java.sql.SQLException: Could not position within a table
      Hi, I have an application running on Tomcat on Windows 2000 and the database is Informix running on a HP-UX box. Once in a while i get this...
    5. occasional SqlException 'a severe error occured...'
      Hello all, I face the problem that occasional in one WebApplication the following error occures: System.Data.SqlClient.SqlException: A severe...
  3. #2

    Default Re: java.sql.SQLException CLOB

    CF does not support connecting to Oracle with anything other than the
    Enterprise version. It has to do with the way the Oracle thin client driver
    defines CLOB columns.

    You will get no help from technical support either. All the more reason to
    use something other that CF if you ask me.

    JR


    jonwrob Guest

  4. #3

    Default Re: java.sql.SQLException CLOB

    You 're right. I 've read the article a guide to Using Stored Procedures with
    ColdFusion.
    [url]http://www.macromedia.com/devnet/coldfusion/articles/beg_storedproc_06.html[/url]

    I have the same problem in cfm standart 6 and I use the cfquery and oracle
    function to return the result set in a xml string. I'm going too do the same.
    Thanks

    romain_soco Guest

  5. #4

    Default Re: java.sql.SQLException CLOB

    <cfprocparam type = "inout" CFSQLType = "CF_SQL_CHAR" value="#strData#"
    ????????????????????

    you want to gather a CLOB? up to 4000 Characters i would expect that there is
    no problem - more then 4000 in a char type? Never!!
    Try CFSQLType = "CF_SQL_CLOB"


    sdittbrenner Guest

  6. #5

    Default Re: java.sql.SQLException CLOB

    I think sdittbrenner is right about the 4000 chars and CF_SQL_CLOB.
    >> CF does not support connecting to Oracle with anything other than the
    Enterprise version<<
    This statement is false. Thin, ODBC, alternative JDBC drivers like Inet are
    all acceptable with Standard version.

    Stephen Dupre
    Macromedia QA

    sdupre Guest

  7. #6

    Default Re: java.sql.SQLException CLOB

    >> CF does not support connecting to Oracle with anything other than the
    Enterprise version<<

    This statement is not false. CF does not support drivers other than the one
    that comes with enterprise. Try using one and reporting a problem to tech
    support. You'll find out just how much they don't support them.

    CF cannot use the thin client driver to return CLOB's greater than 64K. Talk
    to tech support about this and they will tell you they do not support 3rd party
    drivers. I have the email to prove it.

    JR


    jonwrob Guest

  8. #7

    Default Re: java.sql.SQLException CLOB

    In the documentation, cfm standart can connect to oracle throught a jdbc
    driver. It less efficient than the entreprise cfm driver.
    I use standart cfm with jdbc driver and an oracle function return a string
    more than 4000 char with the cfquery
    <cfquery name="query" datasource="#cnxCimsaDB#">
    select FN_ENTREE_XML('#strData#') return_value from dual
    </cfquery>
    I don't read a contraindication about it. Right ?

    romain_soco Guest

  9. #8

    Default Re: java.sql.SQLException CLOB

    to jonwrob
    >>CF does not support drivers other than the one that comes with enterprise.
    Try using one and reporting a problem to tech support. You'll find out just how
    much they don't support them.

    CF cannot use the thin client driver to return CLOB's greater than 64K. <<

    CF supports the Oracle JDBC driver from 10g R2 and R1 and also CLOB greater
    then 64K! We have used it to store base64-converted PDF (like Oracle
    references with 12MB) and other files up to 85MB.
    We have only a little problem to query a Oracle "date" column. CF doesn't
    return the time component (Hello Macromedia support ;-))




    sdittbrenner Guest

  10. #9

    Default Re: java.sql.SQLException CLOB

    I sense some difference of opinion on the meaning of the word "support." CF
    Professional may work with the JDBC driver, but it is not supported. Talk to
    Macromedia support about your date issue. If you tell them you're using CF
    Professional, rather than CF Enterprise, and using an Oracle provided driver,
    they will not help you. That is what not supported means.

    What I said about the thin client JDBC driver was true a few months ago when
    last I tried it. Perhaps there is a new version available from Oracle. I'll
    give it a try.

    JR

    jonwrob 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