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



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

Have Programming Question? Ask it here!
 
 
 


tanushri biswas
error got minus one from read call
1 Answer(s)      5 years and 7 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
error call to undefined function mysql_connect
error call to undefined function mysql_connect  what is error call to undefined function mysql_connect
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 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... 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
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
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
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
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
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
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
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
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
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
how to read from dictionary c
how to read from dictionary c  how to read elements from dictionary in c programming
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
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
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
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
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
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 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
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
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
Diff ways to call a EJB from Servlet, JSP - Java Interview Questions
Diff ways to call a EJB from Servlet, JSP  How can I call EJB from Servlet or JSP
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
how to read values from java in xml?
how to read values from java in xml?  how to read values from java in xml
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
Advertisements
 

 

 

DMCA.com