Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet error got minus one from read call
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


tanushri biswas
error got minus one from read call
1 Answer(s)      5 years and 9 months ago
Posted in : JSP-Servlet



Advertisement
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


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
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
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
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
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
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
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
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 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
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
error call to undefined function mysql_connect
error call to undefined function mysql_connect  what is error call to undefined function mysql_connect
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
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
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
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
Mysql Minus Operator
Mysql Minus Operator       Mysql Minus Query  return the calculated value from subtracting...: The Tutorial illustrate an example from 'Mysql Minus Query'. To understand and elaborate
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
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
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
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
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
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
when I run exiting project that time I got error, I want solution on it?
when I run exiting project that time I got error, I want solution on it?  Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start
i got illegal start of expression error , plese tell me the mistake where i did...
i got illegal start of expression error , plese tell me the mistake where i did...   import org.springframework.context.*; import java.util.*; public class MyListener implements ApplicationListener { public static void main
how to call javascript function from flex
how to call javascript function from flex  how to call javascript function from flex
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
call dll from java - JSP-Servlet
call dll from java  Hello all how to call dll file methods in java
Just Got An iPad? - The Range Of Protective Cases You Can Choose From
Just Got An iPad? - The Range Of Protective Cases You Can Choose From... making waves all around the globe, and if you have just got yourself one... it from damaged caused by rough surfaces and water. They are available
how to read from dictionary c
how to read from dictionary c  how to read elements from dictionary in c programming
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
 

 

 

DMCA.com