Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  Buy Now
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT Paradox
Eception: java.lang.NegativeArraySizeException
Bjarne Pedersen
2006-09-27 00:50:59

I get this exception:

at Source)
at com.hxtt.sql.paradox.l.a(Unknown Source)
at com.hxtt.sql.paradox.l.a(Unknown Source)
at com.hxtt.sql.paradox.l.a(Unknown Source)
at com.hxtt.sql.paradox.l.a(Unknown Source)
at com.hxtt.sql.s.a(Unknown Source)
at Source)
at com.hxtt.sql.c1.a(Unknown Source)
at com.hxtt.d.l.a(Unknown Source)
at Source)
at Source)
at Source)
at paradox.ProductsParadox.findAll(
at transfer.ToMySQL.checkProduct(
at Run.start(
at Run.main(

When i execute following code:

public ArrayList findAll() {
boolean rc = false;
ArrayList allArray = new ArrayList();

ProductsParadox curSale;
try {
Statement stmt = DBAccessParadox.getInstance().getStmt();
String qry =
"SELECT * FROM Varedata";
ResultSet rs = stmt.executeQuery(qry);

ProductsParadox curProduct;
while ( {
curProduct = new ProductsParadox();
rc = true;
curProduct.setAmountOnStock(rs.getDouble("P? Lager"));
curProduct.setUnitPrice(rs.getDouble("Salgspris detail"));
curProduct.setDealerPrice(rs.getDouble("Salgspris forhandler"));
if(allArray.size() == 4470)


} catch (Exception e) {

return allArray;


Its thrown at this specific line:
"while (" when i reach product 4470 and there is over 20K+ product

If you need it i can give you the source code and the database so you can try it for yourself. I dont know why it have stopped working, becouse it have been no problem for less than a week ago.

Greetings from Denmark
Bjarne Pedersen
Re:Eception: java.lang.NegativeArraySizeException
HXTT Support
2006-09-27 02:56:21
It seems that Varedata table has some unexpected data.

ftp site:
ftp user:
ftp password: (empty)
login mode: normal (not anonymous)
ftp port:21
upload directory: incoming
After upload, you can't see that upload file, but it has been upload.

then notify us through .
Re:Re:Eception: java.lang.NegativeArraySizeException
Bjarne Pedersen
2006-09-27 03:30:44
Im uploading it now
I have uploaded the entire source incl. the Varedata tables.
You have to change in following classes:
transfer.ToMySql - comment following:
// 1.0 Henter alle varer fra MySQL
Products allMySQLPro = new Products();"Finder varer fra mysql");
ArrayList mysqlArray = allMySQLPro.findAll();

paradox.DBAccessParadox - change this path:
dbUrl = "jdbc:Paradox:/E:/cdfinans";

I think that is the change what is needed.

I preciate your help very much :)

Re:Re:Re:Eception: java.lang.NegativeArraySizeException
HXTT Support
2006-09-27 03:46:35
That uploaded file have removed by HXTT at once. Now we have begun to test. Thanks for your patience.
Re:Re:Re:Re:Eception: java.lang.NegativeArraySizeException
HXTT Support
2006-09-27 04:49:13
That issue is resulted by some invalid lengthes information for a graphics column on null value in your db sample. Supported. BTW, it seems that your sample has more than 20,000 rows, and you're loading all data into ArrayList allArray.

>at paradox.ProductsParadox.findAll(
>at transfer.ToMySQL.checkProduct(
I guess that you're seeking some rows. You can use "where ...." to limit it since you have built 17 index expressions on that table.

We will delete your data sample from our machine after 24 hour, if we haven't received more report.

Please download the latest JDBC30 package.

Re:Re:Re:Re:Re:Eception: java.lang.NegativeArraySizeException
Bjarne Pedersen
2006-09-27 05:18:35
Cant you tell me excatly where it go wrong so i can dispatch the error to our supplier og the database ??

I have downloaded the last JDBC30 package this morning, but it did not help me.
Re:Re:Re:Re:Re:Re:Eception: java.lang.NegativeArraySizeException
HXTT Support
2006-09-27 05:28:07
>Cant you tell me excatly where it go wrong so i can dispatch the error to our
> supplier og the database ??
Because about 4 null values in your db samples has invalid lobLength, but that has been supported in the latest package. You needn' to to do special things.

>I have downloaded the last JDBC30 package this morning, but it did not help me.
Yeah. It's updated after received your sample. Please download the latest package.

Re:Re:Re:Re:Re:Re:Re:Eception: java.lang.NegativeArraySizeException
Bjarne Pedersen
2006-09-27 05:55:19
I have now DL the newest package and its working like a charm!!
Thats very fast response on a bug, im very impressed!
Thank you for a extrem good service!


Bjarne Pedersen

Search Key   Search by Last 50 Questions


Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap