Hello,
I've got 'Out of memory' error and corrupted database again, this time
it's for 6.3 version.
Steps:
1. Started server, started terminal client, checked there are no text
and attribute indexes.
2. Started my Java application that runs several tests on database:
querying, adding, removing.
3. Then I forgot to reopen terminal client and used the one that I
opened in Step 1.
4. Run optimize command for the collection and got error.
5. Cannot open the collection any more as I'm getting '…
[View More]Out of memory'.
It's clear that I shouldn't have used the terminal client that I opened
before execution of my Java application. But sometimes it's hard to
remember. And it's completely unacceptable that these actions result in
the corrupted database. You really should catch
ArrayIndexOutOfBoundsException everywhere in order to save database from
being corrupted.
Terminal client stacktrace:
> optimize
Possible bug? Feedback is welcome: basex-talk(a)mailman.uni-konstanz.de
BaseX 6.3:
java.lang.ArrayIndexOutOfBoundsException: -1
org.basex.data.PathSummary.add(PathSummary.java:68)
org.basex.core.cmd.Optimize.stats(Optimize.java:68)
org.basex.core.cmd.Optimize.run(Optimize.java:34)
org.basex.core.Command.run(Command.java:236)
org.basex.core.Command.exec(Command.java:218)
org.basex.core.Command.execute(Command.java:66)
org.basex.server.ServerProcess.run(ServerProcess.java:161)
> open products
Out of Main Memory.
Best regards,
Ivan
[View Less]
Hi,
we're observing that our BaseXServer 6.2.7 deadlocks. The stack traces are
here:
http://top.cs.vt.edu/~gback/bx/deadlock-6.2.7/basex-deadlock.txt
Could you take a look to see if these ring any bells?
Has this problem been addressed in a more recent version?
- Godmar
Hello,
I am doing setup for REST enabled basex database with procedure mentioned
in http://docs.basex.org/wiki/JAX-RX_API URL.
Configuring & starting server and running failed due to class not found, but
later I've modified the ./basexrest script as: (Included all the jars in lib
folder)
######START
#!/bin/bash
# Path to this script
PWD=`dirname $0`
# Paths to distributed files or source directories
BASEX=$PWD/BaseX.jar
BASEXAPI=$PWD/../lib/basex-api.jar
# Classpath
LIB=$PWD/../lib
…
[View More]LIB_CP=""
for JAR_FILE in $LIB/*.jar
do
LIB_CP="$LIB/$JAR_FILE:$LIB_CP"
done
CP=$BASEX:$BASEXAPI:$LIB_CP
# Options for virtual machine
VM=-Xmx1g
# Run REST server
java -cp "$CP" $VM org.basex.api.jaxrx.JaxRxServer "$@"
######END
after this, server started successfully, hit the URL -
http://localhost:8984/basex/jax-rx I am getting following exception:
java.lang.IncompatibleClassChangeError: Class
javax.ws.rs.core.Response$Status does not implement the requested interface
javax.ws.rs.core.Response$StatusType
at
com.sun.jersey.spi.container.ContainerResponse.getStatus(ContainerResponse.java:548)
at
com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.commitWrite(ContainerResponse.java:156)
at
com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:133)
at org.basex.io.BufferedOutput.flush(BufferedOutput.java:50)
at org.basex.io.PrintOutput.flush(PrintOutput.java:126)
at org.basex.data.XMLSerializer.cls(XMLSerializer.java:206)
at org.basex.data.Serializer.close(Serializer.java:219)
at org.basex.api.jaxrx.BXJaxRx$1.code(BXJaxRx.java:96)
at org.basex.api.jaxrx.BXCode.run(BXCode.java:53)
at org.basex.api.jaxrx.BXOutput.write(BXOutput.java:53)
at
com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71)
at
com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57)
at
com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:299)
Your help is appreciated.
Thanks, Pushkaraj
[View Less]
Hi
I shall export JSON file based on XML structures I have in my XQuery.
Here I found http://demo.exist-db.org/xquery/json-test.xql/source sample,
how eXistDB can produce JSON data.
It is like
import module namespace json="http://www.json.org";
04.
05.declare option exist:serialize "method=xhtml media-type=text/html";
let $xml1 :=
08.<root>
09.<h1>H</h1>
10.<p/>
11.<p>some text</p>
12.<h2>HH</h2>
13.</root>
<script type="text/…
[View More]javascript">
43.var data1 = {json:xml-to-json($xml1)};
BaseX does not provide this and I wonder, what options I have and what would
anyone recommend
1. building up plain text piece by piece by XQuery
2. using some Java lib for this (there are more, any practical experience
welcome)
3. Some other trick, which lives hidden to me (I already queried BaseX
wiki and no hit)
Jan
--
*Ing. Jan Vlčinský*
CAD programy
Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: jan.vlcinsky(a)gmail.com
http://cz.linkedin.com/in/vlcinsky
[View Less]
Given the well deserved growth of BaseX, I was wondering if there are plans
to improve bug/feature tracking capability, as well as the discussion
system.
For the first, I have used the popular JIRA system (
http://www.atlassian.com/). While I think it could use improvements, it's
pretty powerful and I think it would be better than what exists now. They
say that it's free to use for open source projects.
I have found the GNU mailing list system to be cumbersome to use, since it
is all email …
[View More]based, and the archives are not automatically searchable, nor
grouped in any way by subject. There are a number of free discussion board
systems, including at least one based on Java, and I think that would be a
big improvement.
I would be willing to help out with a transition to better tools if there is
interest.
[View Less]
Hi
Working in GUI is nice, I only like using shift+Delete control+Insert
shift+Insert
shortcuts for working with clipboard and currently it does not work in
XQuery window in BaseX GUI
See
http://en.wikipedia.org/wiki/Cut,_copy,_and_paste#Common_keyboard_shortcuts
I am working on MS Windows.
You see, I do care about your wish list not to let it empty for too long
time "-).
Best reagards
Jan Vlčinský
--
*Ing. Jan Vlčinský*
CAD programy
Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
…
[View More]tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: jan.vlcinsky(a)gmail.com
http://cz.linkedin.com/in/vlcinsky
[View Less]
Hi,
Since the queries to a collection over REST typically result in XML being
returned, is there a way to turn off the wrapping of results in
jax-rx:results and jax-rx;result elements?
Thanks.
Dear all at DBIS,
the SHOW BACKUPS command does not seem to work.
Is there a way to choose which backup to restore ?
best regards,
Fabrice Etanchaud
Senior Software Engineer
CT Corsearch / Edital, a Wolters Kluwer business
Berkenlaan 1
1831 Diegem
Belgium
<skype:fabrice.etanchaud?call> skype:fabrice.etanchaud
Get Skype <http://www.skype.com/go/download> and call me for free.
fetanchaud(a)edital.com <mailto:fetanchaud@edital.com>
<http://www.…
[View More]edital.com/> www.edital.com (website)
<http://www.ctcorsearch.com/> www.ctcorsearch.com (website)
Confidentiality Notice: This email and its attachments (if any) contain
confidential information of the sender. The information is intended only
for the use by the direct addressees of the original sender of this
email. If you are not an intended recipient of the original sender (or
responsible for delivering the message to such person), you are hereby
notified that any review, disclosure, copying, distribution or the
taking of any action in reliance of the contents of and attachments to
this email is strictly prohibited. If you have received this email in
error, please immediately notify the sender at the address shown herein
and permanently delete any copies of this email (digital or paper) in
your possession.
[View Less]
Dear all,
It seems there is an error in the BaseXGUI/Manage/Restore menu when
restoring a dabase whose name contains hyphens.
Changing hyphens to underscores solves the problem.
Maybe because hyphen was chosen as information separator in the backup
filename (mydbname-2011-01-31-11-54-20.zip).
best regards,
Fabrice Etanchaud
Senior Software Engineer
CT Corsearch / Edital, a Wolters Kluwer business
Berkenlaan 1
1831 Diegem
Belgium
<skype:fabrice.etanchaud?call> skype:fabrice.…
[View More]etanchaud
Get Skype <http://www.skype.com/go/download> and call me for free.
fetanchaud(a)edital.com <mailto:fetanchaud@edital.com>
<http://www.edital.com/> www.edital.com (website)
<http://www.ctcorsearch.com/> www.ctcorsearch.com (website)
Confidentiality Notice: This email and its attachments (if any) contain
confidential information of the sender. The information is intended only
for the use by the direct addressees of the original sender of this
email. If you are not an intended recipient of the original sender (or
responsible for delivering the message to such person), you are hereby
notified that any review, disclosure, copying, distribution or the
taking of any action in reliance of the contents of and attachments to
this email is strictly prohibited. If you have received this email in
error, please immediately notify the sender at the address shown herein
and permanently delete any copies of this email (digital or paper) in
your possession.
[View Less]
Hi
I was trying to use new Python API, looking forward to use binding
variables, but all my calls were failing
File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in
receive
return self.receive()
File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in
receive
return self.receive()
File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in
receive
return self.receive()
File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, …
[View More]in
receive
return self.receive()
File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 95, in
receive
self.init()
RuntimeError: maximum recursion depth exceeded
I compared old and new version of BaseXClient.py and noticed, that old calls
readString() were changed to receive()
And on line 96 is call to self.receive() inside of class method receive() so
never ending call is here.
Renaming receive call to readString as it used to be resolved the problem.
Attached is corrected Python file. If you want to call it as usual, you
shall rename it to BaseXClient.py
Jan
--
*Ing. Jan Vlčinský*
CAD programy
Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: jan.vlcinsky(a)gmail.com
http://cz.linkedin.com/in/vlcinsky
[View Less]