Hi Chris, this *definitely* shouldn't happen. Could you try two things please: 1. Try with [BaseX 7.7 Beta] (close to release anyway) - we changed quite a bit with the logging, so chances are good that bug is gone anyway. As you're using BaseX as a jar, it should be a drop-in replacement. 2. Send me a complete example of the bug which I can execute (eg., including the `SESSION` declaration), so I can see what the problem was, anyway (and if it somehow could persist to the new version). Regards, Jens [BaseX 7.7 Beta]: http://files.basex.org/releases/latest/ -- Jens Erat [phone]: tel:+49-151-56961126 [mail]: mailto:email@jenserat.de [jabber]: xmpp:jabber@jenserat.de [web]: http://www.jenserat.de PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B Am 06.08.2013 um 10:36 schrieb <ext-christopher.harper@nokia.com>:
Hi @ll,
Re-sending from different address due to original message disappearing.
When running BaseX as a server and connecting to it my update statements are successful but when using BaseX from a jar inside the JVM – Database creation works fine – the update statements don't get committed – not visible to other clients or after restart – to the database.
Select queries work fine.
Code that – no exception – fails is:
final String xQueryUpdate = String.format("for $tab in doc('db')//tabs/tab[@id='%s'] return replace node $tab/content with %s", tabId, value); //$NON-NLS-1$ try { synchronized (SESSION) { new ClientQuery(xQueryUpdate, SESSION, SESSION.getOutputStream()).close(); // System.out.println(new XQuery(xQueryUpdate).execute(CONTEXT)); SESSION.notify(); } } catch (final IOException ioex) { ioex.printStackTrace(); }
When trying to use XQuery - In comment – I get:
org.basex.core.BaseXException: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.6 Java: Oracle Corporation, 1.7.0_10-ea OS: Mac OS X, x86_64 Stack Trace: java.nio.channels.OverlappingFileLockException sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)
What might be the issue or have I misunderstood something?
/ Chris _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk