Thread: Problem while using result set

Problem while using result set

From
"RaviShankar K"
Date:
Hello,
 
    I am getting the following error sometimes, while using resultset.next() .
    (As the OS is Linux Japanese vesrion , there are some special chars in the message.)
 
    An I/O error occured while reading from backend - Exception: java.net.SocketException: \??\??ヲヌ???「フ?。・?????: \??\??ヲ
ヌ???「フ?。・?????
Stack Trace:
 
java.net.SocketException: \??\??ヲヌ???「フ?。・?????: \??\??ヲヌ???「フ?。・?????
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:86)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
        at org.postgresql.PG_Stream.ReceiveChar(PG_Stream.java:141)
        at org.postgresql.Connection.ExecSQL(Connection.java:396)
        at org.postgresql.jdbc2.Statement.execute(Statement.java:294)
        at org.postgresql.jdbc2.Statement.executeQuery(Statement.java:59)
        at org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.j
ava:99)
        at java.util.TimerThread.mainLoop(Timer.java:435)
        at java.util.TimerThread.run(Timer.java:385)
End of Stack Trace
 
    Please give me your inputs.
 
Regards,
Ravi

RE: Problem while using result set

From
"Dave Cramer"
Date:
Ravi,
 
In order to help you; we will require more information;
 
The absolute best is a small snippet of code which reproduces the problem; but at the very least the code leading up to the rs.next, and following it
 
What version of postgres are you running? What version of the jdbc driver are you running, etc?
 
Dave
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of RaviShankar K
Sent: August 20, 2001 2:46 AM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Problem while using result set

Hello,
 
    I am getting the following error sometimes, while using resultset.next() .
    (As the OS is Linux Japanese vesrion , there are some special chars in the message.)
 
    An I/O error occured while reading from backend - Exception: java.net.SocketException: \??\??ヲヌ???「フ?。・?????: \??\??ヲ
ヌ???「フ?。・?????
Stack Trace:
 
java.net.SocketException: \??\??ヲヌ???「フ?。・?????: \??\??ヲヌ???「フ?。・?????
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:86)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
        at org.postgresql.PG_Stream.ReceiveChar(PG_Stream.java:141)
        at org.postgresql.Connection.ExecSQL(Connection.java:396)
        at org.postgresql.jdbc2.Statement.execute(Statement.java:294)
        at org.postgresql.jdbc2.Statement.executeQuery(Statement.java:59)
        at org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.j
ava:99)
        at java.util.TimerThread.mainLoop(Timer.java:435)
        at java.util.TimerThread.run(Timer.java:385)
End of Stack Trace
 
    Please give me your inputs.
 
Regards,
Ravi