You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(22) |
Nov
(85) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(47) |
Feb
(127) |
Mar
(268) |
Apr
(78) |
May
(47) |
Jun
(38) |
Jul
(131) |
Aug
(221) |
Sep
(187) |
Oct
(54) |
Nov
(111) |
Dec
(84) |
2011 |
Jan
(152) |
Feb
(106) |
Mar
(94) |
Apr
(90) |
May
(53) |
Jun
(20) |
Jul
(24) |
Aug
(37) |
Sep
(32) |
Oct
(70) |
Nov
(22) |
Dec
(15) |
2012 |
Jan
(33) |
Feb
(110) |
Mar
(24) |
Apr
(1) |
May
(11) |
Jun
(8) |
Jul
(12) |
Aug
(37) |
Sep
(39) |
Oct
(81) |
Nov
(38) |
Dec
(50) |
2013 |
Jan
(23) |
Feb
(53) |
Mar
(23) |
Apr
(5) |
May
(19) |
Jun
(16) |
Jul
(16) |
Aug
(9) |
Sep
(21) |
Oct
(1) |
Nov
(2) |
Dec
(8) |
2014 |
Jan
(16) |
Feb
(6) |
Mar
(27) |
Apr
(1) |
May
(10) |
Jun
(1) |
Jul
(4) |
Aug
(10) |
Sep
(19) |
Oct
(22) |
Nov
(4) |
Dec
(6) |
2015 |
Jan
(3) |
Feb
(6) |
Mar
(9) |
Apr
|
May
(11) |
Jun
(23) |
Jul
(14) |
Aug
(10) |
Sep
(10) |
Oct
(9) |
Nov
(18) |
Dec
(4) |
2016 |
Jan
(5) |
Feb
(5) |
Mar
|
Apr
(2) |
May
(15) |
Jun
(2) |
Jul
(8) |
Aug
(2) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(2) |
Feb
(12) |
Mar
(22) |
Apr
(6) |
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(5) |
Oct
(2) |
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(3) |
Aug
|
Sep
(7) |
Oct
(19) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dmitriy S. <sha...@gm...> - 2011-02-27 12:30:13
|
On Sun, Feb 27, 2011 at 5:20 PM, Dmitriy Shabanov <sha...@gm...>wrote: > Dannes, original file size and option to restore original file as default > serialization behavior will resole a lot of issues, including this one ... > ( original file can be any but same each time) > > On Sun, Feb 27, 2011 at 3:47 PM, Wolfgang Meier <wol...@ex...>wrote: > >> > note: if the reimplementation does not work well enough, it is possible >> to >> > switch back..... >> > > You should be pessimistic, end of winter time issue :-) > ... shouldn't ... -) -- Dmitriy Shabanov |
From: Dmitriy S. <sha...@gm...> - 2011-02-27 12:20:09
|
Dannes, original file size and option to restore original file as default serialization behavior will resole a lot of issues, including this one ... ( original file can be any but same each time) On Sun, Feb 27, 2011 at 3:47 PM, Wolfgang Meier <wol...@ex...>wrote: > > note: if the reimplementation does not work well enough, it is possible > to > > switch back..... > You should be pessimistic, end of winter time issue :-) > This should not be an option. The old implementation could cause > severe locking issues if you had many users working on the same db. We > have this scenario in one of my projects. People managed to deadlock > the db twice a week. Since upgrading to the new version, those > problems disappeared completely. > -- Dmitriy Shabanov |
From: Wolfgang M. <wol...@ex...> - 2011-02-27 10:47:44
|
> note: if the reimplementation does not work well enough, it is possible to > switch back..... This should not be an option. The old implementation could cause severe locking issues if you had many users working on the same db. We have this scenario in one of my projects. People managed to deadlock the db twice a week. Since upgrading to the new version, those problems disappeared completely. Wolfgang |
From: Dannes W. <da...@ex...> - 2011-02-27 10:44:22
|
Michael, did the copy between two db instances work well for 1.4.0? On 27 Feb 2011, at 11:38 , Dannes Wessels wrote: > it is between two instances of the database ; this test was not part of the test scenario's. Most tests focussed on upload/download from local PC to server and vv. > > note: if the reimplementation does not work well enough, it is possible to switch back..... Kind regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Dannes W. <da...@ex...> - 2011-02-27 10:38:58
|
Ok, it is between two instances of the database ; this test was not part of the test scenario's. Most tests focussed on upload/download from local PC to server and vv. note: if the reimplementation does not work well enough, it is possible to switch back..... D. On 27 Feb 2011, at 11:25 , Dannes Wessels wrote: >> I keep reading that it's been tested with Finder and works. But I'm not finding that so in the case of drag and drop. The problem doesn't appear to be in the WebDAV implementation of Finder, just in its internal implementation of the copy command. >> >> These have been my observations. I'm at a loss as to why the developers have had different experiences. > > so the usecase is copy from/to the same database, or from db1 to db2 ? please be more explicit? Kind regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Dannes W. <da...@ex...> - 2011-02-27 10:25:47
|
Hi, On 27 Feb 2011, at 6:43 , Michael Westbay wrote: > I keep reading that it's been tested with Finder and works. But I'm not finding that so in the case of drag and drop. The problem doesn't appear to be in the WebDAV implementation of Finder, just in its internal implementation of the copy command. > > These have been my observations. I'm at a loss as to why the developers have had different experiences. so the usecase is copy from/to the same database, or from db1 to db2 ? please be more explicit? Kind regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Michael W. <wes...@ja...> - 2011-02-27 05:43:56
|
Вячеслав Седов wrote: look like xml files become wrong after reading - some files is > truncated, some with extra spaces - both cases is invalid - so further > copy failed > > [...] > > > i guess eXist report wrong size of xml files to netdrive - sometime > smaller - sometime bigger > To me, the problem appears to be that eXist is trying to return the documents in chunked form over HTTP, but some WebDAV clients don't support chunked/keep-alive protocol. So the first chuck gets returned, then the WebDAV client moves on to the next file. On OS/X 10.6 with two instances of eXist 1.4.1 I get: 1. Drag and drop folder from one to other in Finder - XML files get truncated. 2. $ cp -r /Volumes/db/myapp /Volumes/db-1/ Copies the directory and all contents with no problem. The strange thing is, both of these actions are using the same WebDAV client built into Finder. But the command-line cp command can handle the chunked (if that's what it is) files whereas drag and drop in Finder cannot. I had always thought that the GUI just called the command underneath, but I'm not inclined to believe that any more. I keep reading that it's been tested with Finder and works. But I'm not finding that so in the case of drag and drop. The problem doesn't appear to be in the WebDAV implementation of Finder, just in its internal implementation of the copy command. These have been my observations. I'm at a loss as to why the developers have had different experiences. -- Michael Westbay Writer/System Administrator http://www.japanesebaseball.com/ |
From: Dannes W. <di...@ex...> - 2011-02-26 18:57:33
|
Hmmm, what does this source forge message mean? "Querying mergeinfo requires version 3 of the FSFS filesystem schema; filesystem '/nfs/sf-svn-symlinks/exist/db' uses only version 1" can we upgrade? cheers Dannes |
From: Dannes W. <da...@ex...> - 2011-02-26 18:07:45
|
On 26 Feb 2011, at 17:11 , Dannes Wessels wrote: > Most webdav clients can fortunately deal with this in a right way, I added code for this as a work around. Soit seems that netdrive can't deal with this situation, nothing we can do about that. the fix is done in rev12825 : https://fisheye3.atlassian.com/changelog/exist?cs=12825 what is the fix about: it does not send the size of the resource during the download; a a result, under the hood, data is send ;chuncked' to the client, the client pulls bytes until the bytestream stops, For XML documents exist-db estimates the size of the XML, modulo 4 kb (the internal page size). The propfind will always return the modulo 4096 value, I guess netdrive uses this value for estimating the download size of the document. Netdrive should not no this, and fails handling this correct situation. :-( -- Dannes Wessels eXist-db Open Source Native XML Database e: da...@ex... w: http://www.exist-db.org |
From: Dannes W. <da...@ex...> - 2011-02-26 16:11:44
|
Dmitiriy is right, eXist does report XML document sizes in blocks of 4 kbyte ; that is the internal block size, as estimate for the real document size. The document size is fundamentally unknown, it depends e.g. on serialization parameters. Most webdav clients can fortunately deal with this in a right way, I added code for this as a work around. Soit seems that netdrive can't deal with this situation, nothing we can do about that. again, most other clients have been well tested and the interface just works so I guess it is a netdrive bug..... On 26 Feb 2011, at 16:57 , Dmitriy Shabanov wrote: > i guess eXist report wrong size of xml files to netdrive - sometime > smaller - sometime bigger -- Dannes Wessels eXist-db Open Source Native XML Database e: da...@ex... w: http://www.exist-db.org |
From: Dmitriy S. <sha...@gm...> - 2011-02-26 15:58:00
|
Confurm this as eXist bug, xml files size issue. I do have an example (trunk, webdav and linux svn client): http://animo.svn.sourceforge.net/viewvc/animo/trunk/animotron/site/smartims.org/uuid-4e06d996-283f-40c2-9909-4e11d05f7ef6.xml?revision=247&view=markup <http://animo.svn.sourceforge.net/viewvc/animo/trunk/animotron/site/smartims.org/uuid-4e06d996-283f-40c2-9909-4e11d05f7ef6.xml?revision=247&view=markup>File size: 4096 bytes and fixed one http://animo.svn.sourceforge.net/viewvc/animo/trunk/animotron/site/smartims.org/uuid-4e06d996-283f-40c2-9909-4e11d05f7ef6.xml?revision=251&view=markup <http://animo.svn.sourceforge.net/viewvc/animo/trunk/animotron/site/smartims.org/uuid-4e06d996-283f-40c2-9909-4e11d05f7ef6.xml?revision=251&view=markup>File size: 1668 bytes 2011/2/25 Вячеслав Седов <sch...@gm...> > look like xml files become wrong after reading - some files is > truncated, some with extra spaces - both cases is invalid - so further > copy failed > > look like copying of binary files work good - just netdrive show as > empty folder with 1500 docx files - but oxygenxml show all > > so problem reduced > > i guess eXist report wrong size of xml files to netdrive - sometime > smaller - sometime bigger > > 25 февраля 2011 г. 11:38 пользователь Вячеслав Седов > <sch...@gm...> написал: > > yep... but both binary and xml files not copied - copied only text > > files - with xquery > > > > well - tried xslt > > > > look differently > > > > 2011-02-25 11:30:40,777 [eXistThread-21] INFO (HttpManager.java > > [process]:146) - PUT :: > > http://localhost:8080/exist/webdav/db/metadata-filler-wk.xsl - > > http://localhost:8080/exist/webdav/db/metadata-filler-wk.xsl > > 2011-02-25 11:30:40,780 [eXistThread-21] DEBUG (PutHandler.java > > [process]:71) - process request: host: localhost:8080 url: > > /exist/webdav/db/metadata-filler-wk.xsl > > 2011-02-25 11:30:40,781 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' > > path='/db/metadata-filler-wk.xsl' > > 2011-02-25 11:30:40,782 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResourceType]:145) - Path: > > /db/metadata-filler-wk.xsl > > 2011-02-25 11:30:40,783 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResourceType]:198) - Resource > > type=NOT_EXISTING > > 2011-02-25 11:30:40,784 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResource]:124) - Resource does not > > exist: '/db/metadata-filler-wk.xsl' > > 2011-02-25 11:30:40,786 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' > > path='/db/metadata-filler-wk.xsl' > > 2011-02-25 11:30:40,787 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResourceType]:145) - Path: > > /db/metadata-filler-wk.xsl > > 2011-02-25 11:30:40,790 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResourceType]:198) - Resource > > type=NOT_EXISTING > > 2011-02-25 11:30:40,791 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResource]:124) - Resource does not > > exist: '/db/metadata-filler-wk.xsl' > > 2011-02-25 11:30:40,791 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' > > path='/db' > > 2011-02-25 11:30:40,792 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResourceType]:145) - Path: /db > > 2011-02-25 11:30:40,793 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResourceType]:198) - Resource > > type=COLLECTION > > 2011-02-25 11:30:40,797 [eXistThread-21] DEBUG (MiltonCollection.java > > [<init>]:108) - COLLECTION:/db > > 2011-02-25 11:30:40,797 [eXistThread-21] DEBUG (ExistCollection.java > > [<init>]:68) - New collection object for /db > > 2011-02-25 11:30:40,799 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' > > path='/db' > > 2011-02-25 11:30:40,799 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResourceType]:145) - Path: /db > > 2011-02-25 11:30:40,802 [eXistThread-21] DEBUG > > (ExistResourceFactory.java [getResourceType]:198) - Resource > > type=COLLECTION > > 2011-02-25 11:30:40,804 [eXistThread-21] DEBUG (MiltonCollection.java > > [<init>]:108) - COLLECTION:/db > > 2011-02-25 11:30:40,805 [eXistThread-21] DEBUG (ExistCollection.java > > [<init>]:68) - New collection object for /db > > 2011-02-25 11:30:40,805 [eXistThread-21] DEBUG (MiltonCollection.java > > [getCurrentLock]:332) - '/db' > > 2011-02-25 11:30:40,806 [eXistThread-21] DEBUG (MiltonResource.java > > [authenticate]:299) - Authenticating user admin for /db > > 2011-02-25 11:30:40,807 [eXistThread-21] DEBUG (MiltonResource.java > > [authenticate]:336) - User 'admin' has been authenticated. > > 2011-02-25 11:30:40,808 [eXistThread-21] INFO (MiltonResource.java > > [authorise]:343) - PUT true for /db > > 2011-02-25 11:30:40,808 [eXistThread-21] DEBUG (MiltonResource.java > > [authorise]:402) - URI is null > > 2011-02-25 11:30:40,809 [eXistThread-21] DEBUG (MiltonResource.java > > [authorise]:408) - User admin is authorized to write resource /db > > 2011-02-25 11:30:40,810 [eXistThread-21] DEBUG (PutHandler.java > > [processCreate]:158) - process: putting to: db > > 2011-02-25 11:30:40,810 [eXistThread-21] DEBUG (MimeUtil2.java > > [getMimeTypes]:550) - Getting MIME types for file name > > [metadata-filler-wk.xsl]. > > 2011-02-25 11:30:40,812 [eXistThread-21] DEBUG (MimeUtil2.java > > [getMimeTypes]:570) - Retrieved MIME types [application/octet-stream] > > 2011-02-25 11:30:40,813 [eXistThread-21] DEBUG (PutHandler.java > > [processCreate]:162) - PutHandler: creating resource of type: > > application/octet-stream > > 2011-02-25 11:30:40,813 [eXistThread-21] DEBUG (MiltonCollection.java > > [createNew]:256) - Create 'metadata-filler-wk.xsl' in '/db' > > 2011-02-25 11:30:40,814 [eXistThread-21] DEBUG (ExistCollection.java > > [createFile]:352) - Create 'metadata-filler-wk.xsl' in '/db' > > 2011-02-25 11:30:40,815 [eXistThread-21] DEBUG (ExistCollection.java > > [createFile]:411) - Inserting XML document 'application/xslt+xml' > > 2011-02-25 11:30:40,816 [eXistThread-21] DEBUG (Collection.java > > [validateXMLResourceInternal]:1196) - Scanning document > > /db/metadata-filler-wk.xsl > > 2011-02-25 11:30:40,817 [eXistThread-21] DEBUG (GrammarPool.java > > [retrieveInitialGrammarSet]:81) - Retrieve initial grammarset > > (http://www.w3.org/TR/REC-xml). > > 2011-02-25 11:30:40,818 [eXistThread-21] DEBUG (GrammarPool.java > > [retrieveInitialGrammarSet]:85) - Found 0 grammars. > > 2011-02-25 11:30:40,823 [eXistThread-21] DEBUG (GrammarPool.java > > [retrieveInitialGrammarSet]:81) - Retrieve initial grammarset > > (http://www.w3.org/TR/REC-xml). > > 2011-02-25 11:30:40,823 [eXistThread-21] DEBUG (GrammarPool.java > > [retrieveInitialGrammarSet]:85) - Found 0 grammars. > > 2011-02-25 11:30:40,824 [eXistThread-21] DEBUG (ExistCollection.java > > [createFile]:484) - Finished creation > > 2011-02-25 11:30:40,825 [eXistThread-21] ERROR (StandardFilter.java > > [process]:45) - process > > java.util.MissingResourceException: Can't find bundle for base name > > org.apache.xerces.impl.msg.XMLMessages, locale ru_RU > > at > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427) > > at > java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250) > > at java.util.ResourceBundle.getBundle(ResourceBundle.java:777) > > at > org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source) > > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > > at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown > Source) > > at > org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown > > Source) > > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > > Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown > Source) > > at > org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) > > at org.exist.collections.Collection$4.run(Collection.java:1112) > > at > org.exist.collections.Collection.validateXMLResourceInternal(Collection.java:1197) > > at > org.exist.collections.Collection.validateXMLResource(Collection.java:1106) > > at > org.exist.webdav.ExistCollection.createFile(ExistCollection.java:415) > > at > org.exist.webdav.MiltonCollection.createNew(MiltonCollection.java:261) > > at > com.bradmcevoy.http.http11.PutHandler.processCreate(PutHandler.java:163) > > at > com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:138) > > at > com.bradmcevoy.http.StandardFilter.process(StandardFilter.java:32) > > at com.bradmcevoy.http.FilterChain.process(FilterChain.java:21) > > at com.bradmcevoy.http.HttpManager.process(HttpManager.java:152) > > at > com.bradmcevoy.http.MiltonServlet.service(MiltonServlet.java:169) > > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534) > > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475) > > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) > > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516) > > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) > > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) > > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) > > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) > > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) > > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) > > at > org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:240) > > at > org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116) > > at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:47) > > at > org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:218) > > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) > > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473) > > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) > > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:479) > > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) > > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) > > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) > > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) > > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) > > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) > > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151) > > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) > > at org.eclipse.jetty.server.Server.handle(Server.java:352) > > at > org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) > > at > org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068) > > at > org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805) > > at > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) > > at > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426) > > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508) > > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34) > > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) > > at > org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451) > > at java.lang.Thread.run(Thread.java:619) > > > > 24 февраля 2011 г. 23:58 пользователь Dannes Wessels > > <da...@ex...> написал: > >> docx isn't a xml document right ? > >> On 24 Feb 2011, at 21:27 , Вячеслав Седов wrote: > >> > >> 2011-02-24 17:52:32,699 [eXistThread-23] DEBUG (ExistDocument.java > >> [<init>]:64) - New document object for /db/mcfr/content/000000605.docx > >> > >> Kind regards > >> Dannes > >> -- > >> eXist-db Native XML Database - http://exist-db.org > >> Join us on linked-in: http://www.linkedin.com/groups?gid=35624 > >> > >> > >> > >> > >> > >> > >> > >> > > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > -- Dmitriy Shabanov |
From: Dannes W. <da...@ex...> - 2011-02-25 11:35:56
|
Hi On Fri, Feb 25, 2011 at 12:06 PM, Lauri Hyttinen <lau...@ho...>wrote: > I had a System.exit() in one exception handler for some reason that I > cannot fathom. > :-) hmmmmmmmmmmmmmmmmmmmm :-) glad you found it D. -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Andrew W. <and...@gm...> - 2011-02-25 11:16:41
|
On 25 February 2011 10:44, Wolfgang Meier <wol...@ex...> wrote: > I don't really have any topics to discuss this week (we talked about > many things last week), so I'd suggest to skip the developer's > teleconference today - unless someone else wants to make a proposal. > If so, please shout. It would be really nice to get the EC2 issues resolved, and once done make a "Community AMI" instance available so its easy for others to get up running. I can do the latter if we can get past the admin password change problem. -- Andrew Welch http://andrewjwelch.com |
From: Lauri H. <lau...@ho...> - 2011-02-25 11:06:21
|
Well you hit the nail in the head. I had a System.exit() in one exception handler for some reason that I cannot fathom. So in fact the whole thread is pointless, java exceptions did NOT crash the server but my code caused the server to shutdown with the aforementioned System.exit. I guess I thought that I can do pretty much anything in the module and the server would not be affected. Or maybe it was some remnant of the time I tested the code without eXist. Learned a valuable lesson here :) Thank you very much! From: js...@in... To: lau...@ho...; exi...@li... Date: Thu, 24 Feb 2011 12:31:34 -0800 Subject: RE: [Exist-development] Java exceptions crash the server I'm not as familiar with the REST API, so I will have to defer this to others. You mentioned you have your own error handler. What does it do? This sure looks like something is shutting down the server in the normal way. You aren't calling System.exit() in your code anywhere, by chance? Jason Smith |
From: Wolfgang M. <wol...@ex...> - 2011-02-25 10:44:21
|
I don't really have any topics to discuss this week (we talked about many things last week), so I'd suggest to skip the developer's teleconference today - unless someone else wants to make a proposal. If so, please shout. Wolfgang |
From: Вячеслав С. <sch...@gm...> - 2011-02-25 09:26:28
|
look like xml files become wrong after reading - some files is truncated, some with extra spaces - both cases is invalid - so further copy failed look like copying of binary files work good - just netdrive show as empty folder with 1500 docx files - but oxygenxml show all so problem reduced i guess eXist report wrong size of xml files to netdrive - sometime smaller - sometime bigger 25 февраля 2011 г. 11:38 пользователь Вячеслав Седов <sch...@gm...> написал: > yep... but both binary and xml files not copied - copied only text > files - with xquery > > well - tried xslt > > look differently > > 2011-02-25 11:30:40,777 [eXistThread-21] INFO (HttpManager.java > [process]:146) - PUT :: > http://localhost:8080/exist/webdav/db/metadata-filler-wk.xsl - > http://localhost:8080/exist/webdav/db/metadata-filler-wk.xsl > 2011-02-25 11:30:40,780 [eXistThread-21] DEBUG (PutHandler.java > [process]:71) - process request: host: localhost:8080 url: > /exist/webdav/db/metadata-filler-wk.xsl > 2011-02-25 11:30:40,781 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' > path='/db/metadata-filler-wk.xsl' > 2011-02-25 11:30:40,782 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResourceType]:145) - Path: > /db/metadata-filler-wk.xsl > 2011-02-25 11:30:40,783 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResourceType]:198) - Resource > type=NOT_EXISTING > 2011-02-25 11:30:40,784 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResource]:124) - Resource does not > exist: '/db/metadata-filler-wk.xsl' > 2011-02-25 11:30:40,786 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' > path='/db/metadata-filler-wk.xsl' > 2011-02-25 11:30:40,787 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResourceType]:145) - Path: > /db/metadata-filler-wk.xsl > 2011-02-25 11:30:40,790 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResourceType]:198) - Resource > type=NOT_EXISTING > 2011-02-25 11:30:40,791 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResource]:124) - Resource does not > exist: '/db/metadata-filler-wk.xsl' > 2011-02-25 11:30:40,791 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' > path='/db' > 2011-02-25 11:30:40,792 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResourceType]:145) - Path: /db > 2011-02-25 11:30:40,793 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResourceType]:198) - Resource > type=COLLECTION > 2011-02-25 11:30:40,797 [eXistThread-21] DEBUG (MiltonCollection.java > [<init>]:108) - COLLECTION:/db > 2011-02-25 11:30:40,797 [eXistThread-21] DEBUG (ExistCollection.java > [<init>]:68) - New collection object for /db > 2011-02-25 11:30:40,799 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' > path='/db' > 2011-02-25 11:30:40,799 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResourceType]:145) - Path: /db > 2011-02-25 11:30:40,802 [eXistThread-21] DEBUG > (ExistResourceFactory.java [getResourceType]:198) - Resource > type=COLLECTION > 2011-02-25 11:30:40,804 [eXistThread-21] DEBUG (MiltonCollection.java > [<init>]:108) - COLLECTION:/db > 2011-02-25 11:30:40,805 [eXistThread-21] DEBUG (ExistCollection.java > [<init>]:68) - New collection object for /db > 2011-02-25 11:30:40,805 [eXistThread-21] DEBUG (MiltonCollection.java > [getCurrentLock]:332) - '/db' > 2011-02-25 11:30:40,806 [eXistThread-21] DEBUG (MiltonResource.java > [authenticate]:299) - Authenticating user admin for /db > 2011-02-25 11:30:40,807 [eXistThread-21] DEBUG (MiltonResource.java > [authenticate]:336) - User 'admin' has been authenticated. > 2011-02-25 11:30:40,808 [eXistThread-21] INFO (MiltonResource.java > [authorise]:343) - PUT true for /db > 2011-02-25 11:30:40,808 [eXistThread-21] DEBUG (MiltonResource.java > [authorise]:402) - URI is null > 2011-02-25 11:30:40,809 [eXistThread-21] DEBUG (MiltonResource.java > [authorise]:408) - User admin is authorized to write resource /db > 2011-02-25 11:30:40,810 [eXistThread-21] DEBUG (PutHandler.java > [processCreate]:158) - process: putting to: db > 2011-02-25 11:30:40,810 [eXistThread-21] DEBUG (MimeUtil2.java > [getMimeTypes]:550) - Getting MIME types for file name > [metadata-filler-wk.xsl]. > 2011-02-25 11:30:40,812 [eXistThread-21] DEBUG (MimeUtil2.java > [getMimeTypes]:570) - Retrieved MIME types [application/octet-stream] > 2011-02-25 11:30:40,813 [eXistThread-21] DEBUG (PutHandler.java > [processCreate]:162) - PutHandler: creating resource of type: > application/octet-stream > 2011-02-25 11:30:40,813 [eXistThread-21] DEBUG (MiltonCollection.java > [createNew]:256) - Create 'metadata-filler-wk.xsl' in '/db' > 2011-02-25 11:30:40,814 [eXistThread-21] DEBUG (ExistCollection.java > [createFile]:352) - Create 'metadata-filler-wk.xsl' in '/db' > 2011-02-25 11:30:40,815 [eXistThread-21] DEBUG (ExistCollection.java > [createFile]:411) - Inserting XML document 'application/xslt+xml' > 2011-02-25 11:30:40,816 [eXistThread-21] DEBUG (Collection.java > [validateXMLResourceInternal]:1196) - Scanning document > /db/metadata-filler-wk.xsl > 2011-02-25 11:30:40,817 [eXistThread-21] DEBUG (GrammarPool.java > [retrieveInitialGrammarSet]:81) - Retrieve initial grammarset > (http://www.w3.org/TR/REC-xml). > 2011-02-25 11:30:40,818 [eXistThread-21] DEBUG (GrammarPool.java > [retrieveInitialGrammarSet]:85) - Found 0 grammars. > 2011-02-25 11:30:40,823 [eXistThread-21] DEBUG (GrammarPool.java > [retrieveInitialGrammarSet]:81) - Retrieve initial grammarset > (http://www.w3.org/TR/REC-xml). > 2011-02-25 11:30:40,823 [eXistThread-21] DEBUG (GrammarPool.java > [retrieveInitialGrammarSet]:85) - Found 0 grammars. > 2011-02-25 11:30:40,824 [eXistThread-21] DEBUG (ExistCollection.java > [createFile]:484) - Finished creation > 2011-02-25 11:30:40,825 [eXistThread-21] ERROR (StandardFilter.java > [process]:45) - process > java.util.MissingResourceException: Can't find bundle for base name > org.apache.xerces.impl.msg.XMLMessages, locale ru_RU > at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427) > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250) > at java.util.ResourceBundle.getBundle(ResourceBundle.java:777) > at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) > at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown > Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) > at org.exist.collections.Collection$4.run(Collection.java:1112) > at org.exist.collections.Collection.validateXMLResourceInternal(Collection.java:1197) > at org.exist.collections.Collection.validateXMLResource(Collection.java:1106) > at org.exist.webdav.ExistCollection.createFile(ExistCollection.java:415) > at org.exist.webdav.MiltonCollection.createNew(MiltonCollection.java:261) > at com.bradmcevoy.http.http11.PutHandler.processCreate(PutHandler.java:163) > at com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:138) > at com.bradmcevoy.http.StandardFilter.process(StandardFilter.java:32) > at com.bradmcevoy.http.FilterChain.process(FilterChain.java:21) > at com.bradmcevoy.http.HttpManager.process(HttpManager.java:152) > at com.bradmcevoy.http.MiltonServlet.service(MiltonServlet.java:169) > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534) > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516) > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) > at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:240) > at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116) > at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:47) > at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:218) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:479) > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) > at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151) > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) > at org.eclipse.jetty.server.Server.handle(Server.java:352) > at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) > at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805) > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) > at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426) > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508) > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34) > at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) > at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451) > at java.lang.Thread.run(Thread.java:619) > > 24 февраля 2011 г. 23:58 пользователь Dannes Wessels > <da...@ex...> написал: >> docx isn't a xml document right ? >> On 24 Feb 2011, at 21:27 , Вячеслав Седов wrote: >> >> 2011-02-24 17:52:32,699 [eXistThread-23] DEBUG (ExistDocument.java >> [<init>]:64) - New document object for /db/mcfr/content/000000605.docx >> >> Kind regards >> Dannes >> -- >> eXist-db Native XML Database - http://exist-db.org >> Join us on linked-in: http://www.linkedin.com/groups?gid=35624 >> >> >> >> >> >> >> >> > |
From: Вячеслав С. <sch...@gm...> - 2011-02-25 08:38:22
|
yep... but both binary and xml files not copied - copied only text files - with xquery well - tried xslt look differently 2011-02-25 11:30:40,777 [eXistThread-21] INFO (HttpManager.java [process]:146) - PUT :: http://localhost:8080/exist/webdav/db/metadata-filler-wk.xsl - http://localhost:8080/exist/webdav/db/metadata-filler-wk.xsl 2011-02-25 11:30:40,780 [eXistThread-21] DEBUG (PutHandler.java [process]:71) - process request: host: localhost:8080 url: /exist/webdav/db/metadata-filler-wk.xsl 2011-02-25 11:30:40,781 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' path='/db/metadata-filler-wk.xsl' 2011-02-25 11:30:40,782 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResourceType]:145) - Path: /db/metadata-filler-wk.xsl 2011-02-25 11:30:40,783 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResourceType]:198) - Resource type=NOT_EXISTING 2011-02-25 11:30:40,784 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResource]:124) - Resource does not exist: '/db/metadata-filler-wk.xsl' 2011-02-25 11:30:40,786 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' path='/db/metadata-filler-wk.xsl' 2011-02-25 11:30:40,787 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResourceType]:145) - Path: /db/metadata-filler-wk.xsl 2011-02-25 11:30:40,790 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResourceType]:198) - Resource type=NOT_EXISTING 2011-02-25 11:30:40,791 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResource]:124) - Resource does not exist: '/db/metadata-filler-wk.xsl' 2011-02-25 11:30:40,791 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' path='/db' 2011-02-25 11:30:40,792 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResourceType]:145) - Path: /db 2011-02-25 11:30:40,793 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResourceType]:198) - Resource type=COLLECTION 2011-02-25 11:30:40,797 [eXistThread-21] DEBUG (MiltonCollection.java [<init>]:108) - COLLECTION:/db 2011-02-25 11:30:40,797 [eXistThread-21] DEBUG (ExistCollection.java [<init>]:68) - New collection object for /db 2011-02-25 11:30:40,799 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResource]:93) - host='localhost:8080' path='/db' 2011-02-25 11:30:40,799 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResourceType]:145) - Path: /db 2011-02-25 11:30:40,802 [eXistThread-21] DEBUG (ExistResourceFactory.java [getResourceType]:198) - Resource type=COLLECTION 2011-02-25 11:30:40,804 [eXistThread-21] DEBUG (MiltonCollection.java [<init>]:108) - COLLECTION:/db 2011-02-25 11:30:40,805 [eXistThread-21] DEBUG (ExistCollection.java [<init>]:68) - New collection object for /db 2011-02-25 11:30:40,805 [eXistThread-21] DEBUG (MiltonCollection.java [getCurrentLock]:332) - '/db' 2011-02-25 11:30:40,806 [eXistThread-21] DEBUG (MiltonResource.java [authenticate]:299) - Authenticating user admin for /db 2011-02-25 11:30:40,807 [eXistThread-21] DEBUG (MiltonResource.java [authenticate]:336) - User 'admin' has been authenticated. 2011-02-25 11:30:40,808 [eXistThread-21] INFO (MiltonResource.java [authorise]:343) - PUT true for /db 2011-02-25 11:30:40,808 [eXistThread-21] DEBUG (MiltonResource.java [authorise]:402) - URI is null 2011-02-25 11:30:40,809 [eXistThread-21] DEBUG (MiltonResource.java [authorise]:408) - User admin is authorized to write resource /db 2011-02-25 11:30:40,810 [eXistThread-21] DEBUG (PutHandler.java [processCreate]:158) - process: putting to: db 2011-02-25 11:30:40,810 [eXistThread-21] DEBUG (MimeUtil2.java [getMimeTypes]:550) - Getting MIME types for file name [metadata-filler-wk.xsl]. 2011-02-25 11:30:40,812 [eXistThread-21] DEBUG (MimeUtil2.java [getMimeTypes]:570) - Retrieved MIME types [application/octet-stream] 2011-02-25 11:30:40,813 [eXistThread-21] DEBUG (PutHandler.java [processCreate]:162) - PutHandler: creating resource of type: application/octet-stream 2011-02-25 11:30:40,813 [eXistThread-21] DEBUG (MiltonCollection.java [createNew]:256) - Create 'metadata-filler-wk.xsl' in '/db' 2011-02-25 11:30:40,814 [eXistThread-21] DEBUG (ExistCollection.java [createFile]:352) - Create 'metadata-filler-wk.xsl' in '/db' 2011-02-25 11:30:40,815 [eXistThread-21] DEBUG (ExistCollection.java [createFile]:411) - Inserting XML document 'application/xslt+xml' 2011-02-25 11:30:40,816 [eXistThread-21] DEBUG (Collection.java [validateXMLResourceInternal]:1196) - Scanning document /db/metadata-filler-wk.xsl 2011-02-25 11:30:40,817 [eXistThread-21] DEBUG (GrammarPool.java [retrieveInitialGrammarSet]:81) - Retrieve initial grammarset (http://www.w3.org/TR/REC-xml). 2011-02-25 11:30:40,818 [eXistThread-21] DEBUG (GrammarPool.java [retrieveInitialGrammarSet]:85) - Found 0 grammars. 2011-02-25 11:30:40,823 [eXistThread-21] DEBUG (GrammarPool.java [retrieveInitialGrammarSet]:81) - Retrieve initial grammarset (http://www.w3.org/TR/REC-xml). 2011-02-25 11:30:40,823 [eXistThread-21] DEBUG (GrammarPool.java [retrieveInitialGrammarSet]:85) - Found 0 grammars. 2011-02-25 11:30:40,824 [eXistThread-21] DEBUG (ExistCollection.java [createFile]:484) - Finished creation 2011-02-25 11:30:40,825 [eXistThread-21] ERROR (StandardFilter.java [process]:45) - process java.util.MissingResourceException: Can't find bundle for base name org.apache.xerces.impl.msg.XMLMessages, locale ru_RU at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250) at java.util.ResourceBundle.getBundle(ResourceBundle.java:777) at org.apache.xerces.impl.msg.XMLMessageFormatter.formatMessage(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.exist.collections.Collection$4.run(Collection.java:1112) at org.exist.collections.Collection.validateXMLResourceInternal(Collection.java:1197) at org.exist.collections.Collection.validateXMLResource(Collection.java:1106) at org.exist.webdav.ExistCollection.createFile(ExistCollection.java:415) at org.exist.webdav.MiltonCollection.createNew(MiltonCollection.java:261) at com.bradmcevoy.http.http11.PutHandler.processCreate(PutHandler.java:163) at com.bradmcevoy.http.http11.PutHandler.process(PutHandler.java:138) at com.bradmcevoy.http.StandardFilter.process(StandardFilter.java:32) at com.bradmcevoy.http.FilterChain.process(FilterChain.java:21) at com.bradmcevoy.http.HttpManager.process(HttpManager.java:152) at com.bradmcevoy.http.MiltonServlet.service(MiltonServlet.java:169) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:240) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:47) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:218) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:479) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) at org.eclipse.jetty.server.Server.handle(Server.java:352) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451) at java.lang.Thread.run(Thread.java:619) 24 февраля 2011 г. 23:58 пользователь Dannes Wessels <da...@ex...> написал: > docx isn't a xml document right ? > On 24 Feb 2011, at 21:27 , Вячеслав Седов wrote: > > 2011-02-24 17:52:32,699 [eXistThread-23] DEBUG (ExistDocument.java > [<init>]:64) - New document object for /db/mcfr/content/000000605.docx > > Kind regards > Dannes > -- > eXist-db Native XML Database - http://exist-db.org > Join us on linked-in: http://www.linkedin.com/groups?gid=35624 > > > > > > > > |
From: Dannes W. <da...@ex...> - 2011-02-24 20:59:05
|
docx isn't a xml document right ? On 24 Feb 2011, at 21:27 , Вячеслав Седов wrote: > 2011-02-24 17:52:32,699 [eXistThread-23] DEBUG (ExistDocument.java > [<init>]:64) - New document object for /db/mcfr/content/000000605.docx Kind regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Jason S. <js...@in...> - 2011-02-24 20:33:32
|
I'm not as familiar with the REST API, so I will have to defer this to others. You mentioned you have your own error handler. What does it do? This sure looks like something is shutting down the server in the normal way. You aren't calling System.exit() in your code anywhere, by chance? Jason Smith ________________________________ From: Lauri Hyttinen [lau...@ho...] Sent: Thursday, February 24, 2011 4:55 AM To: Jason Smith; exi...@li... Subject: RE: [Exist-development] Java exceptions crash the server Hello Jason (and others) You asked in another email what I used to call the xquery (which calls the java method) and the answer is REST. Yes the addAineistoKuvaus method calls: table.appendChild(table.importNode(new_statmeta_node,true)); and this causes the crash. The small bit of java code I had in the earlier email worked just fine and it was a bit later in the code that this method call occurred. The problem with the call is that I am trying to put the new_statmeta_node in the wrong place and I have fixed this error now so it does not occur anymore. While fixing the error I used insertBefore method which caused the error below (the new error has also been fixed, I had forgotten to import the node to the document). org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it. at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source) at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source) at metariv2.MetariV2.addAineistoKuvaus(MetariV2.java:680) However this exception also crashed the server similarly to HIERARCHY_REQUEST_ERR. So the problem persists, for some reason these exception crash the server. Now I am thinking that maybe my own error handler causes these problems? Could this be the case? Since these two exceptions are about doing things to the document that are not allowed? That part of the code I am a bit unsure of since it is basically from this page: http://download.oracle.com/javase/tutorial/jaxp/dom/readingXML.html#gestm Also I got some more stacktrace stuff that occurred in one of the runs, not sure if it is related. It came after shutdown had occurred. ... 24 helmi 2011 12:30:07,114 [Shutdown] INFO (Server.java [run]:565) - Shutdown hook complete Failed to release query result on server: Failed to create input stream: Connection refused Failed to release query result on server: Failed to create input stream: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused 24 helmi 2011 12:30:07,316 [P1-7] WARN (ServletHandler.java [handle]:577) - EXCEPTION javax.servlet.ServletException: An error occurred: An unknown error occurred: I/O error while processing request: null at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 24 helmi 2011 12:30:07,317 [P1-7] WARN (ServletHandler.java [handle]:577) - EXCEPTION javax.servlet.ServletException: An unknown error occurred: I/O error while processing request: null at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 24 helmi 2011 12:30:07,319 [P1-7] WARN (ServletHandler.java [handle]:577) - EXCEPTION javax.servlet.ServletException: I/O error while processing request: null at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:114) at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196) at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 24 helmi 2011 12:30:07,321 [P1-7] WARN (ServletHandler.java [handle]:595) - /exist/xmlrpc: org.apache.xmlrpc.XmlRpcException: I/O error while processing request: null at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:247) at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:112) at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196) at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: EOFException(EOFException(java.net.SocketException: Socket closed)) at org.mortbay.http.BufferedOutputStream.flush(BufferedOutputStream.java:209) at org.mortbay.http.HttpOutputStream.flush(HttpOutputStream.java:478) at org.mortbay.http.HttpOutputStream.write(HttpOutputStream.java:425) at org.mortbay.jetty.servlet.ServletOut.write(ServletOut.java:54) at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109) at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:237) ... 24 more Caused by: EOFException(EOFException(java.net.SocketException: Socket closed)) at org.mortbay.http.BufferedOutputStream.flush(BufferedOutputStream.java:209) at org.mortbay.http.HttpOutputStream.flush(HttpOutputStream.java:478) at org.mortbay.http.HttpOutputStream.write(HttpOutputStream.java:425) at org.mortbay.jetty.servlet.ServletOut.write(ServletOut.java:54) at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109) at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:237) at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:112) at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196) at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) ________________________________ From: js...@in... To: lau...@ho...; exi...@li... Date: Tue, 22 Feb 2011 08:42:28 -0800 Subject: RE: [Exist-development] Java exceptions crash the server It looks like you have an XQuery that is calling back into your own code, into a command called "enrich." Inside that method, you make a call to addAineistoKuvaus, which in turn is trying to do something with a Xerces DOM document. You are attempting to insert a node where it is not permitted. There isn't really any eXist code involved in the error at this point - it's all MetariV2 and Xerces. Maybe you are trying to do something directly to the document, when you mean to use the documentElement??? Jason Smith ________________________________ From: Lauri Hyttinen [lau...@ho...] Sent: Tuesday, February 22, 2011 5:44 AM To: exi...@li... Subject: Re: [Exist-development] Java exceptions crash the server This is the tailend of the stacktrace + end of the exist output (from startup.sh). The metariv2.MetariV2 stuff is my code. org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. at org.apache.xerces.dom.CoreDocumentImpl.insertBefore(Unknown Source) at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source) at metariv2.MetariV2.addAineistoKuvaus(MetariV2.java:664) at metariv2.MetariV2.enrich(MetariV2.java:1339) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.exist.xquery.JavaCall.eval(JavaCall.java:266) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.LetExpr.eval(LetExpr.java:155) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:71) at org.exist.xquery.functions.util.CatchFunction.eval(CatchFunction.java:83) at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:56) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:63) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:137) at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:274) at org.exist.xquery.FunctionCall.eval(FunctionCall.java:201) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:56) at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:71) at org.exist.xquery.functions.util.CatchFunction.eval(CatchFunction.java:83) at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:56) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:63) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:137) at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:274) at org.exist.xquery.FunctionCall.eval(FunctionCall.java:201) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.XQuery.execute(XQuery.java:228) at org.exist.xquery.XQuery.execute(XQuery.java:183) at org.exist.http.RESTServer.executeXQuery(RESTServer.java:1233) at org.exist.http.RESTServer.doGet(RESTServer.java:435) at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:323) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 22 helmi 2011 13:58:59,906 [Shutdown] INFO (Server.java [run]:555) - Shutdown hook executing 22 helmi 2011 13:58:59,907 [Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]] INFO (ThreadedServer.java [run]:659) - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] 22 helmi 2011 13:59:00,026 [Shutdown] INFO (SocketListener.java [stop]:213) - Stopped SocketListener on 0.0.0.0:8080 22 helmi 2011 13:59:00,053 [Shutdown] INFO (Container.java [stop]:156) - Stopped org.mortbay.jetty.servlet.WebApplicationHandler@22ce00 22 helmi 2011 13:59:00,379 [Shutdown] INFO (Container.java [stop]:156) - Stopped WebApplicationContext[/exist,eXist XML Database] 22 helmi 2011 13:59:00,380 [Shutdown] INFO (Container.java [stop]:156) - Stopped org.mortbay.jetty.Server@1c297a3 22 helmi 2011 13:59:00,380 [Shutdown] INFO (Server.java [run]:565) - Shutdown hook complete Failed to release query result on server: Failed to create input stream: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused 22 helmi 2011 14:01:00,131 [Shutdown] ERROR (JettyStart.java [shutdown]:241) - Database shutdown: stopping server in 1sec ... Afterwards when I restart the server: user@server:~/bin/startup.sh Using locale: fi_FI.UTF-8 22 helmi 2011 14:02:58,453 [main] INFO (JettyStart.java [run]:90) - Configuring eXist from /usr/local/exist/conf.xml 22 helmi 2011 14:02:58,454 [main] INFO (JettyStart.java [run]:91) - 22 helmi 2011 14:02:58,454 [main] INFO (JettyStart.java [run]:92) - Running with Java 1.6.0 [Sun Microsystems Inc. (Java HotSpot(TM) Server VM) in /usr/lib/jvm/java-6-sun-1.6.0.00/jre] 22 helmi 2011 14:02:58,455 [main] INFO (JettyStart.java [run]:97) - 22 helmi 2011 14:02:58,456 [main] INFO (JettyStart.java [run]:101) - [eXist Version : 1.4.0] 22 helmi 2011 14:02:58,456 [main] INFO (JettyStart.java [run]:103) - [eXist Build : 20091111] 22 helmi 2011 14:02:58,457 [main] INFO (JettyStart.java [run]:105) - [eXist Home : /usr/local/exist] 22 helmi 2011 14:02:58,457 [main] INFO (JettyStart.java [run]:107) - [SVN Revision : 10440] 22 helmi 2011 14:02:58,458 [main] INFO (JettyStart.java [run]:115) - [Operating System : Linux 2.6.15-53-server i386] 22 helmi 2011 14:02:58,458 [main] INFO (JettyStart.java [run]:118) - [jetty.home : /usr/local/exist/tools/jetty] 22 helmi 2011 14:02:58,459 [main] INFO (JettyStart.java [run]:120) - [log4j.configuration : file:/usr/local/exist/log4j.xml] Redo [=============================================== ] (94 %)= ] (94 %) It gets stuck here. Nothing happens for minutes, until I get bored and ctrl+c it. I may have jumped the gun on this one though, because the the next time server starts the index is broken. PS. I have zeroed on the offending code on my metariv2 stuff to be this part if it helps in any way. while(i2.hasMoreResources()) { XMLResource s = (XMLResource)i2.nextResource(); Node node = s.getContentAsDOM(); Node statmeta_import = node.getFirstChild(); for (int j = 0; j < statmeta_old_classifications.getLength(); j++) { Element link = (Element)statmeta_old_classifications.item(j); if (link.getAttribute("classificationId").equals(luokitusID)) { //Replace the old empty classfication with the one retrieved Node korvattava = statmeta_old_classifications.item(j); Node korvattavan_parent = korvattava.getParentNode(); korvattavan_parent.replaceChild(statmeta_docu.importNode(statmeta_import, true),korvattava); } } } Best regards, Lauri Hyttinen ________________________________ From: da...@ex... Date: Tue, 22 Feb 2011 09:28:01 +0100 Subject: Re: [Exist-development] Java exceptions crash the server To: lau...@ho... CC: exi...@li... Hi, On Tue, Feb 22, 2011 at 8:35 AM, Lauri Hyttinen <lau...@ho...<mailto:lau...@ho...>> wrote: My code causes an org.w3c.dom.DOMException with a HIERACHY REQUEST ERROR being the cause and this causes eXist to shut down. Earlier I had a null pointer exception which also caused the same effect. The null pointer exception is fixed and I am in the process of addressing the DOMException. But regardless of the exception is eXist supposed to shut down when a java module does these things? I know I have to write better java code :) but still it would be easier on the mind when I did not crash the server with my faulty java module. it is unlikely that such an exception crashes the database. To understand your issue better I'd need to see the stacktraces. In general: if the databases stops to respond, in many cases the 'broker' is never returned to the 'brokerpool'. This is fatal since there is just a limited number of brokers available. regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Вячеслав С. <sch...@gm...> - 2011-02-24 20:27:15
|
log look like this 2011-02-24 17:52:32,790 [eXistThread-21] DEBUG (MiltonResource.java [getModifiedDate]:430) - Modified date=Tue Feb 22 15:27:53 MSK 2011 2011-02-24 17:52:32,791 [eXistThread-21] DEBUG (MiltonDocument.java [getCreateDate]:179) - Create date=Tue Feb 22 15:27:53 MSK 2011 2011-02-24 17:52:32,797 [eXistThread-21] DEBUG (MiltonResource.java [getModifiedDate]:430) - Modified date=Tue Feb 22 15:28:01 MSK 2011 2011-02-24 17:52:32,798 [eXistThread-21] DEBUG (MiltonDocument.java [getCreateDate]:179) - Create date=Tue Feb 22 15:28:01 MSK 2011 2011-02-24 17:52:32,799 [eXistThread-21] DEBUG (MiltonResource.java [getModifiedDate]:430) - Modified date=Tue Feb 22 15:28:07 MSK 2011 2011-02-24 17:52:32,801 [eXistThread-21] DEBUG (MiltonDocument.java [getCreateDate]:179) - Create date=Tue Feb 22 15:28:07 MSK 2011 2011-02-24 17:52:32,801 [eXistThread-21] DEBUG (MiltonResource.java [getModifiedDate]:430) - Modified date=Tue Feb 22 15:28:11 MSK 2011 2011-02-24 17:52:32,699 [eXistThread-23] DEBUG (ExistDocument.java [<init>]:64) - New document object for /db/mcfr/content/000000605.docx 2011-02-24 17:52:32,829 [eXistThread-23] DEBUG (MiltonDocument.java [<init>]:111) - DOCUMENT:/db/mcfr/content/000000606.docx 2011-02-24 17:52:32,830 [eXistThread-23] DEBUG (ExistDocument.java [<init>]:64) - New document object for /db/mcfr/content/000000606.docx 2011-02-24 17:52:32,834 [eXistThread-23] DEBUG (MiltonDocument.java [<init>]:111) - DOCUMENT:/db/mcfr/content/000000607.docx 2011-02-24 17:52:32,835 [eXistThread-23] DEBUG (ExistDocument.java [<init>]:64) - New document object for /db/mcfr/content/000000607.docx 2011-02-24 17:52:32,839 [eXistThread-23] DEBUG (MiltonDocument.java [<init>]:111) - DOCUMENT:/db/mcfr/content/000000608.docx 2011-02-24 17:52:32,839 [eXistThread-23] DEBUG (ExistDocument.java [<init>]:64) - New document object for /db/mcfr/content/000000608.docx 2011-02-24 17:52:32,848 [eXistThread-23] DEBUG (MiltonDocument.java [<init>]:111) - DOCUMENT:/db/mcfr/content/000000609.docx 2011-02-24 17:52:32,849 [eXistThread-23] DEBUG (ExistDocument.java [<init>]:64) - New document object for /db/mcfr/content/000000609.docx 2011-02-24 17:52:32,854 [eXistThread-23] DEBUG (MiltonDocument.java [<init>]:111) - DOCUMENT:/db/mcfr/content/000000610.docx 2011-02-24 17:52:32,855 [eXistThread-23] DEBUG (ExistDocument.java [<init>]:64) - New document object for /db/mcfr/content/000000610.docx 2011-02-24 17:52:32,858 [eXistThread-23] DEBUG (MiltonDocument.java [<init>]:111) - DOCUMENT:/db/mcfr/content/000000611.docx 2011-02-24 17:52:32,858 [eXistThread-23] DEBUG (ExistDocument.java [<init>]:64) - New document object for /db/mcfr/content/000000611.docx 2011-02-24 17:52:32,861 [eXistThread-21] DEBUG (MiltonDocument.java [getCreateDate]:179) - Create date=Tue Feb 22 15:28:11 MSK 2011 2011-02-24 17:52:32,902 [eXistThread-21] DEBUG (MiltonResource.java [getModifiedDate]:430) - Modified date=Tue Feb 22 15:28:17 MSK 2011 2011-02-24 17:52:32,903 [eXistThread-21] DEBUG (MiltonDocument.java [getCreateDate]:179) - Create date=Tue Feb 22 15:28:17 MSK 2011 2011-02-24 17:52:32,903 [eXistThread-21] DEBUG (MiltonResource.java [getModifiedDate]:430) - Modified date=Tue Feb 22 15:28:22 MSK 2011 2011-02-24 17:52:32,904 [eXistThread-21] DEBUG (MiltonDocument.java [getCreateDate]:179) - Create date=Tue Feb 22 15:28:22 MSK 2011 2011-02-24 17:52:32,905 [eXistThread-21] DEBUG (MiltonResource.java [getModifiedDate]:430) - Modified date=Tue Feb 22 15:28:26 MSK 2011 2011-02-24 17:52:32,906 [eXistThread-21] DEBUG (MiltonDocument.java [getCreateDate]:179) - Create date=Tue Feb 22 15:28:26 MSK 2011 24 февраля 2011 г. 22:49 пользователь Dannes Wessels <da...@ex...> написал: > Hi, > > 2011/2/24 Вячеслав Седов <sch...@gm...> >> >> good idea - downloading is OK, uploading fail, but why some files >> copied and some is not? and why exactly XML have problem, i think this >> is not only netdrive problem (i think it not care about content type) >> - maybe some kind of "half-bug interference"? :) > > Maybe, but as I said the interface is really well tested with many webdav > (enabled) clients. So maybe there is a mime-type setup issue? > And maybe exist.log gives some hints.... > D. > > -- > eXist-db Native XML Database - http://exist-db.org > Join us on linked-in: http://www.linkedin.com/groups?gid=35624 > |
From: Dannes W. <da...@ex...> - 2011-02-24 19:53:32
|
Hi, 2011/2/24 Вячеслав Седов <sch...@gm...> > good idea - downloading is OK, uploading fail, but why some files > copied and some is not? and why exactly XML have problem, i think this > is not only netdrive problem (i think it not care about content type) > - maybe some kind of "half-bug interference"? :) Maybe, but as I said the interface is really well tested with many webdav (enabled) clients. So maybe there is a mime-type setup issue? And maybe exist.log gives some hints.... D. -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Вячеслав С. <sch...@gm...> - 2011-02-24 19:19:34
|
good idea - downloading is OK, uploading fail, but why some files copied and some is not? and why exactly XML have problem, i think this is not only netdrive problem (i think it not care about content type) - maybe some kind of "half-bug interference"? :) 24 февраля 2011 г. 20:41 пользователь Dannes Wessels <da...@ex...> написал: > HI, > On 24 Feb 2011, at 16:59 , Вячеслав Седов wrote: > > NetDrive http://www.netdrive.net/ in Windows is same as davfs in linux > > in a functional way, not technically > > i think that if text files copied without problems - then this is not > netdrive bug - is not it? > > the new webdav interface has been tested quite well, and works flawlessly > with many clients, that makes me think it is an issue with netdrive. When I > read http://code.google.com/p/sabredav/wiki/Netdrive I do net really get a > good feeling :-/ > but you do a lot of things in one go. What happens if you do the copy in two > steps: first the copy to your local drive, and then copy to the second > drive? > did you check any of the logfiles for relevant messages? > Kind regards > Dannes > -- > eXist-db Native XML Database - http://exist-db.org > Join us on linked-in: http://www.linkedin.com/groups?gid=35624 > > > > > > > > |
From: Dannes W. <da...@ex...> - 2011-02-24 17:41:58
|
HI, On 24 Feb 2011, at 16:59 , Вячеслав Седов wrote: > NetDrive http://www.netdrive.net/ in Windows is same as davfs in linux in a functional way, not technically > i think that if text files copied without problems - then this is not > netdrive bug - is not it? the new webdav interface has been tested quite well, and works flawlessly with many clients, that makes me think it is an issue with netdrive. When I read http://code.google.com/p/sabredav/wiki/Netdrive I do net really get a good feeling :-/ but you do a lot of things in one go. What happens if you do the copy in two steps: first the copy to your local drive, and then copy to the second drive? did you check any of the logfiles for relevant messages? Kind regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Вячеслав С. <sch...@gm...> - 2011-02-24 15:59:39
|
NetDrive http://www.netdrive.net/ in Windows is same as davfs in linux i connect 2 different eXist servers (trunk) by netdrive program as net-drives and then i have tried to copy all data from one drive to another (i have tried using both drag-and-drop & ms`s robocopy tool - latest is faster) - at first look it worked without errors but i note that were copied only folders structure and text resources (but nor binary nor xml). i think that if text files copied without problems - then this is not netdrive bug - is not it? with best wishes, Slav |
From: Lauri H. <lau...@ho...> - 2011-02-24 11:55:31
|
Hello Jason (and others) You asked in another email what I used to call the xquery (which calls the java method) and the answer is REST. Yes the addAineistoKuvaus method calls: table.appendChild(table.importNode(new_statmeta_node,true)); and this causes the crash. The small bit of java code I had in the earlier email worked just fine and it was a bit later in the code that this method call occurred. The problem with the call is that I am trying to put the new_statmeta_node in the wrong place and I have fixed this error now so it does not occur anymore. While fixing the error I used insertBefore method which caused the error below (the new error has also been fixed, I had forgotten to import the node to the document). org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it. at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source) at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source) at metariv2.MetariV2.addAineistoKuvaus(MetariV2.java:680) However this exception also crashed the server similarly to HIERARCHY_REQUEST_ERR. So the problem persists, for some reason these exception crash the server. Now I am thinking that maybe my own error handler causes these problems? Could this be the case? Since these two exceptions are about doing things to the document that are not allowed? That part of the code I am a bit unsure of since it is basically from this page: http://download.oracle.com/javase/tutorial/jaxp/dom/readingXML.html#gestm Also I got some more stacktrace stuff that occurred in one of the runs, not sure if it is related. It came after shutdown had occurred. ... 24 helmi 2011 12:30:07,114 [Shutdown] INFO (Server.java [run]:565) - Shutdown hook complete Failed to release query result on server: Failed to create input stream: Connection refused Failed to release query result on server: Failed to create input stream: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused 24 helmi 2011 12:30:07,316 [P1-7] WARN (ServletHandler.java [handle]:577) - EXCEPTION javax.servlet.ServletException: An error occurred: An unknown error occurred: I/O error while processing request: null at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 24 helmi 2011 12:30:07,317 [P1-7] WARN (ServletHandler.java [handle]:577) - EXCEPTION javax.servlet.ServletException: An unknown error occurred: I/O error while processing request: null at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 24 helmi 2011 12:30:07,319 [P1-7] WARN (ServletHandler.java [handle]:577) - EXCEPTION javax.servlet.ServletException: I/O error while processing request: null at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:114) at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196) at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 24 helmi 2011 12:30:07,321 [P1-7] WARN (ServletHandler.java [handle]:595) - /exist/xmlrpc: org.apache.xmlrpc.XmlRpcException: I/O error while processing request: null at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:247) at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:112) at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196) at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: EOFException(EOFException(java.net.SocketException: Socket closed)) at org.mortbay.http.BufferedOutputStream.flush(BufferedOutputStream.java:209) at org.mortbay.http.HttpOutputStream.flush(HttpOutputStream.java:478) at org.mortbay.http.HttpOutputStream.write(HttpOutputStream.java:425) at org.mortbay.jetty.servlet.ServletOut.write(ServletOut.java:54) at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109) at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:237) ... 24 more Caused by: EOFException(EOFException(java.net.SocketException: Socket closed)) at org.mortbay.http.BufferedOutputStream.flush(BufferedOutputStream.java:209) at org.mortbay.http.HttpOutputStream.flush(HttpOutputStream.java:478) at org.mortbay.http.HttpOutputStream.write(HttpOutputStream.java:425) at org.mortbay.jetty.servlet.ServletOut.write(ServletOut.java:54) at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109) at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:237) at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:112) at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:196) at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) From: js...@in... To: lau...@ho...; exi...@li... Date: Tue, 22 Feb 2011 08:42:28 -0800 Subject: RE: [Exist-development] Java exceptions crash the server It looks like you have an XQuery that is calling back into your own code, into a command called "enrich." Inside that method, you make a call to addAineistoKuvaus, which in turn is trying to do something with a Xerces DOM document. You are attempting to insert a node where it is not permitted. There isn't really any eXist code involved in the error at this point - it's all MetariV2 and Xerces. Maybe you are trying to do something directly to the document, when you mean to use the documentElement??? Jason Smith From: Lauri Hyttinen [lau...@ho...] Sent: Tuesday, February 22, 2011 5:44 AM To: exi...@li... Subject: Re: [Exist-development] Java exceptions crash the server This is the tailend of the stacktrace + end of the exist output (from startup.sh). The metariv2.MetariV2 stuff is my code. org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. at org.apache.xerces.dom.CoreDocumentImpl.insertBefore(Unknown Source) at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source) at metariv2.MetariV2.addAineistoKuvaus(MetariV2.java:664) at metariv2.MetariV2.enrich(MetariV2.java:1339) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.exist.xquery.JavaCall.eval(JavaCall.java:266) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.LetExpr.eval(LetExpr.java:155) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:71) at org.exist.xquery.functions.util.CatchFunction.eval(CatchFunction.java:83) at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:56) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:63) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:137) at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:274) at org.exist.xquery.FunctionCall.eval(FunctionCall.java:201) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:56) at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:71) at org.exist.xquery.functions.util.CatchFunction.eval(CatchFunction.java:83) at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:56) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:63) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.LetExpr.eval(LetExpr.java:206) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:158) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:137) at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:274) at org.exist.xquery.FunctionCall.eval(FunctionCall.java:201) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.PathExpr.eval(PathExpr.java:241) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:61) at org.exist.xquery.XQuery.execute(XQuery.java:228) at org.exist.xquery.XQuery.execute(XQuery.java:183) at org.exist.http.RESTServer.executeXQuery(RESTServer.java:1233) at org.exist.http.RESTServer.doGet(RESTServer.java:435) at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:323) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:263) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:44) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:203) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 22 helmi 2011 13:58:59,906 [Shutdown] INFO (Server.java [run]:555) - Shutdown hook executing 22 helmi 2011 13:58:59,907 [Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]] INFO (ThreadedServer.java [run]:659) - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] 22 helmi 2011 13:59:00,026 [Shutdown] INFO (SocketListener.java [stop]:213) - Stopped SocketListener on 0.0.0.0:8080 22 helmi 2011 13:59:00,053 [Shutdown] INFO (Container.java [stop]:156) - Stopped org.mortbay.jetty.servlet.WebApplicationHandler@22ce00 22 helmi 2011 13:59:00,379 [Shutdown] INFO (Container.java [stop]:156) - Stopped WebApplicationContext[/exist,eXist XML Database] 22 helmi 2011 13:59:00,380 [Shutdown] INFO (Container.java [stop]:156) - Stopped org.mortbay.jetty.Server@1c297a3 22 helmi 2011 13:59:00,380 [Shutdown] INFO (Server.java [run]:565) - Shutdown hook complete Failed to release query result on server: Failed to create input stream: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused Failed to release query result on server: Failed to read server's response: Connection refused 22 helmi 2011 14:01:00,131 [Shutdown] ERROR (JettyStart.java [shutdown]:241) - Database shutdown: stopping server in 1sec ... Afterwards when I restart the server: user@server:~/bin/startup.sh Using locale: fi_FI.UTF-8 22 helmi 2011 14:02:58,453 [main] INFO (JettyStart.java [run]:90) - Configuring eXist from /usr/local/exist/conf.xml 22 helmi 2011 14:02:58,454 [main] INFO (JettyStart.java [run]:91) - 22 helmi 2011 14:02:58,454 [main] INFO (JettyStart.java [run]:92) - Running with Java 1.6.0 [Sun Microsystems Inc. (Java HotSpot(TM) Server VM) in /usr/lib/jvm/java-6-sun-1.6.0.00/jre] 22 helmi 2011 14:02:58,455 [main] INFO (JettyStart.java [run]:97) - 22 helmi 2011 14:02:58,456 [main] INFO (JettyStart.java [run]:101) - [eXist Version : 1.4.0] 22 helmi 2011 14:02:58,456 [main] INFO (JettyStart.java [run]:103) - [eXist Build : 20091111] 22 helmi 2011 14:02:58,457 [main] INFO (JettyStart.java [run]:105) - [eXist Home : /usr/local/exist] 22 helmi 2011 14:02:58,457 [main] INFO (JettyStart.java [run]:107) - [SVN Revision : 10440] 22 helmi 2011 14:02:58,458 [main] INFO (JettyStart.java [run]:115) - [Operating System : Linux 2.6.15-53-server i386] 22 helmi 2011 14:02:58,458 [main] INFO (JettyStart.java [run]:118) - [jetty.home : /usr/local/exist/tools/jetty] 22 helmi 2011 14:02:58,459 [main] INFO (JettyStart.java [run]:120) - [log4j.configuration : file:/usr/local/exist/log4j.xml] Redo [=============================================== ] (94 %)= ] (94 %) It gets stuck here. Nothing happens for minutes, until I get bored and ctrl+c it. I may have jumped the gun on this one though, because the the next time server starts the index is broken. PS. I have zeroed on the offending code on my metariv2 stuff to be this part if it helps in any way. while(i2.hasMoreResources()) { XMLResource s = (XMLResource)i2.nextResource(); Node node = s.getContentAsDOM(); Node statmeta_import = node.getFirstChild(); for (int j = 0; j < statmeta_old_classifications.getLength(); j++) { Element link = (Element)statmeta_old_classifications.item(j); if (link.getAttribute("classificationId").equals(luokitusID)) { //Replace the old empty classfication with the one retrieved Node korvattava = statmeta_old_classifications.item(j); Node korvattavan_parent = korvattava.getParentNode(); korvattavan_parent.replaceChild(statmeta_docu.importNode(statmeta_import, true),korvattava); } } } Best regards, Lauri Hyttinen From: da...@ex... Date: Tue, 22 Feb 2011 09:28:01 +0100 Subject: Re: [Exist-development] Java exceptions crash the server To: lau...@ho... CC: exi...@li... Hi, On Tue, Feb 22, 2011 at 8:35 AM, Lauri Hyttinen <lau...@ho...> wrote: My code causes an org.w3c.dom.DOMException with a HIERACHY REQUEST ERROR being the cause and this causes eXist to shut down. Earlier I had a null pointer exception which also caused the same effect. The null pointer exception is fixed and I am in the process of addressing the DOMException. But regardless of the exception is eXist supposed to shut down when a java module does these things? I know I have to write better java code :) but still it would be easier on the mind when I did not crash the server with my faulty java module. it is unlikely that such an exception crashes the database. To understand your issue better I'd need to see the stacktraces. In general: if the databases stops to respond, in many cases the 'broker' is never returned to the 'brokerpool'. This is fatal since there is just a limited number of brokers available. regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |