473,608 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange Error retrieving data from a table - oracle jdbc

I am getting the following exception when accessing one of my tables.

java.lang.refle ct.InvocationTa rgetException:
java.lang.Array IndexOutOfBound sException
at oracle.sql.NUMB ER._fromLnxFmt( NUMBER.java:318 1)
at oracle.sql.NUMB ER.toBigDecimal (NUMBER.java:63 6)
at oracle.jdbc.dba ccess.DBConvers ion.NumberBytes ToBigDecimal(DB Conversio
n.java:2805)
at oracle.jdbc.dri ver.OracleState ment.getBigDeci malValue(Oracle Statement
..java:4539)
at oracle.jdbc.dri ver.OracleState ment.getObjectV alue(OracleStat ement.jav
a:5666)
at oracle.jdbc.dri ver.OracleState ment.getObjectV alue(OracleStat ement.jav
a:5622)
at oracle.jdbc.dri ver.OracleResul tSetImpl.getObj ect(OracleResul tSetImpl.
java:739)

On doing a step-wise debugging I found the column on which I am
getting the exception. It is a NUMBER (10,2) and all the rows had a
value of 0.

Has anyone encountered a similar problem?? Suggestion/Solution ??

Thanks
-Jim
Jul 17 '05 #1
0 2289

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3143
by: Paul | last post by:
hi, i'm getting the following error when i try to run the code below to connect to an oracle db: java.lang.ClassnotfoundException:oracle.jdbc.driver.OracleDriver java.sql.SQLException No suitable driver. i'm using jdk1.4 installed on a Windows NT 2000 machine. I don't have any oracle client installed on my machine. I'm basically connected to
4
13702
by: Corrine | last post by:
Hi, I am creating a global temporary table that is session-specific. I insert a BLOB into this table, and then select the BLOB from this table into a ResultSet. The ResultSet sees this BLOB object, and I am able to get the binary input stream from this blob. However, when I invoke InputStream.read(byte) on this input stream, I get the following exception: java.io.IOException: ORA-01410: invalid ROWID
1
10675
by: CM | last post by:
Hi, when i want connect me in my BD with a JSP (with this simple code), this exception is throw. Thank's for ur help Mathieu CODE of my JSP ---------------------
2
9232
by: FX NICOLAS | last post by:
Can anyone help me. I'm trying to retrieve data from DB2/AIX v8.1 using JDBC connectivity (Universal Driver - Type 4 - v1.1.67) . I get a recurrent error (after connection, apparently) : BEGIN TRACE_DIAGNOSTICS java.sql.SQLException SQL state = null Error code = -99999 Message = Unicode string can't convert
6
5636
by: meru | last post by:
Hi The highlighted below is the sample code I used for calling my stored procedure. Callable statement cstmt = conn.prepareCall( BEGIN STOREDPROCNAME(?,?,?);END;); ArrayDescriptor arrayDescriptor = new ArrayDescriptor(Name of type,cstmt.getConnection()); ARRAY acctList = new ARRAY(arrayDescriptor,conn, flrList.toArray()); cstmt.setInt(1,10); cstmt.setArray(2, acctList);
7
1854
by: mail2sakthi2003 | last post by:
Hi, Iam a begginer and i tried to establish the connection with my SQL DB through JAVA. The connection got established but i could not retrieve the data through the query. Could you check and tell whethr the query is correct. thank you. here is the program:: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); String url = "jdbc:odbc:sakthi"; con = (Connection)DriverManager.getConnection(url,"sakthi",""); ...
2
2166
by: gophersounds | last post by:
When I run this simple program I am not getting any data back. The program creates a database, creates a table, populates the table with some data, and then tries to read the data. However, no records are returned in the ResultSet. I verify through MySQL Query Browser that the database is created and populated. I've also been unable to retrieve records with other databases. Because I'm creating the database at the root I don't think admin...
0
1185
by: ramyareddy | last post by:
Hi All, i am using mssql 2005 and i am facing a strange problem. i have two databases A , B.When i try to insert one row in A from my application it is inserting the row but after that it is giving page not found exception when i try to retrieve the data to display form the same table. When i do the same operation on B from my applciation it is not throwing any error. 1)Is it to do with the lock levels set on the data base. can you...
2
5651
by: khalidanwar123 | last post by:
i am getting the following error while updating a clob field. ERROR java.sql.SQLException: Data size bigger than max size forthis type: 4003 19:28:27,499 ERROR at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) 19:28:27,499 ERROR at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222) 19:28:27,499 ERROR at oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:126) 19:28:27,499 ERROR at...
0
8059
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6815
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5475
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4023
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1328
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.