possible bug
Thursday, 24 June 2010 · 5 messages · last reply 26 Jun 2010
SK
szabolcs kurdi24 Jun 2010 20:56 #
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 at 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
CG
Christian Grün25 Jun 2010 16:54 #
Quoted text · szabolcs kurdi · 5 lines
> 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
Quoted text · szabolcs kurdi · 37 lines
> 0 [SwingWorker-pool-3-thread-1] ERROR com.rosamez.jdvdkat.DbManager - > Could not optimize the db. > Possible bug? Feedback is welcome: info at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
SK
szabolcs kurdi25 Jun 2010 17:56 #
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
Quoted text · Christian Grün · 53 lines
On Fri, Jun 25, 2010 at 4:54 PM, Christian Grün <christian.gruen at 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 at 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 at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >
SK
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
Quoted text · Christian Grün · 53 lines
On Fri, Jun 25, 2010 at 4:54 PM, Christian Grün <christian.gruen at 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 at 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 at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >
CG
Christian Grün26 Jun 2010 00:05 #
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
Quoted text · szabolcs kurdi · 69 lines
On Fri, Jun 25, 2010 at 11:59 PM, szabolcs kurdi <szabolcs.kurdi at 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 at 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 at 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 at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >> >
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery