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

 
 


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

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 Pages:
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
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
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
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 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
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 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 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
i got an exception while accept to a jsp
i got an exception while accept to a jsp  type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception
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
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 data again - Java Beginners
data from txt file and send to DB.i'm using one button to call.  Hi...Read data again  Hey, i want to ask again about how to read data from txt, My DB: kd_div varchar(15), nm_div varchar(30), dep varchar(25
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
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 frame again - Java Beginners
read from jbutton1 in FrameA to FrameB,then i write "JAVA" in Jtextfield1(FrameB...call frame again  d, thank's for your answer, but i can't combine... can run ,first i have one frameA in this frame have one jTextfield1,one
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
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
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
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
read paragraph
read paragraph  how to read paragraph from one file to another file
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
how call ireports in jsp
how call ireports in jsp  please send me code any one for calling ireports in servlet-jsp program i am trying to call the ireports in servlet and jsp error is occurred exception: javax.servlet.ServletException
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
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 xml using java
read xml using java  <p>to read multiple attributes and elements from xml in an order.... ex :component name="csl"\layerinterfacefile="poo.c... for receiving signals from the actuation controller. Furthermore it might be possible
Call Picture into java
Call Picture into java  Morning sir, I want to view my picture(longblob) from My DB Mysql, I have a code like this. try { Class.forName... res = stat.executeQuery("select * from karyawan_ft where nik
Call Picture into java
Call Picture into java  Morning sir, I want to view my picture(longblob) from My DB Mysql, I have a code like this. try { Class.forName... res = stat.executeQuery("select * from karyawan_ft where nik
call by reference - Development process
call by reference  Hello , Is thre callbyvalue in java or not? can any one also say the difference between callbyvalue and callbyreference..., callByvalue When you call a method, the method sees a copy of any primitives passed
how to read the values for text and csv files and store those values into database in multiple rows..means one value for one row
how to read the values for text and csv files and store those values into database in multiple rows..means one value for one row  Hai, I need... file.it was stored in perticular directory now i have to read the stored(.csv
file read
file read  hi i am reaing from a file which has punjabi words. can some one help with me some code
java compilation error - Java Beginners
java compilation error  HELLO SIR,I HAVE ASKED QUESTION AND I GOT REPLY FOR THAT ALSO BUT I AM GETING COMPILATION ERROR UNCHECKED OR UNSAFE OPERATION PLZ RECTIFY THIS. HOW TO READ ELEMENTS FROM TWO ARRAYLIST AND PRINT
Hooking into the shutdown call - tutorial
Hooking into the shutdown call 2001-02-28 The Java Specialists' Newsletter [Issue 011] - Hooking into the shutdown call Author: Dr. Heinz M. Kabutz... interesting bit about setting the focus to a component besides the first one
Initialising Fields before Superconstructor call - Java Tutorials
Superconstructor call One of the biggest surprises that I encountered when..., and my message was always: "Don't call non-private methods from your... Initialising Fields before Superconstructor call 2004-03-19 The Java
error - JDBC
,i got a errors d:temp> java DBConnect db Connect Example... to the database"); conn.close(); System.out.println("Disconnected from...; Hi friend, Please add mysql connector jar file. Read for more
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 data again - Java Beginners
Pusat; i want data from txt file save to database like my DB with one button.but...Read data again  OK my problem some like my first question.First i... varchar(15), cab varchar(15), ket varchar(30) then i have a data from txt file
Just Got The New iPad? Getting Started?
with easy portability. The touch screen is a step up from the one on the iPhone...Just Got The New iPad? – Getting Started Since its release in early 2010, Apple’s iPad has been receiving rave reviews from consumers all over
how to call the array variable in scriptlet from javascript function
how to call the array variable in scriptlet from javascript function  This is the scriptlet code:- <% String[] abc={"saab","volvo","bmw","Benz","Porsche","Jaguar"}; %> Actually i want the array variable one by one
org.hibernate.MappingException: Could not read mappings from resource:
org.hibernate.MappingException: Could not read mappings from resource: ...: org.hibernate.MappingException: Could not read mappings from resource: hbmxml/login.hbm.xml please...("****************"); Query query = session.createQuery("from Login where id=1
call ireports
call ireports  how to call jrxml file in jsp or servlets pls give one example any one? please send one example any one
forward error message in struts
forward error message in struts  how to forward the error message got in struts from one jsp to other jsp?   Hello Friend, Use <%@ page errorPage="errorPage.jsp" %> in the first page that generates the exception
error call to undefined function mysql_connect
error call to undefined function mysql_connect  what is error call to undefined function mysql_connect
XML- read Text Mode - Java Error in Windows - reg. - Java Beginners
XML- read Text Mode - Java Error in Windows - reg.  Dear All I'm creating the code as read the XML file in BufferedReader method. Here I pasted the code below:. (*) First read the XML file using FileInputStream
Could not read mappings from resource: e1.hbm.xml - Hibernate
Could not read mappings from resource: e1.hbm.xml  ... not read mappings from resource: e1.hbm.xml Exception in thread "main...; } } /* THIS IS THE EMP_PROFILE*/ THERE FORE THE ERROR WHICH I HAVE GETTING 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
making call
making call  Hi, Is it possible to make a call from application with out quitting application in iOS 4?   hello, this the code for call...]; [phoneStr release];   hello, this the code for call to a number
programming error
programming error  I got an error when i did the following program the prg. is to "select the name from database when the age is given for the respective name" error i got is:SQL exception please give me the solution by providing
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