Re: java.sql.SQLException: Io exception: Got minus one from a read call
- From: "Clive" <cliveswan@xxxxxxxxxxx>
- Date: 22 Jun 2006 15:28:25 -0700
Hi,
Progress since then, but still cannot connect to Oracle:
JDEVELOPER 10.1.3 With Oracle 10g express
Cannot see why, I cannot conect to Oracle?????
Thanks
clive
//
error message:
<%
//Using the request object to extract input values of registration page
String title = request.getParameter("title");
String link = request.getParameter("link");
String descp = request.getParameter("descp");
Connection con = null;
try {
//Load the class file for the driver
Class.forName("oracle.jdbc.driverOracleDriver");
//Establish a connection with the ODBC datasource
con =
DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:XE","sa","");
//The prepared statement to insert values in the table at runtime
PreparedStatement st=con.prepareStatement("insert into rsstb (title,
link, descprition) values (?, ?, ?)");
//The statement to insert appropriate values into the registration
table
st.setString(1, title);
st.setString(2, link);
st.setString(3, descp);
st.executeUpdate();
}
finally {
try {
if (con != null) {
// Close the connection
con.close();
}
}
.
- Follow-Ups:
- Re: java.sql.SQLException: Io exception: Got minus one from a read call
- From: jcsnippets.atspace.com
- Re: java.sql.SQLException: Io exception: Got minus one from a read call
- References:
- java.sql.SQLException: Io exception: Got minus one from a read call
- From: Clive
- Re: java.sql.SQLException: Io exception: Got minus one from a read call
- From: jcsnippets.atspace.com
- java.sql.SQLException: Io exception: Got minus one from a read call
- Prev by Date: Re: Deadlock occurs on my application frequently
- Next by Date: hsqldb vs. derby
- Previous by thread: Re: java.sql.SQLException: Io exception: Got minus one from a read call
- Next by thread: Re: java.sql.SQLException: Io exception: Got minus one from a read call
- Index(es):
Relevant Pages
|