Hi Charles, Thanks for a quick fix! It works as expected now. I'm going to use this jar on Production then.
Best regards, Ivan Lagunov -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Charles Foster Sent: Friday, October 26, 2012 11:37 AM To: Ivan Lagunov Cc: [email protected] Subject: Re: Uploading empty xml critical bug Hi Ivan, Please try the following jar. If you try to insert empty content, the XML:DB API will now throw an Exception. You should not be able to insert document fragments which are completely empty. If you get errors about not being able to read data from an internal jar property file, please refresh your IDE. Please let me know how you get on. Regards, Charles On 25 October 2012 18:20, Ivan Lagunov <[email protected]> wrote: > Hello Sedna support and Charles Foster, > > > > I've faced a bug that led to Sedna database files corruption. As a > result, I had to restore the database from a backup. Luckily, it was > on test environment. > > > > The bug occurs when you try to upload an xml with empty contents and > then try to upload anything else within the same connection. > > Results: > > - Empty document is correctly uploaded into XML DB; > > - XML DB immediately goes down right after the second upload; > > - No errors in event.log; > > - org.xmldb.api.base.XMLDBException: IOException occoured > (Connection reset). > > > > Please find the Java code that reproduces the bug attached together > with java.log and event.log. I reproduced the bug both on Windows and > Linux Sedna builds 3.5.161. > > > > I consider it's a bug in both Sedna XML DB itself and Sedna Java > XML:DP API implementation by Charles Foster. I'd never expect XML DB > to go down immediately, even without any error messages in event.log. > Also it seems something inappropriate happens in Java API implementation. > > > > Charles, > > I understand that you stopped working on the Java API implementation > but I hope you'll consider fixing this bug as it's quite critical. > > > > Best regards, > > Ivan Lagunov > > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Sedna-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sedna-discussion
