Hi!
I'm not 100% sure if it is a bug in BaseX or it's just me, but maybe it's better to post it. The error below happens after importing lots of xml files (~100mb) and then calling Optimize - on Arch linux, inside Virtualbox. The same process finishes without problems on Windows XP.
0 [SwingWorker-pool-3-thread-1] ERROR com.rosamez.jdvdkat.DbManager - Could not optimize the db. Possible bug? Feedback is welcome: info@basex.org BaseX 6.1.7: java.lang.ArrayIndexOutOfBoundsException: 0 org.basex.util.Num.size(Num.java:84) org.basex.index.ValueBuilder.writeWithNum(ValueBuilder.java:176) org.basex.index.ValueBuilder.merge(ValueBuilder.java:125) org.basex.index.ValueBuilder.build(ValueBuilder.java:75) org.basex.index.ValueBuilder.build(ValueBuilder.java:1) org.basex.core.proc.ACreate.index(ACreate.java:116) org.basex.core.proc.ACreate.index(ACreate.java:91) org.basex.core.proc.Optimize.stats(Optimize.java:90) org.basex.core.proc.Optimize.run(Optimize.java:35) org.basex.core.Proc.run(Proc.java:140) org.basex.core.Proc.exec(Proc.java:110) org.basex.core.Proc.execute(Proc.java:67) com.rosamez.jdvdkat.DbManager.optimize(DbManager.java:240) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:34) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:14) javax.swing.SwingWorker$1.call(SwingWorker.java:277) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) javax.swing.SwingWorker.run(SwingWorker.java:316) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:619)
Thanks!
Szabolcs
I'm not 100% sure if it is a bug in BaseX or it's just me, but maybe it's better to post it. The error below happens after importing lots of xml files (~100mb) and then calling Optimize - on Arch linux, inside Virtualbox. The same process finishes without problems on Windows XP.
Hm, can you reproduce this case? Did something go wrong while creating the db?
Thanks, Christian
0 [SwingWorker-pool-3-thread-1] ERROR com.rosamez.jdvdkat.DbManager - Could not optimize the db. Possible bug? Feedback is welcome: info@basex.org BaseX 6.1.7: java.lang.ArrayIndexOutOfBoundsException: 0 org.basex.util.Num.size(Num.java:84) org.basex.index.ValueBuilder.writeWithNum(ValueBuilder.java:176) org.basex.index.ValueBuilder.merge(ValueBuilder.java:125) org.basex.index.ValueBuilder.build(ValueBuilder.java:75) org.basex.index.ValueBuilder.build(ValueBuilder.java:1) org.basex.core.proc.ACreate.index(ACreate.java:116) org.basex.core.proc.ACreate.index(ACreate.java:91) org.basex.core.proc.Optimize.stats(Optimize.java:90) org.basex.core.proc.Optimize.run(Optimize.java:35) org.basex.core.Proc.run(Proc.java:140) org.basex.core.Proc.exec(Proc.java:110) org.basex.core.Proc.execute(Proc.java:67) com.rosamez.jdvdkat.DbManager.optimize(DbManager.java:240) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:34) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:14) javax.swing.SwingWorker$1.call(SwingWorker.java:277) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) javax.swing.SwingWorker.run(SwingWorker.java:316) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:619)
Thanks!
Szabolcs _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
I'm pretty sure I can (in fact I did at least three times), though with the recent virtualbox guest additions running the vm seems a pain in the back... Actually I had no other exceptions and db creation (a collection) was just fine and the db works too afterwards - if I have the time I'll try to decrease the amount of imported files and see if I can find a particular xml file and will send that.
Szabolcs
On Fri, Jun 25, 2010 at 4:54 PM, Christian Grün christian.gruen@gmail.com wrote:
I'm not 100% sure if it is a bug in BaseX or it's just me, but maybe it's better to post it. The error below happens after importing lots of xml files (~100mb) and then calling Optimize - on Arch linux, inside Virtualbox. The same process finishes without problems on Windows XP.
Hm, can you reproduce this case? Did something go wrong while creating the db?
Thanks, Christian
0 [SwingWorker-pool-3-thread-1] ERROR com.rosamez.jdvdkat.DbManager - Could not optimize the db. Possible bug? Feedback is welcome: info@basex.org BaseX 6.1.7: java.lang.ArrayIndexOutOfBoundsException: 0 org.basex.util.Num.size(Num.java:84) org.basex.index.ValueBuilder.writeWithNum(ValueBuilder.java:176) org.basex.index.ValueBuilder.merge(ValueBuilder.java:125) org.basex.index.ValueBuilder.build(ValueBuilder.java:75) org.basex.index.ValueBuilder.build(ValueBuilder.java:1) org.basex.core.proc.ACreate.index(ACreate.java:116) org.basex.core.proc.ACreate.index(ACreate.java:91) org.basex.core.proc.Optimize.stats(Optimize.java:90) org.basex.core.proc.Optimize.run(Optimize.java:35) org.basex.core.Proc.run(Proc.java:140) org.basex.core.Proc.exec(Proc.java:110) org.basex.core.Proc.execute(Proc.java:67) com.rosamez.jdvdkat.DbManager.optimize(DbManager.java:240) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:34) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:14) javax.swing.SwingWorker$1.call(SwingWorker.java:277) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) javax.swing.SwingWorker.run(SwingWorker.java:316) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:619)
Thanks!
Szabolcs _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi!
I can reproduce this all the time, but it only happens with the Sun jre (6u20-1) and when importing all the files (tried dividing the file set into 1/4th a time, but did not succeed); when I installed the openjdk (6.b18_1.8-1 / IcedTea6 1.8) - needed by Netbeans - the error did not occur. I'm sorry I couldn't be more precise. Linux was Arch 2.6.34 i686 inside Virtualbox 3.2.6r63112 on a Windows XP host.
Szabolcs
On Fri, Jun 25, 2010 at 4:54 PM, Christian Grün christian.gruen@gmail.com wrote:
I'm not 100% sure if it is a bug in BaseX or it's just me, but maybe it's better to post it. The error below happens after importing lots of xml files (~100mb) and then calling Optimize - on Arch linux, inside Virtualbox. The same process finishes without problems on Windows XP.
Hm, can you reproduce this case? Did something go wrong while creating the db?
Thanks, Christian
0 [SwingWorker-pool-3-thread-1] ERROR com.rosamez.jdvdkat.DbManager - Could not optimize the db. Possible bug? Feedback is welcome: info@basex.org BaseX 6.1.7: java.lang.ArrayIndexOutOfBoundsException: 0 org.basex.util.Num.size(Num.java:84) org.basex.index.ValueBuilder.writeWithNum(ValueBuilder.java:176) org.basex.index.ValueBuilder.merge(ValueBuilder.java:125) org.basex.index.ValueBuilder.build(ValueBuilder.java:75) org.basex.index.ValueBuilder.build(ValueBuilder.java:1) org.basex.core.proc.ACreate.index(ACreate.java:116) org.basex.core.proc.ACreate.index(ACreate.java:91) org.basex.core.proc.Optimize.stats(Optimize.java:90) org.basex.core.proc.Optimize.run(Optimize.java:35) org.basex.core.Proc.run(Proc.java:140) org.basex.core.Proc.exec(Proc.java:110) org.basex.core.Proc.execute(Proc.java:67) com.rosamez.jdvdkat.DbManager.optimize(DbManager.java:240) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:34) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:14) javax.swing.SwingWorker$1.call(SwingWorker.java:277) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) javax.swing.SwingWorker.run(SwingWorker.java:316) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:619)
Thanks!
Szabolcs _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Szabolcs,
thanks for giving more feedback on your problem. I'm afraid this one seems hard to fix, as it really looks like a platform/java version issue which we won't be able to reproduce. You could try to export the data to see if the data itself is corrupt, or if the problem only occurs if you try to run the optimize command.
Christian
On Fri, Jun 25, 2010 at 11:59 PM, szabolcs kurdi szabolcs.kurdi@gmail.com wrote:
Hi!
I can reproduce this all the time, but it only happens with the Sun jre (6u20-1) and when importing all the files (tried dividing the file set into 1/4th a time, but did not succeed); when I installed the openjdk (6.b18_1.8-1 / IcedTea6 1.8) - needed by Netbeans - the error did not occur. I'm sorry I couldn't be more precise. Linux was Arch 2.6.34 i686 inside Virtualbox 3.2.6r63112 on a Windows XP host.
Szabolcs
On Fri, Jun 25, 2010 at 4:54 PM, Christian Grün christian.gruen@gmail.com wrote:
I'm not 100% sure if it is a bug in BaseX or it's just me, but maybe it's better to post it. The error below happens after importing lots of xml files (~100mb) and then calling Optimize - on Arch linux, inside Virtualbox. The same process finishes without problems on Windows XP.
Hm, can you reproduce this case? Did something go wrong while creating the db?
Thanks, Christian
0 [SwingWorker-pool-3-thread-1] ERROR com.rosamez.jdvdkat.DbManager - Could not optimize the db. Possible bug? Feedback is welcome: info@basex.org BaseX 6.1.7: java.lang.ArrayIndexOutOfBoundsException: 0 org.basex.util.Num.size(Num.java:84) org.basex.index.ValueBuilder.writeWithNum(ValueBuilder.java:176) org.basex.index.ValueBuilder.merge(ValueBuilder.java:125) org.basex.index.ValueBuilder.build(ValueBuilder.java:75) org.basex.index.ValueBuilder.build(ValueBuilder.java:1) org.basex.core.proc.ACreate.index(ACreate.java:116) org.basex.core.proc.ACreate.index(ACreate.java:91) org.basex.core.proc.Optimize.stats(Optimize.java:90) org.basex.core.proc.Optimize.run(Optimize.java:35) org.basex.core.Proc.run(Proc.java:140) org.basex.core.Proc.exec(Proc.java:110) org.basex.core.Proc.execute(Proc.java:67) com.rosamez.jdvdkat.DbManager.optimize(DbManager.java:240) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:34) com.rosamez.jdvdkat.AddAllFilesWorker.doInBackground(AddAllFilesWorker.java:14) javax.swing.SwingWorker$1.call(SwingWorker.java:277) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) javax.swing.SwingWorker.run(SwingWorker.java:316) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:619)
Thanks!
Szabolcs _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de