Solved

JDBC database connection

Posted on 2004-04-30
3
760 Views
Last Modified: 2011-09-20
Can this be a problem with  JDBC database connection.

java.sql.SQLException: Io exception: Got minus one from a read call

0
Comment
Question by:smena
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Assisted Solution

by:yoren
yoren earned 50 total points
ID: 10960612
Looks like you lost a network connection mid-stream. Do you get this every time? If not, it might just have been a fluke.
0
 
LVL 23

Assisted Solution

by:rama_krishna580
rama_krishna580 earned 150 total points
ID: 10961597
may be explain u r problem clearly...?
may be problem using.....

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());

Properties prop = new Properties();
prop.put("user", "system");
prop.put("password","manager");
prop.put("oracle.net.encryption_client", "REQUIRED");
prop.put("oracle.net.encryption_types_client", "(DES40C)");
prop.put("oracle.net.crypto_checksum_client", "REQUESTED");
prop.put("oracle.net.crypto_checksum_types_client", "(MD5)");

Connection conexion = DriverManager.getConnection("jdbc:oracle:thin:
@maquina:1522:test", prop);
Statement sentencia = conexion.createStatement();
ResultSet rs = sentencia.executeQuery("SELECT * FROM GV$TABLESPACE");
ResultSetMetaData rsmd = rs.getMetaData();


R.K

0
 

Accepted Solution

by:
mvanzan earned 100 total points
ID: 10962776
You might have already found this, but I did a google search for that exception and found this answer on another forum.  It may not be the solution to your problem, but I thought I'd post it just in case.

Everything else I've found point more to an oracle network configuration issue, not a JDBC issue.  Good luck,

MVZ

>Steve Croft
>Jun 14 2003 12:30  Figured it out, mostly. The init.ora file had LOCAL_LISTENER >defined to a bogus listener alias. Kinda wierd that it would still work for
>some clients. Anyway, removing that and restarting the instance cleared it up.
 

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question