"Invalid message format" error from JDBC driver

Ask a Question related to PostgreSQL / PGSQL, Design and Development.

  1. #1

    Default "Invalid message format" error from JDBC driver

    Hello, all. I have a query that runs perfectly when I run it from
    pgAdmin3, but bombs when I run it from ColdFusion using the JDBC
    driver. I'm using postgres 7.4. The query uses dblink(), which I assume
    is the source of the problem.

    Can anyone provide me with any insight about why this would fail over
    JDBC? Thanks


    select *
    into cupahr_tblunit_20050120
    from dblink('dbname=tafkan', '

    select u.*, c1.className as Carnegie_Class, c2.className as
    Affiliation, c3.className as Level_of_Instruction

    from tblunit u
    inner join tblClassType ct1 on ct1.clientID = 33 and ct1.classTypeName
    = ''Carnegie Class''
    left join tblLinkUnitClass l1 on l1.unitID = u.unitID and
    l1.classTypeID = ct1.classTypeID
    left join tblClass c1 on c1.classID = l1.classID
    inner join tblClassType ct2 on ct2.clientID = 33 and ct2.classTypeName
    = ''Affiliation''
    left join tblLinkUnitClass l2 on l2.unitID = u.unitID and
    l2.classTypeID = ct2.classTypeID
    left join tblClass c2 on c2.classID = l2.classID
    inner join tblClassType ct3 on ct3.clientID = 33 and ct3.classTypeName
    = ''Level of Instruction''
    left join tblLinkUnitClass l3 on l3.unitID = u.unitID and
    l3.classTypeID = ct3.classTypeID
    left join tblClass c3 on c3.classID = l3.classID
    where u.clientid = 33



    ') as tblunit(

    unitid int4,
    clientid int4,
    groupid int4,
    logoid int4,
    shortname varchar(50),
    unitname varchar(150),
    address1 varchar(100),
    address2 varchar(100),
    city varchar(50),
    state varchar(50),
    zip varchar(10),
    plus4 varchar(4),
    country varchar(50),
    phone varchar(50),
    fax varchar(50),
    o_iid int4,
    o_environmentid int4,
    o_itype int4,
    importunitid int4,
    importgroupid int4,
    membertype char(10),
    membertypeid int4,
    isgroupsummary bool,
    lastupdate timestamp
    leon-pg@comvision.com Guest

  2. Similar Questions and Discussions

    1. Help! Can not save anything in Illustrator format - Error message "unknown error has occured"
      I am using Illustrator CS on XP, I was trying to save my work, it was a template and about 10 layers. I got the error message "unknown error has...
    2. error message from the JDBC DB2 driver
      I am trying to load 140,000 rows from a MS Access table to a DB2/Linux table. My application platform is Cold Fusion MX 7 on Windows XP. The MS...
    3. JDBC Query Using CONNX Driver Returning"COMPUTED_COLUMN"
      I'm performing a simple select JDBC query using a CONNX DB driver and the column names are returned as COMPUTED_COLUMN_1, COMPUTED_COLUMN_2, etc....
    4. inconsistent "invalid library" message
      Hi, I have compiled a dynamic loaded PHP module and sometimes I get a "invalid library (maybe not a PHP library)" message. I just have to...
    5. Websphere session persistence gets "protocol violation" using oracle jdbc driver
      Hi, We use oracle (8.1.7) as the session persistence database for our websphere 3.5.4 application server. After 15 min of running a stress test,...
  3. #2

    Default Re: "Invalid message format" error from JDBC driver

    [email]leon-pg@comvision.com[/email] writes:
    > Hello, all. I have a query that runs perfectly when I run it from
    > pgAdmin3, but bombs when I run it from ColdFusion using the JDBC
    > driver. I'm using postgres 7.4. The query uses dblink(), which I assume
    > is the source of the problem.
    > Can anyone provide me with any insight about why this would fail over
    > JDBC? Thanks
    If you didn't get any answers yet, try asking about it on pgsql-jdbc.
    Also, you might want to update your jdbc driver first, just to find out
    if the bug is already fixed.

    regards, tom lane

    ---------------------------(end of broadcast)---------------------------
    TIP 5: Have you checked our extensive FAQ?

    [url]http://www.postgresql.org/docs/faq[/url]

    Tom Lane 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