error message-retrieve data from database

2279 byte By jin412a at 2007-11-27 6:29:11
I tried to retrieve data from oracle database. I got the following error message. I did compile the files without error. but when I run index.jsp I got the following error message. is it related with taglib Directives ? HTTP Status 500 -type Exception reportmessagedescription The server ...

Very Urgent !.......... Database connection with Netbeans IDE

303 byte By khan_vu2007a at 2007-11-27 6:32:00
Hi,I have some problem regarding SQL Server 2000 connection with Netbeans IDE. if someone give me his/her email address i will send you a doc file with screen shots where i explained every thing.it's very urgent and important becoz i am doing my final project ...

Java.Lang.ClassNotFoundException: com.mysql.jdbc.Driver

2045 byte By Hailuaa at 2007-11-27 6:32:09
Hello Folk,I'm writing a simple database using NetBean 5.5.1. The database is MySQL. When I tested my code, I got the error stated above in the Subject line. Please help me out here. Below is my code.public class sharedConnection {// Declare variable to established a Connection to the DBstatic ...

Return values as Out Parameters or as ResultSet return value?

467 byte By lightbulb4321a at 2007-11-27 6:32:46
If you'd like a stored procedure to return a value, what's the difference between returning it as an out parameter (SELECT returnValue INTO outParameter ...) or as the ResultSet of the stored procedure (SELECT returnValue ...)In either case, the value you need is returned correctly. Are there ...

Join query on 2 tables

193 byte By pandev84a at 2007-11-27 6:32:55
hello frnds,i am new to hibernate,how to write join qurey on 2 related tables..if any one knows then please reply me sooon...thanx and regards PanDev84

Splitting the SQl Statements

