Re: [C3] Error handling in REST controller

2011-12-22 Thread Reinhard Pötz
(selectors for HTTP methods, serializers with status-code attributes). Anyways, there should be a clear contract between the sitemap and the REST controller, something like: * The REST controller is responsible for setting up the response, including error handling. * The handle-errors clause

[C3] Error handling in REST controller

2011-12-19 Thread Andreas Hartmann
ds, serializers with status-code attributes). Anyways, there should be a clear contract between the sitemap and the REST controller, something like: * The REST controller is responsible for setting up the response, including error handling. * The handle-errors clause kicks in if an erro

Re: error handling in aggregations

2006-03-25 Thread Jean-Baptiste Quenot
* Max Pfingsthorn: > Yes, this works well. I've tested it and with 'when="external"' > on 'map:handle-errors', it does stop the serializer from dumping > the data before the error page. Also, 'when="internal"' works > wonderfully inside the aggregate! > > I would be all for this change before

RE: error handling causes NPE? (was: error handling in aggregations)

2006-03-22 Thread Max Pfingsthorn
nt me to a guide how to get the samples running in trunk? max > -Original Message- > From: Jean-Baptiste Quenot [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 22, 2006 16:54 > To: dev@cocoon.apache.org > Subject: Re: error handling causes NPE? (was: error handling in >

Re: error handling causes NPE? (was: error handling in aggregations)

2006-03-22 Thread Jean-Baptiste Quenot
* Max Pfingsthorn: > Yes, I'll change the one in trunk as well today. Hello Max, While you're at it, there's also the AbstractCachingProcessingPipeline that needs an update in trunk. TIA, -- Jean-Baptiste Quenot http://caraldi.com/jbq/

RE: error handling causes NPE? (was: error handling in aggregations)

2006-03-22 Thread Max Pfingsthorn
nly place where a SitemapSource is used) releases everything correctly. Since this only seems to happen when an Exception is thrown during processing, I thought that maybe there is an error deeper in the error handling code. Something like a missing finally... The error is rather hard to noti

Re: error handling causes NPE? (was: error handling in aggregations)

2006-03-22 Thread Carsten Ziegeler
Max Pfingsthorn schrieb: > Hi! > > Err, guys, can it be that the sources aren't released correctly after a > ProcessingException during pipeline execution? I get the same NPE I did when > I didn't release a sitemap source correctly a while ago after I apply this > patch to 2.1.8... > > Any ide

Re: error handling in aggregations

2006-03-21 Thread Vadim Gritsenko
Jeremy Quinn wrote: Many thanks for the links Vadim !! You *are* welcome, you know. No need for double exclamation marks ;-P Vadim regards Jeremy On 20 Mar 2006, at 18:01, Vadim Gritsenko wrote: Jeremy Quinn wrote: On 20 Mar 2006, at 12:41, Bruno Dumon wrote: On Mon, 2006-03-20 at 12:

error handling causes NPE? (was: error handling in aggregations)

2006-03-21 Thread Max Pfingsthorn
ginal Message- > From: Max Pfingsthorn > Sent: Tuesday, March 21, 2006 16:33 > To: dev@cocoon.apache.org > Subject: RE: error handling in aggregations > > > Hi! > > Yes, this works well. I've tested it and with > 'when="external"' on '

RE: error handling in aggregations

2006-03-21 Thread Max Pfingsthorn
be all for this change before 2.1.9 comes out. If noone objects, I'll commit it within the hour. max > -Original Message- > From: Bruno Dumon [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 19, 2006 14:33 > To: dev@cocoon.apache.org > Subject: Re: error handling in

Re: error handling in aggregations

2006-03-21 Thread Jeremy Quinn
Many thanks for the links Vadim !! regards Jeremy On 20 Mar 2006, at 18:01, Vadim Gritsenko wrote: Jeremy Quinn wrote: On 20 Mar 2006, at 12:41, Bruno Dumon wrote: On Mon, 2006-03-20 at 12:00 +, Jeremy Quinn wrote: Lets say the aggregation part that is in error, is a cocoon:// pipelin

Re: error handling in aggregations

2006-03-20 Thread Vadim Gritsenko
Jeremy Quinn wrote: On 20 Mar 2006, at 12:41, Bruno Dumon wrote: On Mon, 2006-03-20 at 12:00 +, Jeremy Quinn wrote: Lets say the aggregation part that is in error, is a cocoon:// pipeline, it is possible that the called pipeline has it's own local error-handler . if this is the case,

Re: error handling in aggregations

2006-03-20 Thread Jeremy Quinn
On 20 Mar 2006, at 12:41, Bruno Dumon wrote: On Mon, 2006-03-20 at 12:00 +, Jeremy Quinn wrote: Thanks for your reply Bruno, On 19 Mar 2006, at 13:32, Bruno Dumon wrote: On Sun, 2006-03-19 at 12:10 +, Jeremy Quinn wrote: Hi All Investigating this further, I came up with this simpl

Re: error handling in aggregations

2006-03-20 Thread Bruno Dumon
On Mon, 2006-03-20 at 12:00 +, Jeremy Quinn wrote: > Thanks for your reply Bruno, > > On 19 Mar 2006, at 13:32, Bruno Dumon wrote: > > > On Sun, 2006-03-19 at 12:10 +, Jeremy Quinn wrote: > >> Hi All > >> > >> Investigating this further, I came up with this simplest possible > >> sitemap

Re: error handling in aggregations

2006-03-20 Thread Jeremy Quinn
Thanks for your reply Bruno, On 19 Mar 2006, at 13:32, Bruno Dumon wrote: On Sun, 2006-03-19 at 12:10 +, Jeremy Quinn wrote: Hi All Investigating this further, I came up with this simplest possible sitemap to reproduce the problem : http://apache.org/cocoon/sitemap/1.0";>

Re: error handling in aggregations

2006-03-19 Thread Bruno Dumon
On Sun, 2006-03-19 at 12:10 +, Jeremy Quinn wrote: > Hi All > > Investigating this further, I came up with this simplest possible > sitemap to reproduce the problem : > > > http://apache.org/cocoon/sitemap/1.0";> > > > > logger="sitemap.generator.file" pool-grow="4" pool

Re: error handling in aggregations

2006-03-19 Thread Jeremy Quinn
Hi All Investigating this further, I came up with this simplest possible sitemap to reproduce the problem : http://apache.org/cocoon/sitemap/1.0";> logger="sitemap.generator.file" pool-grow="4" pool-max="32" pool- min="4" src="org.apache.cocoon.generation.FileGenerator"/>

error handling in aggregations

2006-03-16 Thread Jeremy Quinn
Hi All I am working on a project that uses a lot of aggregations in the sitemap, using . My aggregated parts all call cocoon:// pipelines in other subsitemap, via the top level sitemap, where my top-level sitemap is not the one that comes built-in with Cocoon, but is my own, mounted direc

[jira] Created: (COCOON-1767) Error handling

2006-02-02 Thread Reinhard Poetz (JIRA)
Error handling -- Key: COCOON-1767 URL: http://issues.apache.org/jira/browse/COCOON-1767 Project: Cocoon Type: New Feature Components: - Blocks Framework Reporter: Reinhard Poetz There is sophisticated creation of error messages in the

Re: Refactored (again) XSLT error handling

2005-10-19 Thread Sylvain Wallez
Sylvain Wallez wrote: Sylvain Wallez wrote: Activating this second feature requires to change the XSLTProcessor implementation to o.a.c.c.xslt.XSLTProcessorImpl Damn! While porting to the 2.1 branch, I realized that this conflict with the same class that exists in the "deprecated" block.

Re: Refactored (again) XSLT error handling

2005-10-19 Thread Ralph Goers
Sylvain Wallez wrote: Ralph Goers wrote: Sylvain Wallez wrote: Sylvain Wallez wrote: Activating this second feature requires to change the XSLTProcessor implementation to o.a.c.c.xslt.XSLTProcessorImpl Damn! While porting to the 2.1 branch, I realized that this conflict with the same

Re: Refactored (again) XSLT error handling

2005-10-19 Thread Sylvain Wallez
Ralph Goers wrote: Sylvain Wallez wrote: Sylvain Wallez wrote: Activating this second feature requires to change the XSLTProcessor implementation to o.a.c.c.xslt.XSLTProcessorImpl Damn! While porting to the 2.1 branch, I realized that this conflict with the same class that exists in the

Re: Refactored (again) XSLT error handling

2005-10-19 Thread Ralph Goers
Sylvain Wallez wrote: Sylvain Wallez wrote: Activating this second feature requires to change the XSLTProcessor implementation to o.a.c.c.xslt.XSLTProcessorImpl Damn! While porting to the 2.1 branch, I realized that this conflict with the same class that exists in the "deprecated" block.

Re: Refactored (again) XSLT error handling

2005-10-19 Thread Sylvain Wallez
Sylvain Wallez wrote: Activating this second feature requires to change the XSLTProcessor implementation to o.a.c.c.xslt.XSLTProcessorImpl Damn! While porting to the 2.1 branch, I realized that this conflict with the same class that exists in the "deprecated" block. What do you think: is i

Refactored (again) XSLT error handling

2005-10-19 Thread Sylvain Wallez
Hi all, I refactored the error handling in TraxTransformer (again) and XSLTProcessor. * A usable We were used to have "Stylesheet directed termination" on screen, indicating we had to dig in the logs. We now have the message displayed, with location information. * XSLT c

DO NOT REPLY [Bug 32213] - Error handling and subsitemaps - errors not handled in subsitemap in special cases

2005-06-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

Re: Error Handling, him or me ???

2005-05-09 Thread oceatoon
Hi Sylvain > Well, error handlers have been reported to be working fine for years... Yes that's what I figured, > Is the page where this problem occurs the main request, or is there some > surrounding environment such as aggregation, cocoon: et al? no very basic error handler.it sends an xhtml se

Re: Error Handling, him or me ???

2005-05-09 Thread Sylvain Wallez
oceatoon wrote: Hi devers here again after not finding an answer in user, sorry. My problem concerns using It seems I must be doing something wrong, because on a simple not-found exeption, everything goes great...hmmm...he finds the file(error.html) I give in sitemap...but then when I visit a prop

Error Handling, him or me ???

2005-05-09 Thread oceatoon
Hi devers here again after not finding an answer in user, sorry. My problem concerns using It seems I must be doing something wrong, because on a simple not-found exeption, everything goes great...hmmm...he finds the file(error.html) I give in sitemap...but then when I visit a proper page the err

Re: [VOTE] Internal Pipelines Error Handling

2005-03-15 Thread Vadim Gritsenko
Sylvain Wallez wrote: Yep. And that shows that it's really a feature of and not of . Ok, deal! :-) Patch landed in SVN, includes samples - take a look... Vadim

Re: [VOTE] Internal Pipelines Error Handling

2005-03-14 Thread Sylvain Wallez
s really a feature of and not of . Isn't FS? What would be the scenario for having error handler for internal but not external requests? Maybe a scenario where you want to have errors be handled by the servlet engine? When attribute is missing or set to false, error handling

Re: [VOTE] Internal Pipelines Error Handling

2005-03-14 Thread Vadim Gritsenko
on map:pipelines, if that feature is needed at all. Isn't FS? What would be the scenario for having error handler for internal but not external requests? When attribute is missing or set to false, error handling behaviour is as it is currently. Limitation of current implementation of the

Re: [VOTE] Internal Pipelines Error Handling

2005-03-14 Thread Sylvain Wallez
Vadim Gritsenko wrote: Hi All, I'd implemented error handling for internal pipelines which allows to discard content generated by the internal pipeline and replace it instead with the content generated by the error-handler of the internal pipeline. This feature is activated only when pip

Re: [VOTE] Internal Pipelines Error Handling

2005-03-13 Thread Bertrand Delacretaz
... [X ] Let's include this feature into 2.1.7 release! ... [ X] Single error handler is just what we need. No too sure about this but why not start simpler and expand if use-cases show the need for hierarchical handling [ ] No, it must support hierarchical error handling. -Ber

[VOTE] Internal Pipelines Error Handling

2005-03-13 Thread Vadim Gritsenko
Hi All, I'd implemented error handling for internal pipelines which allows to discard content generated by the internal pipeline and replace it instead with the content generated by the error-handler of the internal pipeline. This feature is activated only when pipeline has an attribut

Re: error handling

2004-11-23 Thread Torsten Curdt
Due to time constraints I worked around it and lowered the priority on my TODO list. Feel free to take over :-) I'd love to. But since I have only glanced at the sitemap processing I have a feeling it will be a hack. Also, I'm up to my eyeballs trying to figure out what Pluto has in mind with Po

Re: error handling

2004-11-16 Thread Ralph Goers
Torsten Curdt said: > Ralph Goers wrote: >> There was quite a discussion here regarding this, the last posted >> message >> of which seems to be >> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=108670415314132&w=2. >> Was >> anything ever done about this? We are running into problems with this

Re: error handling

2004-11-16 Thread Torsten Curdt
Ralph Goers wrote: There was quite a discussion here regarding this, the last posted message of which seems to be http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=108670415314132&w=2. Was anything ever done about this? We are running into problems with this in the Portal. Due to time constraints

RE: error handling

2004-11-16 Thread Ralph Goers
ter said: >> >> Torsten Curdt <[EMAIL PROTECTED]> asks: >> >> > After further investigations it seems like exceptions >> > are passed to the error handler inside the treeprocessor. >> > But requests using the cocoon protcol don't go through >> >

DO NOT REPLY [Bug 32213] New: - Error handling and subsitemaps - errors not handled in subsitemap in special cases

2004-11-12 Thread bugzilla
gzilla/show_bug.cgi?id=32213 Error handling and subsitemaps - errors not handled in subsitemap in special cases Summary: Error handling and subsitemaps - errors not handled in subsitemap in special cases Product: Cocoon 2 Version: Current S

Re: error handling

2004-06-08 Thread Sylvain Wallez
errors=true", but it will handle errors occuring during the _building_ of the pipeline, and not during its _execution_. That's not what I am after. It does not help for error handling on aggregation. We should aim for the execution time. It all depends where the errors occur in the aggreg

RE: error handling

2004-06-08 Thread Carsten Ziegeler
rs=true", but it will handle errors occuring > > during the _building_ of the pipeline, and not during its > _execution_. > > That's not what I am after. It does not help for error > handling on aggregation. We should aim for the execution time. > Yepp, execution

Re: error handling

2004-06-08 Thread Torsten Curdt
nd "?cocoon:handle-errors=true", but it will handle errors occuring during the _building_ of the pipeline, and not during its _execution_. That's not what I am after. It does not help for error handling on aggregation. We should aim for the execution time. Handling errors occuring d

Re: error handling

2004-06-08 Thread Sylvain Wallez
Torsten Curdt wrote: ...What about... our current behaviour would be "external". I would like to have "always" andt the "internal" option might be FS ;) +1 for the declaration, looks clean enough! Carsten, I'd really like to takle this ASAP. We are currently using a *very* ugly work around. S

Re: error handling

2004-06-06 Thread Torsten Curdt
our current behaviour would be "external". I would like to have "always" andt the "internal" option might be FS ;) +1 for the declaration, looks clean enough! Carsten, I'd really like to takle this ASAP. We are currently using a *very* ugly work around. Yes, yes, do it - you don't have to wai

RE: error handling

2004-06-04 Thread Carsten Ziegeler
Torsten Curdt wrote: > > >> ...What about... > >> > >> > >> > >> our current behaviour would be "external". > >> I would like to have "always" andt the "internal" option > might be FS > >> ;) > > > > > > +1 for the declaration, looks clean enough! > > Carsten, I'd really like to takle thi

RE: error handling

2004-06-04 Thread Hunsberger, Peter
Vadim Gritsenko <[EMAIL PROTECTED]> writes: > > Hunsberger, Peter wrote: > > >Vadim Gritsenko <[EMAIL PROTECTED]> writes: > > > > > ... > > >>Now, if > >>you want to > >>change current default, you'll have to add this attribute. > >> > >> > > > >Now that seems like FS to me... > > > > No

Re: error handling

2004-06-04 Thread Vadim Gritsenko
Hunsberger, Peter wrote: Vadim Gritsenko <[EMAIL PROTECTED]> writes: ... Now, if you want to change current default, you'll have to add this attribute. Now that seems like FS to me... No, it's called "backward compatibility" ;-) Vadim

RE: error handling

2004-06-04 Thread Hunsberger, Peter
rnal" option might be FS ;) > >> > >> > > > >Hmmm, just wondering, if I have: > > > > > > > >and I define a > > > > > > > >within it, would that now work? And if it did, would I have

Re: error handling

2004-06-04 Thread Vadim Gritsenko
work? And if it did, would I have to specify handle-errors="internal" or would that be the default for such a pipeline? I realize, most people would likely only want a single handle-errors section so that you don't have to specify the same error handling in two different place

RE: error handling

2004-06-04 Thread Hunsberger, Peter
and I define a within it, would that now work? And if it did, would I have to specify handle-errors="internal" or would that be the default for such a pipeline? I realize, most people would likely only want a single handle-errors section so that you

Re: error handling

2004-06-04 Thread Torsten Curdt
...What about... our current behaviour would be "external". I would like to have "always" andt the "internal" option might be FS ;) +1 for the declaration, looks clean enough! Carsten, I'd really like to takle this ASAP. We are currently using a *very* ugly work around. WDYT? cheers -- Torsten

Re: error handling

2004-06-04 Thread Bertrand Delacretaz
Le 4 juin 04, à 09:59, Torsten Curdt a écrit : ...What about... our current behaviour would be "external". I would like to have "always" andt the "internal" option might be FS ;) +1 for the declaration, looks clean enough! -Bertrand

Re: error handling

2004-06-04 Thread Torsten Curdt
I think we can use the available things. We discussed two solutions: specifying it at the call, like: cocoon:handle-error:/something or cocoon:/something?cocoon:handle-error=true Uaaahh maybe the first one - but this looks dead ugly and feels more like hack for what should be the default. ...or

