Re: [basex-talk] Debugger for Xuery
On Wed, 2013-03-06 at 14:27 -0800, bhupesh patel wrote: > Hello All, > > I am looking for any free/paid version of debugger for XQuery while > using BaseX server. Can anyone point me to any resources you guys know > of? There's some XQuery support in Oxygen, I'm told, although I haven't tried it; it uses Saxon rather than BaseX, though. I think StylusStudio may have something too. -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[basex-talk] BaseX 7.7 Beta
Dear all, we are very busy right now, finalizing Version 7.7 of BaseX. This is what you can expect from the upcoming release: – full XQuery 3.0 support, including enhanced (generalized) FLWOR expressions... http://docs.basex.org/wiki/XQuery_3.0 – a new XQUnit Module, which facilitates testing of complex XQuery applications: http://docs.basex.org/wiki/XQUnit_Module – improved concurrency control on database level: http://docs.basex.org/wiki/Transaction_Management You are invited to download the latest stable snapshot: http://files.basex.org/releases/latest/ Big thanks to our team member Leo for internalizing all the intricacies of XQuery 3.0, and providing a great implementation! And thank you all for letting BaseX grow and flourish, both as contributors, developers and users. Your feedback is welcome, Christian BaseX Team, 2013 ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Re: [basex-talk] Debugger for Xuery
Hi Marco, > I was wondering whether your "plans" related to this largely debated feature > could somehow be shared with the community in a sort of forum or blog. sure! Maybe our existing Wiki could be a good place to start from. I invite you and everyone who’s interested to start a new article, such as e.g.. http://docs.basex.org/wiki/XQuery_Debugging ..and fill it with initial thoughts, suggestions or questions. Thanks, Christian __ > would probably stimulate the contributions you're asking for. As I already > told I would be much interested in participating but since my time is > running away in several different fashions, having to learn about a narrowed > set of specs, technologies and architectural aspects could be useful. > Best, > Marco. > > > On 03/08/2013 01:00 PM, Christian Grün wrote: >> >> Hi Bhupesh, >> >> sorry for the delay. Currently, there is no BaseX XQuery debugger >> available, but we’ve started to make plans how the debugging infra >> structure would look like. >> >> Do you have some more concrete ideas what you want to debug, and how >> you would like to interact with the debugger? >> >> @all: we are also looking for people who are interested in sponsoring >> a BaseX debugging mode. If you would like to contribute, just give us >> a note! >> >> Best, >> Christian >> ___ >> >> On Wed, Mar 6, 2013 at 11:27 PM, bhupesh patel >> wrote: >>> >>> Hello All, >>> >>> I am looking for any free/paid version of debugger for XQuery while using >>> BaseX server. Can anyone point me to any resources you guys know of? >>> >>> Thanks, >>> >>> Bhupesh >>> >>> ___ >>> BaseX-Talk mailing list >>> BaseX-Talk@mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >> ___ >> BaseX-Talk mailing list >> BaseX-Talk@mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > > ___ > BaseX-Talk mailing list > BaseX-Talk@mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Re: [basex-talk] Bugreport: org.basex.server.ClientQuery.cache(ClientQuery.java:81)
Hi all, I apologize for the german post on this english mailinglist...So here we go in english: I have recently migrated my BaseX application from version 7.2 to 7.6 (and 7.6.1 Beta). The BaseX lib throws exceptions while running concurrent XQuery queries and updates (based on a threadpool), see the exceptions attached below (the specific numeric error-code changes slightly but the error occurs every time on the same line of code). The error itself seems to happen unter heavy concurrency (sequential queries have no problem) and not every time query executes. The application code is as follows (class de.infabswissarmy.control.XMLDBManagerBaseX.query): public ArrayList query(String inQuery, String[][] inArgs){ ClientSession mySession = null; ClientQuery myQuery = null; ArrayList tmpString = new ArrayList(); try { mySession = getClientSession(); myQuery = mySession.query(inQuery); // bind variable if (inArgs != null){ for (int i=0; i < inArgs.length; i++){ myQuery.bind("$" + inArgs[i][0], inArgs[i][1]); } } while (myQuery.more()){ // **exception is in this line ** tmpString.add(myQuery.next()); } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { if (myQuery != null){ try { myQuery.close(); } catch (BaseXException e) { // ignore } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return tmpString; } To be complete this is the used helper function: private static ClientSession getClientSession() throws IOException { ClientSession mySession = new ClientSession("localhost", 1984, "admin", "admin"); return mySession; } Version 7.2 is running without problems. In version 7.6 I have seen some rare Java heap space errors at the same location, and once I even saw a massive growth of the DB > 1GB (normal size would be 1MB), but this may be another error and I cannot reproduce it. I will try to deliver a selfcontained min-example, but this could be quite an effort to do (it will take some time to produce it). So I hope that you might find the problem with the delivered information. Many thanks once again for this great XML-DB and thanks in advance for your help! Bodo -- attached error stack with version 7.6.1 (in 7.6 the error occurs in row 79 instead of 81) org.basex.core.BaseXException: -146032 at org.basex.server.ClientQuery.cache(ClientQuery.java:81) at org.basex.server.Query.more(Query.java:74) at de.infabswissarmy.control.XMLDBManagerBaseX.query(XMLDBManagerBaseX.java:86) at de.infabswissarmy.control.XMLDBManagerBaseX.queryDoc(XMLDBManagerBaseX.java: 121) at de.infabswissarmy.control.QueryTask.httpQuery(QueryTask.java:180) at de.infabswissarmy.control.QueryTask.run(QueryTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) org.basex.core.BaseXException: 0 at org.basex.server.ClientQuery.cache(ClientQuery.java:81) at org.basex.server.Query.more(Query.java:74) at de.infabswissarmy.control.XMLDBManagerBaseX.query(XMLDBManagerBaseX.java:86) at de.infabswissarmy.control.XMLDBManagerBaseX.queryDoc(XMLDBManagerBaseX.java: 121) at de.infabswissarmy.control.QueryTask.httpQuery(QueryTask.java:180) at de.infabswissarmy.control.QueryTask.run(QueryTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) org.basex.core.BaseXException: java.lang.ArrayIndexOutOfBoundsException at org.basex.server.ClientQuery.cache(ClientQuery.java:81) at org.basex.server.Query.more(Query.java:74) at de.infabswissarmy.control.XMLDBManagerBaseX.query(XMLDBManagerBaseX.java:86) at de.infabswissarmy.control.XMLDBManagerBaseX.queryDoc(XMLDBManagerBaseX.java: 121) at de.infabswissarmy.control.QueryTask.httpQuery(QueryTask.java:180) at de.infabswissarmy.control.QueryTask.run(QueryTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ___ BaseX-Talk mailing list BaseX
Re: [basex-talk] Debugger for Xuery
Hi Christian, I was wondering whether your "plans" related to this largely debated feature could somehow be shared with the community in a sort of forum or blog. This would probably stimulate the contributions you're asking for. As I already told I would be much interested in participating but since my time is running away in several different fashions, having to learn about a narrowed set of specs, technologies and architectural aspects could be useful. Best, Marco. On 03/08/2013 01:00 PM, Christian Grün wrote: Hi Bhupesh, sorry for the delay. Currently, there is no BaseX XQuery debugger available, but we’ve started to make plans how the debugging infra structure would look like. Do you have some more concrete ideas what you want to debug, and how you would like to interact with the debugger? @all: we are also looking for people who are interested in sponsoring a BaseX debugging mode. If you would like to contribute, just give us a note! Best, Christian ___ On Wed, Mar 6, 2013 at 11:27 PM, bhupesh patel wrote: Hello All, I am looking for any free/paid version of debugger for XQuery while using BaseX server. Can anyone point me to any resources you guys know of? Thanks, Bhupesh ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[basex-talk] Bugreport: org.basex.server.ClientQuery.cache(ClientQuery.java:81)
Moin zusammen, ich habe meine Base-X Applikation von Version 7.2 auf 7.6 und versuchsweise auf 7.6.1 (Beta) umgestellt (embedded Base-X Server). Hierbei wirft die BaseX Lib bei parallelen XQuery Anfragen bei gleichzeitigen Inserts (ich verwende einen Threadpool) reproduzierbar die unten angehängte Fehlermeldung (in Variationen auch mit anderen Fehlercodes, aber immer an der gleichen Stelle/Zeile und beim gleichen Aufruf). Der Fehler tritt nicht bei jeder Anfrage auf (es scheint also eine bestimmte Concurrency Situation vorzuliegen). Die betreffende Funktion im Applikationscode ist wie folgt: public ArrayList query(String inQuery, String[][] inArgs){ ClientSession mySession = null; ClientQuery myQuery = null; ArrayList tmpString = new ArrayList(); try { mySession = getClientSession(); myQuery = mySession.query(inQuery); // bind variable if (inArgs != null){ for (int i=0; i < inArgs.length; i++){ myQuery.bind("$" + inArgs[i][0], inArgs[i][1]); } } while (myQuery.more()){ // ** hier wird die Exception geworfen ** tmpString.add(myQuery.next()); } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { if (myQuery != null){ try { myQuery.close(); } catch (BaseXException e) { // ignore } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return tmpString; } Hier noch getClientSession: private static ClientSession getClientSession() throws IOException { ClientSession mySession = new ClientSession("localhost", 1984, "admin", "admin"); return mySession; } In der Version 7.2 war noch alles ok. Wahlweise habe ich auch schon Java-Heap Space Fehler an gleicher Stelle bekommen. Und in einem Fall ist die Datenbank plötzlich auf über 1GB angewachsen (vielleicht ein anderes Problem). Bevor ich anfange hierzu einen Minimalcase zu produzieren (was vermutlich recht aufwändig werden wird, da der Fehler nur unter Lastbedingungen auftritt) liefere ich vorab schon mal diesen Fehlerbericht. Vielleicht fällt ja direkt ein Problem ins Auge Wie immer vielen Dank für diese Klasse XML-DB und viele Grüße, Bodo -- Anhang Fehlermeldungen mit Version 7.6.1 (in 7.6 war die Zeilennr: 79) org.basex.core.BaseXException: -146032 at org.basex.server.ClientQuery.cache(ClientQuery.java:81) at org.basex.server.Query.more(Query.java:74) at de.infabswissarmy.control.XMLDBManagerBaseX.query(XMLDBManagerBaseX.java:86) at de.infabswissarmy.control.XMLDBManagerBaseX.queryDoc(XMLDBManagerBaseX.java: 121) at de.infabswissarmy.control.QueryTask.httpQuery(QueryTask.java:180) at de.infabswissarmy.control.QueryTask.run(QueryTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) org.basex.core.BaseXException: 0 at org.basex.server.ClientQuery.cache(ClientQuery.java:81) at org.basex.server.Query.more(Query.java:74) at de.infabswissarmy.control.XMLDBManagerBaseX.query(XMLDBManagerBaseX.java:86) at de.infabswissarmy.control.XMLDBManagerBaseX.queryDoc(XMLDBManagerBaseX.java: 121) at de.infabswissarmy.control.QueryTask.httpQuery(QueryTask.java:180) at de.infabswissarmy.control.QueryTask.run(QueryTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) org.basex.core.BaseXException: java.lang.ArrayIndexOutOfBoundsException at org.basex.server.ClientQuery.cache(ClientQuery.java:81) at org.basex.server.Query.more(Query.java:74) at de.infabswissarmy.control.XMLDBManagerBaseX.query(XMLDBManagerBaseX.java:86) at de.infabswissarmy.control.XMLDBManagerBaseX.queryDoc(XMLDBManagerBaseX.java: 121) at de.infabswissarmy.control.QueryTask.httpQuery(QueryTask.java:180) at de.infabswissarmy.control.QueryTask.run(QueryTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Re: [basex-talk] Debugger for Xuery
Hi Bhupesh, sorry for the delay. Currently, there is no BaseX XQuery debugger available, but we’ve started to make plans how the debugging infra structure would look like. Do you have some more concrete ideas what you want to debug, and how you would like to interact with the debugger? @all: we are also looking for people who are interested in sponsoring a BaseX debugging mode. If you would like to contribute, just give us a note! Best, Christian ___ On Wed, Mar 6, 2013 at 11:27 PM, bhupesh patel wrote: > Hello All, > > I am looking for any free/paid version of debugger for XQuery while using > BaseX server. Can anyone point me to any resources you guys know of? > > Thanks, > > Bhupesh > > ___ > BaseX-Talk mailing list > BaseX-Talk@mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk