Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 47723 invoked by uid 500); 26 Mar 2002 13:19:43 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 47690 invoked from network); 26 Mar 2002 13:19:42 -0000 Message-ID: <00c601c1d4c8$7ac604f0$670004c0@PC103> Reply-To: "Nicola Ken Barozzi" From: "Nicola Ken Barozzi" To: References: <092C4B8A9B51D411829E00D0B749AFBBA831FE@post.flagship.ru> <002d01c1d4b3$7864c8f0$670004c0@PC103> Subject: Re: error response broken? Date: Tue, 26 Mar 2002 14:16:45 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N From: "Jeremy Quinn" > At 11:46 am +0100 26/3/02, Nicola Ken Barozzi wrote: > >From: "Piroumian, Konstantin" > > > >> > From: Jeremy Quinn [mailto:jermq@media.demon.co.uk] > >> > > >> > Dear All, > >> > > >> > I have noticed a big change in the way Cocoon responds to > >> > errors caused by > >> > you putting mal-formed xml into a field in . > >> > > >> > Up until a week ago (I got a bit behind CVS) Cocoon would > >> > respond with a normal message like: > >> > > >> > Original exception : org.xml.sax.SAXParseException: The element type > >> > "title" must be terminated by the matching end-tag "". > >> > > >> > etc. > >> > > >> > Now it says things like: > >> > > >> > Original exception : java.io.FileNotFoundException: > >> > /Users/jermq/Library/TomCat/webapps/cocoon/stylesheets/simple- > >> > page2html.xsl > >> > (No such file or directory) > >> > > >> > Which is strange. > > > >Try commenting out the transformation in the handle-errors and serializing > >to xml, you will always see the error. > > I tried this ...... commented out the transformation and HTML serialization > in the error-handlers in mount/editor/sitemap.xmap and > mount/editor/editor.xmap, replacing them with a straight serialize to XML. > > I still get the weird error, where it trounces off looking for nonsense. It's not so wierd. With the current Cocoon version of the editor, it says that it can't fint "test.xmap". In fact, test.xmap is mounted just after editor.xmap in your sitemap. This means that the matcher doesn't match where you would want it to but matches the test.xmap pipeline part. There is has problems in finding the file. If I remove the test.xmap mount, it behaves like you say. In fact, it tries to use the parent sitemap to match, matches somewhere, but can't find the file it's looking for (simple-page2html.xsl) because resolves the parent sitemap definitions relative to *his* context, which has always happened. Now the question is: Why doesn't it match where you want it to match? See, the error is not directly about the wrong xml AFAIS, but something else. Side effect components tend to have this problem with the errors, because side effects are no directly specified in the pipeline. Can this help you a bit? -- Nicola Ken Barozzi nicolaken@apache.org - verba volant, scripta manent - (discussions get forgotten, just code remains) --------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org