RE: error handling

2004-06-04 Thread Antonio Gallardo
Carsten Ziegeler dijo: > Are you talking about 2.1.5 or CVS Head? CVS Head has a rewritten > internal request handling that simply might have bugs, so we have > to fix these bugs first before its really usable. Yep.!!! it tortures now for 2 days now! :( Best Regards, Antonio Gallardo

RE: error handling

2004-06-04 Thread Carsten Ziegeler
are no objections. > > But where to place it? I reckon we either need to make the > interal pipeline calls go through the same hook inside the > treeprocessor or move the error handling further down into > the pipeline code. > I think we can use the available things. We discussed two solu

RE: error handling

2004-06-04 Thread Carsten Ziegeler
Antonio Gallardo wrote: > > Carsten Ziegeler dijo: > > Vadim Gritsenko wrote: > > > >> > >> IIRC, last first friday we had a chat with Carsten about adding an > >> attribute to the or to the which will > >> indicate what behavior is needed in case of internal > request: throw > >> exceptio

Re: error handling

2004-06-04 Thread Torsten Curdt
are no objections. But where to place it? I reckon we either need to make the interal pipeline calls go through the same hook inside the treeprocessor or move the error handling further down into the pipeline code. WDYT? cheers -- Torsten

RE: error handling

2004-06-04 Thread Antonio Gallardo
Carsten Ziegeler dijo: > Vadim Gritsenko wrote: > >> >> IIRC, last first friday we had a chat with Carsten about >> adding an attribute to the or to the >> which will indicate what behavior is needed in >> case of internal request: throw exception or process >> . Carsten? >> > Yes, nothing of tha

RE: error handling

2004-06-03 Thread Carsten Ziegeler
Vadim Gritsenko wrote: > > IIRC, last first friday we had a chat with Carsten about > adding an attribute to the or to the > which will indicate what behavior is needed in > case of internal request: throw exception or process > . Carsten? > Yes, nothing of that is implemented yet. The dis

Re: error handling

2004-06-03 Thread Vadim Gritsenko
Torsten Curdt wrote: I have an interal pipeline which sometimes throws an exception due to broken links. And another one using it --> calls the intenal pipeline ... Using the first pipeline works just fine. Exceptions are being caught and

RE: error handling

2004-06-03 Thread Hunsberger, Peter
same way as external ones. > > So basically error handling is missing - or broken for > > such internal requests. > > > > I think this is a vital feature and I am > > wondering why noone hit that before. > > We came across this and I had assumed it was intentio

RE: error handling

2004-06-03 Thread Hunsberger, Peter
Torsten Curdt <[EMAIL PROTECTED]> asks: > After further investigations it seems like exceptions > are passed to the error handler inside the treeprocessor. > But requests using the cocoon protcol don't go through > the treeprocessor the same way as external ones. > So b

Re: error handling

2004-06-03 Thread Torsten Curdt
After further investigations it seems like exceptions are passed to the error handler inside the treeprocessor. But requests using the cocoon protcol don't go through the treeprocessor the same way as external ones. So basically error handling is missing - or broken for such internal reques

Re: error handling

2004-06-03 Thread Torsten Curdt
I have an interal pipeline which sometimes throws an exception due to broken links. And another one using it --> calls the intenal pipeline ... ...of course We were discussing it here... does the cocoon protoco

error handling

2004-06-03 Thread Torsten Curdt
I have an interal pipeline which sometimes throws an exception due to broken links. And another one using it --> calls the intenal pipeline ... Using the first pipeline works just fine. Exceptions are being caught and a default xml file is

Re: Sample "error handling" shows a blank page

2004-05-23 Thread Antonio Gallardo
Vadim Gritsenko dijo: > Antonio Gallardo wrote: > >>Here is another sample with problem. It show an blank page: >> >>http://localhost:/samples/errorhandling/exception/exception?exception=error >> >> > > That's intentional, AFAIR. At least under Tomcat - that's Tomcat's > behavior in case of Err

Re: Sample "error handling" shows a blank page

2004-05-23 Thread Vadim Gritsenko
Antonio Gallardo wrote: Here is another sample with problem. It show an blank page: http://localhost:/samples/errorhandling/exception/exception?exception=error That's intentional, AFAIR. At least under Tomcat - that's Tomcat's behavior in case of Error. I don't remember how it works with Je

Sample "error handling" shows a blank page

2004-05-22 Thread Antonio Gallardo
Hi: Here is another sample with problem. It show an blank page: http://localhost:/samples/errorhandling/exception/exception?exception=error Best Regards, Antonio Gallardo