From: Lydia <ll...@so...> - 2004-04-30 16:31:41
|
> > Hi, > > > I have tested the latest development snapshot 20040423. But I still keep > > getting NullPointerException when updating some of the files. What I did > > was: > > > > 1. Started the database. > > 2. Created a new file, append a child Node which also had one or more child > > Notes. > > 3. Inserted the file to the database. > > 4. Shutdown the database. > > 5. Restarted the database. > > 6. Updated the file. > > > > But I could not update it successfully any more. (NOTE that I can update > > the file successfully if I do not restart the database after inserting.) > > The problem seemed like the DOMFile could not find the corresponding Node > > with the given GID. > > Ok, it seems there's still some caching problem here. I will try to figure > this out... However, it may help if you could provide a small example class > that shows what you were actually doing? > > Wolfgang > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > Hi, Wolfgang, I created a testing database which contains some huge xml files. I also created 2 testing java classes, one is called InsertTesting.java, and the other one is called UpdateTesting.java. Please tell me how I can send the files to you. To generate the error, just follow the following steps: 1. Start eXist db engine using my data. 2. Run InsertTesting which inserts an xml document. 3. Shutdown the eXist db engine. 4. Start the eXist again. 5. Run UpdateTesting which updates the xml document inserted by InsertTesting. You'll see the same error as what I got in my application. Regards, Lydia |