593 byte By Phoenioxa at 2007-11-27 6:32:56
Hi all,I have to synchronize two different databases in my application.Since this operation has many queries to execute, it will take lot time to complete. Once the operation is complete i have to redirect my page to some other page. The application will time out before redirecting(for some ...

problem with executeQuery statement

344 byte By Java@2007a at 2007-11-27 6:33:07
Hi all,I have one connectivity program, in which in the code shown below,ResultSet rs = stmt.executeQuery(" ");within double quotes I gave a sql query, which is very big, so I gave it in multiline but it is not accepting. its showing error...please help me in this...Thanks in ...

Query regarding the Class.forname method

320 byte By Manthan0a at 2007-11-27 6:33:19
why can抰 the following code do the job of 搇ocate, load, and link?which Class.forName(Driver name) is used to perform? org.gjt.mm.mysql.Driver driver = new org.gjt.mm.mysql.Driver();This would locate , load and link by executing the static ...

ID field req unique....

166 byte By pandev84a at 2007-11-27 6:33:27
Hi frnds ....is id field is required to unique for that table...please any one have idea then reply me...thanx in advance..PanDev84

dbmet.getColumns() will it return a new resultset with default attributes?

636 byte By vinney_143a at 2007-11-27 6:34:53
i have an applicaiton and my problem is this,i am creating a resultset (rs) with type_scroll_sentive and concur_updatable attributes and executing it to list the contents of a table. then dbmeta = conn.getMetaData();rs = dbmeta.getColumns(" "," "," ", "%");this rs is the same resultset which is ...

Does Hibernate supports multiple schemas connection ?

644 byte By cutouta at 2007-11-27 6:35:56
i want to connect to multiple schema's on the same data base using hibernate...my hbm.xml looks like this<hibernate-mapping><class name="SampleClass" table="SampleTable" schema="DynamicSchema">.....</hibernate-mapping>i need to enter the schema name as parameter and change it ...

help required

8268 byte By shahi.mcaa at 2007-11-27 6:36:01
i m getting the error in jsp working with Apache Tomcat HTTP Status 500 - --type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperExceptionat ...

help required

9776 byte By shahi.mcaa at 2007-11-27 6:36:02
i m getting the error in jsp working with Apache Tomcat HTTP Status 500 - --type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperExceptionat ...

how to invoke a pl/sql function from java, to return a table of element

426 byte By darveia at 2007-11-27 6:37:31
Hi everybody, as the title, i have a pl/sql funtion, like below:type t_record is record ( ...);type t_table is table of t_record;function() return t_table is ...Is there any way for java get to know this data type? so that in java code, we can do some thing like below or similiar:resultset rt = ...

displaying data

4310 byte By victoriousa at 2007-11-27 6:37:58
i have to retrieve data from a mysql database to then display it in input text boxes on a web page. but i cant retrieve all the data in a particular field. for example if the field value is 'united kingdom' only 'united' is being displayed. i can only retrieve the first word thats in the ...

sql forum or help with sql query

901 byte By Aknibbsa at 2007-11-27 6:38:37
I am trying to work on joining two tables. The part that has thrown me for a loop is that the two tables don't have one unique item that makes a row unique. It is accomplished by using several rows. Suppose I have tableOne and tableTwo. On a unique index tableOne has the columnns tableOne.colA ...

JavaDb Date Calculation

151 byte By DStaelens1a at 2007-11-27 6:38:58
In Oracle, to find the date seven days ago, you can do a select sysdate -7 from dual, Is there an equivalent in JavaDb?Thanks,Dave

Data source name

349 byte By Pradeep_Ranaa at 2007-11-27 6:41:02
Hi I want to ask thae while connecting with SQL server do we need the "Data Source Name" or just the "Database Name" in our java code. Actually I made the connectivity using ms access but now I want to connect with the Sql ServerCan anybody explain me the required changes.if someone explain it ...

jdbc problem with jre 1.5 from microsoft

234 byte By ochomoonyangoa at 2007-11-27 6:41:40
Hello All,I have observed that when u use jre 1.5 that comes with with windows XP 2006 , the application has login failures. I tested yhis for sybase.Has anyone encountered this? How did you solve it?ochomo

why we use DriverManger.getConnection for getting Connection

386 byte By suman_tejaa at 2007-11-27 6:41:51
Hi,I have a small doubt in getting JDBC Connection. why we use DriverManager.getConnection for getting connection object, why dont we use parmeterConstructor of the driver class for getting Connection Object using that driver Object. Can any please explain what is the reason behind getting ...

how to get DB server current time?

355 byte By j_shadinataa at 2007-11-27 6:42:31
i know we can get that info via calling a server function like now() in MySQL or getDate() in MsSQL.since the function name can be different between servers, we can not depend on that to build (database) portable application. so with java api which support cross platform (cross environtment), ...

database connectivey

933 byte By rohit_sharma76a at 2007-11-27 6:42:58
Hi I am facing a problemi want to connect to database named cns in my server using connection string in jsp: here is the code===============================================Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); //Make the Connection to the database. //Replace IP, Name, ...

Database location in Applet

414 byte By Paulo_LRa at 2007-11-27 6:43:07
Hi guysI'm not an expert in java, so sorry if i'm doing a simple question ;)I have a java applet that use the postgres jar file to connect to a database, my question is: how can the applet know the database location? if it was a static location would be embuted inside code, but could be any ...

Uploading data to database from front end...

172 byte By ravi-kumar-123a at 2007-11-27 6:43:13
Hi friends....I want to upload data in excel to MS sql data base..but i have to do that from front end(jsp)....please any one help me please....

JDBC version

364 byte By lincolnrosea at 2007-11-27 6:43:17
I am confuse about jdbc versions. Now currently we have jdbc 4.0. we study jdbc in java EE. But the API is SE. I read that java1.4 supports jdbc2.0,2.1 and jdbc 3.0 but optional jdbc2.1how do i change optional 2.0 version JDBC 3One thing that java 5 features tell us that java 5 supports ...

Fetching row affected by a query

1256 byte By flaaba at 2007-11-27 6:44:21
Hi =)I've my execQuery method here that returns a ResultSet of results.I would like to know the rows returned, but I cannot find a count, lenght or size method in the ResultSet class.縃oy can i count the number of Rows affected by a query? public ResultSet execQuery(String consulta){/** ...

resultset error

1687 byte By maccarteea at 2007-11-27 6:44:36
Hello,I seem to have a problem with the following code. It throws the following exception at the while statement if there is morethan one row returned from the first query:java.sql.SQLException: Operation not allowed after ResultSet closedtry{result = statement.executeQuery(query1);String ...

Oracle object

155 byte By cuongdeutsch2@yahoo.coma at 2007-11-27 6:45:57
so,i have problem with: drop typei have 2 new Objects typ : Student ref Profand Prof ref Studentso how can i drop these Object?

If Oracle DB Connection goes down,it should reconnect the DB again

1288 byte By OPMa at 2007-11-27 6:46:41
Hi All, I have a serious problem while running java process all the day. Sometimes I get following errors: 1. (***ERROR) java.sql.SQLException: OALL8 is in an inconsistent state. 2. (***ERROR) java.sql.SQLException: Io exception: Broken pipe(***ERROR) java.sql.SQLException: Io exception: ...

Help me out with java jeap,saveabend and singal 11 error!

127 byte By vinney_143a at 2007-11-27 6:47:41
what is a java heap? what is a saveabend file?what is singal 11 error? what may cause it? how to avoid it?

db connection open

215 byte By padikkathavana at 2007-11-27 6:47:50
Hi,normally we keep the database open always. why ?why we are not opening the db whenever we want to insert the data or retrieve the data from the db?what is the basic reason behind this?

Triggers and Procedures

469 byte By peachteaa at 2007-11-27 6:48:17
Hi Alli would like to know how to change a procedure (or routine) into a trigger?Currently i have a procedure that works when there is an insertion of data during a specific time.... how do i change it into a trigger so that whenever my java application run every 5 sec in a loop, and the ...

Change DB's path

582 byte By Funky_1321a at 2007-11-27 6:48:22
Hello!If I install ODBC driver on my Win XP for *.xls (Excel file) is there any way to connect to the database per JDBC-ODBC bridge and change the path name of the database (*.xls file) ? I have to make an appliaction that reads excel tables and changes some values. But the file excel file ...

Errror while connecting

2910 byte By rohit_sharma76a at 2007-11-27 6:50:20
I'm new to database connectivity through beans when i use the follwing code in my jsp file ====================================<%@ page language="Java" import="java.sql.*" %> <jsp:useBean id="db" scope="request" class="sqlbean.DbBean" /> <jsp:setProperty name="db" property="*" ...

where ID = ?... how can i get the ID?!

1445 byte By Alex1989a at 2007-11-27 6:50:22
i have this method used to update my contacts: public void updateContact(ContactPanel updatePanel){try{preparedStatement = connection.prepareStatement("update " + updatePanel.getName().toUpperCase().charAt(0) + " set NAME = ?, NUMBER = ?, EMAIL = ? where ID = ?");preparedStatement.setString(1, ...

Netbeans JDBC to MSSQL 2000 Problem / No Time Out or Error

1111 byte By BenderandMEa at 2007-11-27 6:52:21
Hello All,A Java/Netbeans Rookie question..(tried Google can't find answer)..Trying a New DB connection to MS SQL 2000 through Netbeans.Followed the instructions found HERE-> http://www.netbeans.org/kb/50/using-netbeans/dbconn.html#73418Runtime-->Drivers>New connectionI added the ...

[oracle 10g on SDK 1.6SE] Err Msg: Exhausted Resultset

1721 byte By workformeandyoua at 2007-11-27 6:53:20
I am having problem obtaining proper Resultset from a excuteQuery() method.i can successfully create a JDBC connection to local oracle database (on my computer) and excute a query on a table named "emp" which contains two records; however when i print out my Resultset using getInt(String ...

Stack Overflow when setting table cursor

2294 byte By devika78a at 2007-11-27 6:53:51
Hello I've been working on a project and have run into a slight problem I have a MySql database up and running and have my Java program connecting to it (with some help from this forum) but whenever i connect to the database I get a Stack Overflow Error from the DefaultListSelectionModel here ...

Error while connecting to Oracle 10g using OCI

3179 byte By Bnahirraoa at 2007-11-27 6:54:15
Hi all,I had developed the application in swing, where i am connecting to oracle 10g. Previously i had used Thin driver to connect to Oracle. It is working fine.But When i am trying to connect to oracle using OCI driver. It is giving the error like below.Exception in thread "AWT-EventQueue-0" ...

RMI TCP Connection

725 byte By sku585a at 2007-11-27 6:54:32
On two computers i have the same Java apllication. Every of these two apllications has its own database (Oracle 8). Few days ago I had a problem with starting one aplication. From then in log file of the aplication with a problem there is a message:INFO cleanup connection: RMI TCP ...

how to take get a oracle cursor into a resultset?

425 byte By MayankTya at 2007-11-27 6:54:40
i have written a procedure in oracle which returns a cursor, now when i am trying to get that cursor data inot a result set it's giving an exception -" java.sql.SQLException: ORA-01003: no statement parsed"....i also goggled for this error but and there it is wriiten something like, you have ...

Problem with connecting with Oracle 9i

661 byte By reedipa at 2007-11-27 6:56:37
Hello..I have oracle 9i on my comp...the problem is that i cannot connect the jdbc driver for my local host..i m pretty new to this concept of database managment.....I cannot resolve the porper URL for my comp,bcz either Exception in thread "main" java.sql.SQLException: No suitable driverat ...

variables path & classpath

3272 byte By bezzzza at 2007-11-27 6:57:32
Helloi'm using tomcat 5.x -> 5.5.12and editor: Textpadwhen compiling: these are the errors:C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:3: package javax.servlet does not existimport javax.servlet.*;^C:\Documents and Settings\Michelle & ...

No suitable driver found for...

1524 byte By Genomsarena at 2007-11-27 6:57:46
When I try to cennect to a mysql database I get this error:No suitable driver found for jdbc:mysql:127.0.0.1:3306/rehber/rehberThe Code is here:CN = DriverManager.getConnection("jdbc:mysql:" + Adresse + "/" + DataBase + "/rehber", UserName, Password);Error comes as exception:int a;try {CN = ...

Just want to connect to oracle8i

3324 byte By PhpDudea at 2007-11-27 6:58:04
I'm trying to connect to my oracle8i db, but it just cant succeed. I'm using the thin driver and I have registered classes12.zip in the classpath(Classpath = C:\oracle8i\jdbc\lib\classes12.zip)It failes in the ClassNotFoundException which means that it Failed to load JDBC driver. What have I ...

Convert util.ArrayList to sql.Array for setArray

309 byte By Madhu_GUa at 2007-11-27 6:58:23
Is there a way to convert an ArrayList to sql.Array? I need to pass this to the setArray method of prepare statement. Is there a class which implements the sql.Array interface? I tried using createDescriptor which is in oracle.sql but that is for oracle. I am using Sybase. Can someone help me ...

concurrent updates - how to control them ?

2341 byte By j2ee_satyaa at 2007-11-27 6:58:29
Hello, I am having two threads run an update statement. The statement is update someTable set status = 'In Progress' where ID = ? and statusDate = ? and status = ?Java code : int numberOfRowsUpdated = ps.executeUpdate();if (numberOfRowsUpdates > 0) {//This thread succesfully updated the ...

basic info on driver name, url

525 byte By vs777a at 2007-11-27 6:59:24
hi, I have java 6 installed as well as Oracle 10.2 on my windows XP. I am trying to write very simple app using jdbc connection. Sofirst I load jdbc driver : Class.forName(driverName); Where do we get the driver name from. I went as far as copying all the jars from ORACLE_HOME to JRE_HOME/lib ...

multiple queries execution with single connection

571 byte By jaimatadi@12a at 2007-11-27 6:59:48
hi, i have seven queries with the set of three query together, then two and then two with the single connection. now i want that first three queriest need to be executed, then next two.. If any exception is generated from these two queries then both these two queries should be rollback. After ...

ResultSet Problem

405 byte By Sana_Boya at 2007-11-27 7:00:17
Hi allWhen i used to get values from SQL database using result set it gives me an error saying that ResultSet is closed. I used the following code for that.Statement st;ResultSetrs;rs=st.executeQuery(queryStr);Is it ok if i open the resultSet before i use it? If that so then How can i open the ...