Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > ERROR: insuffi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1942 of 1997
Post > Topic >>

ERROR: insufficient data left in message

by seppwimmer@[EMAIL PROTECTED] (Robert Wimmer) Apr 28, 2008 at 10:51 PM

--_069e3534-4af6-460c-a9ae-5cf2802f71ab_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable





I always get the error "insufficient data left in message" running a
prepar=
ed statement via jdbc  executeQuery

the java statement

 "ResultSet rs =3D this.updateStatement.executeQuery();"    =20

results in the following error message :
java.sql.SQLException: ERROR: insufficient data left in message.=20

the insert statement is=20

INSERT INTO person.person (id, lastName, readOnly, birthDay, firstName) 
VA=
LUES(DEFAULT,?,?,?,?) RETURNING id

the server LOG file says the following

2008-04-29 00:15:24 CEST ERROR:  insufficient data left in message
2008-04-29
00:15:24 CEST STATEMENT:  INSERT INTO person.person (id, lastName,
readOnly, birthDay, firstName)  VALUES(DEFAULT,$1,$2,$3,$4) RETURNING id
2008-04-29 00:15:24 CEST LOG:  could not receive data from client:
Connecti=
on reset by peer

i
also tried this statement via the psql command line and it worked.=20
there is also a similar update statement that works perfect=20

###
 ResultSet rs =3D this.updateStatement.executeQuery();    =20
// and the record is updated
// log=20
2008-04-29 00:34:45 CEST LOG:  could not receive data from client:
Connecti=
on reset by peer
2008-04-29 00:34:45 CEST LOG:  unexpected EOF on client connection
###

i am using Postgres 8.2 and jdbc 3.0 for 8.2 (i also tried it with jdbc
4.0=
 but it  did not work either).=20

i have no idea what the problem is - can someone help me ?

regards sepp



_________________________________________________________________
Der Messenger plaudert gerne - egal ob zu zweit oder mit allen gemeinsam.
W=
illkommen in der Familie! Den neuen Windows Live Messenger jetzt
herunterla=
den!
http://get.live.com/messenger/overview/=

--_069e3534-4af6-460c-a9ae-5cf2802f71ab_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
..hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'>



I always get the error "<span></span>insufficient data left in message"
run=
ning a prepared statement via jdbc  executeQuery<br><br>the java
statement<=
br><br>&nbsp;"ResultSet rs =3D this.updateStatement.executeQuery();"
&nbsp;=
&nbsp;  <br><br>results in the following error message
:<br>java.sql.SQLExc=
eption: ERROR: insufficient data left in message. <br><br>the insert
statem=
ent is <br><br>INSERT INTO person.person (id, lastName, readOnly,
birthDay,=
 firstName)&nbsp; VALUES(DEFAULT,?,?,?,?) RETURNING id<br><br>the server
LO=
G file says the following<br><br>2008-04-29 00:15:24 CEST ERROR:&nbsp;
insu=
fficient data left in message<br>2008-04-29
00:15:24 CEST STATEMENT:&nbsp; INSERT INTO person.person (id, lastName,
readOnly, birthDay, firstName)&nbsp; VALUES(DEFAULT,$1,$2,$3,$4) RETURNING
=
id<br>2008-04-29 00:15:24 CEST LOG:&nbsp; could not receive data from
clien=
t: Connection reset by peer<br><br>i
also tried this statement via the psql command line and it worked.&nbsp;
there is also a similar update statement that works perfect
<br><br>###<br>=
&nbsp;ResultSet rs =3D this.updateStatement.executeQuery();
&nbsp;&nbsp;&nb=
sp; <br>// and the record is updated<br>// log <br>2008-04-29 00:34:45
CEST=
 LOG:&nbsp; could not receive data from client: Connection reset by
peer<br=
>2008-04-29 00:34:45 CEST LOG:&nbsp; unexpected EOF on client
connection<br=
>###<br><br>i am using Postgres 8.2 and jdbc 3.0 for 8.2 (i also tried it
w=
ith jdbc 4.0 but it&nbsp; did not work either). <br><br>i have no idea
what=
 the problem is - can someone help me ?<br><br>regards sepp<br><br><br><br
=
/><hr />Hohe Telefonrechnungen? Gratis Gespr=E4che von PC zu PC -
unlimitie=
rt mit dem Windows Live Messenger. <a
href=3D'http://get.live.com/messenger=
/overview/' target=3D'_new'>Hier klicken!</a></body>
</html>=

--_069e3534-4af6-460c-a9ae-5cf2802f71ab_--
 




 3 Posts in Topic:
ERROR: insufficient data left in message
seppwimmer@[EMAIL PROTECT  2008-04-28 22:51:20 
Re: ERROR: insufficient data left in message
oliver@[EMAIL PROTECTED]   2008-04-29 16:37:03 
Re: ERROR: insufficient data left in message
dmigowski@[EMAIL PROTECTE  2008-05-05 09:10:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 7:02:33 CDT 2008.