error got minus one from read call

Ads

 
 

Share on Google+Share on Google+

tanushri biswas
error got minus one from read call
1 Answer(s)      8 years ago
Posted in : JSP-Servlet
Ads
View Answers

February 13, 2009 at 6:19 AM


Hi friend,

Connection con = null;

String serverName="localhost";
String portNumber="1521";
String db="XE";
String url="jdbc:oracle:thin:@"+serverName+":"+portNumber+":"+db;
String driver = "oracle.jdbc.driver.OracleDriver";
String user="username";
String password="password";

try
{
Class.forName(driver);
con = DriverManager.getConnection(url,user,password);
}
catch(Exception e)
{
System.out.println(e.getMessage());
}

Thanks

Ads









Related Tutorials/Questions & Answers:
error got minus one from read call - JSP-Servlet
error got minus one from read call  hiiii while connecting my servlet to database im getting error called java.sql.SQLException: Io exception: Got minus one from a read call oracle.jdbc.dbaccess.DBError.throwSqlException
I GOT ERROR FOR MY PROJECT
I GOT ERROR FOR MY PROJECT  Dear Friend/ RoseIndia Team, Firstly I would to thank u Guys help me so many time.. I got error on my little project when running at server. please correctly my error Guys... ERROR CODE: "LOGIN
Advertisements
how to open one Jframe from main method call
how to open one Jframe from main method call  I have downloaded a snake game project in java. Initially the project contains three java files i.e " Engine.java Snake.java GameBoard.java And Engine.java have
Not able to call Web Service from Eclipse
Error was java.lang.ClassNotFoundException: org.apache.axis2.transport.http.AxisAdminServlet. Error was: Nov 18, 2009 10:46:49 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /Axis2HelloWorld threw
i got an error while compile this program manually.
i got an error while compile this program manually.  import javax.servlet.http.*; import org.apache.struts.action.*; public class ActionOne{ public...,struts jar files and i got an error in saveErrors() error Heading cannot find
call from java - JavaMail
call from java  Hi, how i will call servlet from java.. plz its... the java.net package to call a servlet from the java code... ----------------------------------------------- Read for more information. http
Call dll from java - JSP-Servlet
Call dll from java  Any one tell me how to call dll from java. Basically , i want read the cash m/c parameters(4,i.e i want to read the cash count) in java .For this i want to call a dll from java . Also any one have
database call from javaScript - Ajax
database call from javaScript  Dear All, In my project i have one... name. and i have to do this in javascript.How do i call database query ,if suppose i have selected two building from text area,i have to finish
Read from file java
Read from file java  How to Read from file java? What is the best method for a text file having a size of 10GB. Since i have to process the file one line at a time so tell me the very best method. Thank you
i have got error while compiling simple tag handler
i have got error while compiling simple tag handler   javac.servlet.jsp not found! tell me what are the jar files required to run simple tag handler...;it is : javax.servlet.jsp only but getting error wt is reason
error call to undefined function mysql_connect
error call to undefined function mysql_connect  what is error call to undefined function mysql_connect
error in accessing database - JSP-Servlet
error called Got minus one from read call although i hv feeded data to my...error in accessing database  hiiii im tanushri im tryng to connect my... to the database"); conn.close(); System.out.println("Disconnected from database
Call an array from multiple functions
Call an array from multiple functions  I am having two methods in this method i am getting array values from another class. i create same array name for accessing the method values(array) but it will access only one method values
JSP SQL Error
the following error "java.sql.SQLException: Io exception: Got minus one from a read call ". please help me out. <% try{ String Username...("select * from Users where USERID=? and PASSWORD=?"); ps.setString(0
how to call jsp from flex
how to call jsp from flex  hi, i want to know that how can i call a FLEX from JSP. . A good Example will be appreciated
how to call jsp from flex
how to call jsp from flex  Plz help me out to get JSP from FLEX.... I need your help.... Thanks for future
iPhone Make Call from App
iPhone Make Call from App  iPhone Make Call Programmatically I have created an application in iPhone that has the functionality to make Call from App. I am just wondering how to make a call programmatically... is there any
to read number from user
to read number from user  1)print the positive equivalent of the number 2) check if the no is integer or not 3) find the square root of the number 4) find the cube of the number
Itried all possible ways still getting thesame error
Itried all possible ways still getting thesame error  java.sql.SQLException: Io exception: Got minus one from a read call at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112
how to call javascript function from flex
how to call javascript function from flex  how to call javascript function from flex
how to read from dictionary c
how to read from dictionary c  how to read elements from dictionary in c programming
call dll from java - JSP-Servlet
call dll from java  Hello all how to call dll file methods in java
Java read lines from file
Java read lines from file  Any code example related to Java read lines from file? In my project there is requirement of reading the file line by line... to read the whole file in one go. So, in my case reading file line by line is only
Read from a window - Java Beginners
Read from a window  HI, I need to open a website and read the content from the site using Java script. Please suggest. Thanks
read data from Excel sheet
read data from Excel sheet  Hi, How to read data from an excel sheet using JSP. Thank you
Mysql Minus
Mysql Minus       Mysql Minus is used to see only those records from table which... an elaborative example from 'Mysql Minus'.To understand and grasp this example we create
Mysql Minus
Mysql Minus       Mysql Minus is used to see only those records from table which... example from 'Mysql Minus'. To understand and grasp this example we create
Mysql Date Minus Days
an example from Mysql Date Minus Days. To understand the example, we use the select... Mysql Date Minus Days       The Tutorial cover on Mysql Date Minus Days return you the day after
Fatal error: Call to undefined function session_register() in .php file
Fatal error: Call to undefined function session_register() in .php file  I upgraded the PHP and MySQL and in my application following error is coming: Fatal error: Call to undefined function session_register() in ...php file
Read Property file From Jmeter
Read Property file From Jmeter  Hi, I am running web driver script from Jmeter, but while reading property file I am getting "File Not Find Exception". Please tell me how to read ".properties" file from Jmeter
Mysql Minus Query
Mysql Minus Query       Mysql Minus Query is used to return the calculated value from subtracting... illustrate an example from 'Mysql Minus Query'. To understand and elaborate example we