|
RE: Re: Flash <-> eXist communication problem: msg#00167text.xml.exist
Dear Wolfgang, >> server output, the update ought to have taken place, right? > > Yes. O.k., that's good to know at least...:) > You can add a debug statement to > src/org/exist/http/RESTServer.java to show > you the number of modifications processed. Just add > > LOG.debug(mods + " modifications processed."); > > around line 296 and recompile with build.sh clean ; build.sh I did just that at line 294 (296 was right after an exception handler, where the 'mods' variable was unknown). A code snippet of where I put it is: response = new Response(mods + " modifications processed."); LOG.debug(mods + " modifications processed."); } else throw new BadRequestException( "Unknown XML root element: " + root.getNodeName()); } catch (SAXException e) { This (after having been compiled and having restarted the server) doesn't seem to produce any additional debug output for the sent XUpdate. Should I perhaps put the debug statement at a different location? The server output is: 20 Sep 2004 13:57:58,854 [SocketListener-0] DEBUG (RESTServer.java [doPost]:273) - Got xupdate request: <?xml version="1.0"?><xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate" transID="IID94339640206:Mon Sep 20 13:57:58 GMT+0200 2004"><xupdate:update select="//park/points/point[@id='pt00004' ]/@x" opID="IID28857091907">12345</xupdate:update></xupdate:modifications> 20 Sep 2004 13:57:58,915 [SocketListener-0] DEBUG (XQueryContext.java [loadBuiltInModule]:354) - module http://www.w3.org/2003/05/xpath-functions loaded successfully. 20 Sep 2004 13:57:58,917 [SocketListener-0] DEBUG (XQueryContext.java [loadBuiltInModule]:354) - module http://exist-db.org/xquery/util loaded successfully. 20 Sep 2004 13:57:58,918 [SocketListener-0] DEBUG (XQueryContext.java [loadBuiltInModule]:354) - module http://exist-db.org/xquery/transform loaded successfully. 20 Sep 2004 13:57:58,920 [SocketListener-0] DEBUG (XQueryContext.java [loadBuiltInModule]:354) - module http://exist-db.org/xquery/xmldb loaded successfully. 20 Sep 2004 13:57:58,922 [SocketListener-0] DEBUG (XQueryContext.java [loadBuiltInModule]:354) - module http://exist-db.org/xquery/request loaded successfully. 20 Sep 2004 13:57:58,929 [SocketListener-0] DEBUG (Modification.java [select]:76) - generated AST: ( AbsoluteSlashSlash ( / ( / ( / park points ) point ( Pred ( = @ id pt00004 ) ) ) @ x ) ) 20 Sep 2004 13:57:58,967 [SocketListener-0] INFO (Modification.java [select]:83) - modification select: (ROOT/descendant-or-self::park/child::points/child::point[(attribute::id = pt00004)]/attribute::x) 20 Sep 2004 13:57:59,027 [SocketListener-0] INFO (Modification.java [select]:90) - found 1 for select; retrieving nodes... Cheers! Olaf ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | type 12 is not a valid type: 00167, rui21alberto |
|---|---|
| Next by Date: | RE: Re: Flash <-> eXist communication problem: 00167, Olaf Greve |
| Previous by Thread: | Re: Re: Flash <-> eXist communication problemi: 00167, Wolfgang Meier |
| Next by Thread: | RE: Re: Flash <-> eXist communication problem: 00167, Olaf Greve |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |