File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Error: Bigger Type Length Than Maximum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Error: Bigger Type Length Than Maximum" Watch "Error: Bigger Type Length Than Maximum" New topic
Author

Error: Bigger Type Length Than Maximum

Rajeev Iyer
Ranch Hand

Joined: Jun 19, 2002
Posts: 42
Hi,
I am coming across a typical error in oracle (oracle 9i), whenever fetching a large amount od data, as error is thrown, which is

Bigger Type Length Than Maximum

The error comes randomly and happens for large set of records.
Has this problem been faced by anyone before ?
Please help..
Rashid Darvesh
Ranch Hand

Joined: Feb 13, 2004
Posts: 189
i too have the same error. i am executing a query which generates 13,000 rows it gives tthe following excepotion

Exception in thread "main" java.lang.RuntimeException: SQLException Bigger type length than Maximum
at com.edmunds.xmlSearch.databaseLoader.VehicleProcessor.processDocuments(VehicleProcessor.java:125)
at com.edmunds.xmlSearch.databaseLoader.VehicleProcessor.main(VehicleProcessor.java:55)


Any idea , is it a driver problem or somethign i have to do at the database level

Rashid
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30294
    
150

Rashid,
Are any of those fields large? Maybe you are trying to put a really large number into an integer (or something like that) ?

There isn't an inherent limitation on the number of rows you can retrieve. You can prove this by picking a simple column and doing "select id, id, id, id, id, id, id from table". Just substitue the number of "id"s with the number of columns you have in your real query.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: Bigger Type Length Than Maximum