error got minus one from read call

error got minus one from read call

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
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
Advertisements
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
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
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
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
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
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
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
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
ModuleNotFoundError: No module named 'minus'
ModuleNotFoundError: No module named 'minus'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'minus..., ModuleNotFoundError: No module named 'minus' error will be solved. Thanks
error call to undefined function mysql_connect
error call to undefined function mysql_connect  what is error call to undefined function mysql_connect
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
Error from struts2.0
Error from struts2.0  Hi All, I run the struts2.0 i get this error please give the solution. My versions jre,jdk,and jvm are 1.6. Tomcat 6.0. My error: The requested resource (/struts2-blank-2.0.6/) is not available. I
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
Mysql Minus
Mysql Minus       Mysql Minus is used to see only those records from table which... you an elaborative example from 'Mysql Minus'. To understand and grasp
Mysql Minus
Mysql Minus       Mysql Minus is used to see only those records from table which... supports you an elaborative example from 'Mysql Minus'.To understand and grasp
how to read from dictionary c
how to read from dictionary c  how to read elements from dictionary in c programming
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
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 Date Minus Days
elaborate an example from Mysql Date Minus Days. To understand the example, we... Mysql Date Minus Days       The Tutorial cover on Mysql Date Minus Days return you the day after
Read Lines from text file
Read Lines from text file  Here's a brief desc of what my Java code does .. I'm using BufferedReader to read lines from a text files and split each... read from the text file and displays the output as desired. Unable to read the rest
How to read from stdin in python
How to read from stdin in python  Hi, I am writing a program in python which is suppose to take input from user. In Java it was easy..., In Python also you can easily take input from user. I will show you two examples
Read the value from XML in java
Read the value from XML in java  Hi, i have an XML with the following code. I need to get the path("D... the permissions on that file.So how can i read that value. This is little urgent
Mysql Minus Query
Mysql Minus Query       Mysql Minus Query is used to return the calculated value from subtracting... The Tutorial illustrate an example from 'Mysql Minus Query'. To understand
Mysql Minus Operator
Mysql Minus Operator       Mysql Minus Query  return the calculated value from subtracting..._TO_REPLACE_1 The Tutorial illustrate an example from 'Mysql Minus Query
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
call dll from java - JSP-Servlet
call dll from java  Hello all how to call dll file methods in java
cant call cmd from java - Java Beginners
cant call cmd from java   How can I call this from java to be executed by cmd ? ConvertXLS.EXE /S "C:\Extracto\*.CSV"/T "C:\Extracto\*.XLS" /C-4143 /F6 /M2 /R /V
how to call from pc to telephone in java - MobileApplications
how to call from pc to telephone in java  Hi, presently I am working on "make a call from pc to telephone" in java. I am unable to procceed how to start. I am new this technoloy.Please give me some valuable suggestions how
How to make phone call from web application
How to make phone call from web application  I'm creating an XHTML application, which can be viewed via IPhone or Blackberry. Application needs to make call to a specific number when user clicks a particular button. Please
Call servlet from javascript - JSP-Servlet
Call servlet from javascript  Hi in my application i have jsp... once file is uploaded i read the column and display it on in a grid on user screen when the user clicks submit button i have to pass this column values from
Return Value from One Form
Return Value from One Form  I have two buttons in main form client and bank.when i click client button new form will open, in this dedupe button is there.when i click dedupe button another form will open. i want to get a field
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 call the run method from another class?
How to call the run method from another class?  Sorry, if this is a stupid question. I would like to find out how to call the run method... want to call this from AdaugaComanda.java, so that changes can be seen
Unable to call .jrxml file from jsp
Unable to call .jrxml file from jsp  Hi, I am doing web application... plugin. After creating report in netbean when i call that jrxml file...()) { rsOfIncident =db1.getExecute("Select * from Incident
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need help, i am new to struts2 and hibernate. StudentRegistration.jsp <%@ page
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need help, i am new to struts2 and hibernate. StudentRegistration.jsp <%@ page
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need help, i am new to struts2 and hibernate. StudentRegistration.jsp <%@ page
Read Cookies from Servlet
Read Cookies from Servlet       This section illustrates you how to read cookies from Servlets. The Cookie Class provides an easy way to read Cookies. You can use getCookies() method
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
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 pass a string from one class to another
how to pass a string from one class to another  hi all, Good morning. I am trying to develop a coding pass a string from one class and declare... string from one class to another. import java.util.*; class A{ static String

Ads