Error while creating an attribute index with the latest from SVN
Tuesday, 17 August 2010 · 3 messages · last reply 19 Aug 2010
HV
Huib Verweij17 Aug 2010 12:00 #
Hi,
I am using the latest version from the SVN repo. It works mostly fine, but it reported that an attribute index wasn't present. Trying to add the Attribute index threw up this error.
Possible bug? Feedback is welcome: basex-talk at mailman.uni-konstanz.de BaseX 6.2.4:
java.lang.ArrayIndexOutOfBoundsException: 0
org.basex.util.Num.size(Num.java:97)
org.basex.index.ValueBuilder.write(ValueBuilder.java:193)
org.basex.index.ValueBuilder.merge(ValueBuilder.java:143)
org.basex.index.ValueBuilder.build(ValueBuilder.java:92)
org.basex.index.ValueBuilder.build(ValueBuilder.java:40)
org.basex.core.cmd.ACreate.index(ACreate.java:121)
org.basex.core.cmd.CreateIndex.run(CreateIndex.java:63)
org.basex.core.Command.run(Command.java:234)
org.basex.core.Command.exec(Command.java:217)
org.basex.core.Command.execute(Command.java:65)
org.basex.core.Command.execute(Command.java:77)
org.basex.gui.GUICommands$50.run(GUICommands.java:963)
I tried exporting everything and reloading it again, but strangely enough it couldn't parse one file that oXygen could parse without problems. Anyway, after all documents except one were reloaded into the db it reported a missing attribute index. I tried to add it again, but I got the same error again.
I know I'm not using a release version, I'm not complaining, just reporting.
Regards,
Huib.
CG
Christian Grün17 Aug 2010 23:01 #
Huib,
thanks as usual for the notification. This is by all means, as we try to keep all minor releases stable as well. Lots of questions:
– Which version did you run?
– Does the problem persist in the latest version (6.2.4)?
– Could you send us the file that's accepted by oXygen, or give us the error message?
– Can you reproduce the problem with single files, or does it only occur on the complete document set?
Christian
Quoted text · Huib Verweij · 33 lines
On Tue, Aug 17, 2010 at 12:00 PM, Huib Verweij <hhv at home.nl> wrote: > Hi, > > I am using the latest version from the SVN repo. It works mostly fine, but it reported that an attribute index wasn't present. Trying to add the Attribute index threw up this error. > > Possible bug? Feedback is welcome: basex-talk at mailman.uni-konstanz.de > BaseX 6.2.4: > java.lang.ArrayIndexOutOfBoundsException: 0 > org.basex.util.Num.size(Num.java:97) > org.basex.index.ValueBuilder.write(ValueBuilder.java:193) > org.basex.index.ValueBuilder.merge(ValueBuilder.java:143) > org.basex.index.ValueBuilder.build(ValueBuilder.java:92) > org.basex.index.ValueBuilder.build(ValueBuilder.java:40) > org.basex.core.cmd.ACreate.index(ACreate.java:121) > org.basex.core.cmd.CreateIndex.run(CreateIndex.java:63) > org.basex.core.Command.run(Command.java:234) > org.basex.core.Command.exec(Command.java:217) > org.basex.core.Command.execute(Command.java:65) > org.basex.core.Command.execute(Command.java:77) > org.basex.gui.GUICommands$50.run(GUICommands.java:963) > > I tried exporting everything and reloading it again, but strangely enough it couldn't parse one file that oXygen could parse without problems. Anyway, after all documents except one were reloaded into the db it reported a missing attribute index. I tried to add it again, but I got the same error again. > > I know I'm not using a release version, I'm not complaining, just reporting. > > Regards, > > Huib. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
HV
Huib Verweij19 Aug 2010 13:40 #
Hi Christian,
Op 19 aug 2010, om 13:18 heeft Christian Grün het volgende geschreven:
Quoted text · Christian Grün · 7 lines
> The stack trace indicates that the merge of several temporary index > instances causes problems. Regarding the SVN history, the current > index builder shouldn't have been changed that much since… 6.1.8? As a > shortcut, it might help to give the JVM different -Xmx values; 1gb > should be completely more than enough for 780 mb of input data. In the > GUI, you should be able to observe how much RAM is actually used > during index construction.
That was it. 1Gb didn't work, but 2Gb was enough to get it done in about 50 seconds.
Quoted text · Christian Grün · 6 lines
> >> I don't get anything else, if there's something I can do to debug it let me know. > > It might help if you could provide us with the original data (which > will of course be handled confidentially). It might take some time, > however, as I'm currently busy writing my thesis…
I can't supply you with the original data I'm afraid. That would breach my contract with the MPI.
Anyway, thanks for your help again and good luck with the thesis.
Huib.
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery