You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ugo Cei <ug...@apache.org> on 2004/04/19 20:15:26 UTC
[VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Here are the results so far:
Bertrand +1
Berin +1
Unico +1
Stephan +1
myself +1
Marc 0
Geoff 0
Nicola Ken -1
Leo Sutic +1 (non binding)
I'll let the vote run for 24 more hours. In the meantime, let me know
if there are any errors in the summary.
Ugo
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Ugo Cei <ug...@apache.org>.
Il giorno 20/apr/04, alle 19:52, Nicola Ken Barozzi ha scritto:
> In any case, we need our guidelines.
>
+1 ;-).
Ugo
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Ugo Cei wrote:
> Il giorno 20/apr/04, alle 18:55, Nicola Ken Barozzi ha scritto:
>
>> These rules are the ones that came out of HTTPD land, and reflect a
>> codebase that changes very differently from ours. What you should
>> really be looking at is: http://xml.apache.org/decisions.html
>
> I had already looked there, but that page strikes me as a wierd mix of
> circular and incomplete definitions.
For me, this is a majority vote. If it were a consensus vote, I'd have
voted -0.
My rule of the thumb:
1 - a veto generally applies to cvs commits that are dangerous and that
can be technically demonstrated to be so
2 - all other votes are majority
3 - if a majority vote is split, try to get more consensus
4 - if it's a minor thing, just do it, and don't ask a vote. At most
just a heads up and go for it.
In any case, we need our guidelines.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Ugo Cei <ug...@apache.org>.
Il giorno 20/apr/04, alle 19:40, Leo Sutic ha scritto:
> My personal guideline is this: If you have -1's you don't have
> consensus.
>
> Unless you have consensus, you shouldn't implement whatever
> it is you propose.
I'm inclined to refrain from making this change now. The vote is more
or less split, with only a small majority pro, and the issue is not
that important.
My opinion, as already mentioned, is that we should drop checked
exceptions for good. If I cannot even convince more than four people
that we should at least change one exception type, it's better to wait.
Maybe, one day, I'll write my own framework and host Cocoon in it, so I
can have it my way. Hey, that's an idea: make Cocoon independent of the
actual framework by using a meta-framework that insulates components
from the implementation details of the container. There should be a
standard for it, so that we might host Cocoon inside Avalon, Spring,
Nanocontainer, Picocontainer, whatever ... ;-).
Ugo
RE: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Leo Sutic <le...@inspireinfrastructure.com>.
These things were discussed to death at Avalon.
My personal guideline is this: If you have -1's you don't have
consensus.
Unless you have consensus, you shouldn't implement whatever
it is you propose.
As for the problem with someone being completely uncooperative,
well...
/LS
> From: Ugo Cei [mailto:ugo@apache.org]
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Ugo Cei <ug...@apache.org>.
Il giorno 20/apr/04, alle 18:55, Nicola Ken Barozzi ha scritto:
> These rules are the ones that came out of HTTPD land, and reflect a
> codebase that changes very differently from ours. What you should
> really be looking at is: http://xml.apache.org/decisions.html
I had already looked there, but that page strikes me as a wierd mix of
circular and incomplete definitions.
"An action requiring consensus approval must receive at least 3 binding
+1 votes and no binding vetos. An action requiring majority approval
must receive at least 3 binding +1 votes and more +1 votes than -1
votes. All other action items are considered to have lazy approval
until somebody votes - 1, after which point they are decided by either
consensus or majority vote, depending on the type of action item."
[...]
"Product Changes
Changes to the products of the Project, including code and
documentation, will appear as action items in the status file. All
product changes to the currently active repository are subject to lazy
consensus."
We clearly have a product change, here, which is subject to lazy
consensus until someone votes -1, which happpened, after which point it
is decided depending on the type of action item, which is subject to
lazy consensus until someone votes -1, which happpened, after which
point it is decided depending on the type of action item, which ... I'm
afraid.......I'm afraid, Dave. ;-)
Ugo
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Ugo Cei wrote:
> Nicola Ken Barozzi wrote:
>
>> Ugo Cei wrote:
>>
>>> Nicola Ken Barozzi wrote:
>>>
>>>>> Should we interpret this as a veto?
>>>>
>>>> It's not up to interpretation, as nobody can veto [VOTE]s.
>>>>
>>>> Vetos can only be used to revert commits that should not happen
>>>> because of problems they generate, and be accompanied with solid
>>>> technical reasons.
>>>
>>> Thank you for the clarification. I did look around for an exhaustive
>>> and unambiguous description of our voting procedures, but couldn't
>>> find any. Do you have any pointers?
>>
>> http://incubator.apache.org/learn/voting.html
>
> Hmmm...
>
> "Under normal (non-lazy consensus) conditions, the proposal requires
> three positive votes and no negative ones in order to pass; [...]
> For code-modification votes, +1 votes are in favour of the proposal, but
> -1 votes are vetos and kill the proposal dead until all vetoers
> withdraw their -1 votes."
>
> Doesn't this apply to this vote?
I knew you would ask ;-)
These rules are the ones that came out of HTTPD land, and reflect a
codebase that changes very differently from ours. What you should really
be looking at is: http://xml.apache.org/decisions.html
We should have our own voting guidelines... where are they?
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Ugo Cei <u....@cbim.it>.
Nicola Ken Barozzi wrote:
> Ugo Cei wrote:
>
>> Nicola Ken Barozzi wrote:
>>
>>>> Should we interpret this as a veto?
>>>
>>>
>>> It's not up to interpretation, as nobody can veto [VOTE]s.
>>>
>>> Vetos can only be used to revert commits that should not happen
>>> because of problems they generate, and be accompanied with solid
>>> technical reasons.
>>
>>
>> Thank you for the clarification. I did look around for an exhaustive
>> and unambiguous description of our voting procedures, but couldn't
>> find any. Do you have any pointers?
>
>
> http://incubator.apache.org/learn/voting.html
>
Hmmm...
"Under normal (non-lazy consensus) conditions, the proposal requires
three positive votes and no negative ones in order to pass; [...]
For code-modification votes, +1 votes are in favour of the proposal, but
-1 votes are vetos and kill the proposal dead until all vetoers
withdraw their -1 votes."
Doesn't this apply to this vote?
Ugo
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Ugo Cei wrote:
> Nicola Ken Barozzi wrote:
>
>>> Should we interpret this as a veto?
>>
>> It's not up to interpretation, as nobody can veto [VOTE]s.
>>
>> Vetos can only be used to revert commits that should not happen
>> because of problems they generate, and be accompanied with solid
>> technical reasons.
>
> Thank you for the clarification. I did look around for an exhaustive and
> unambiguous description of our voting procedures, but couldn't find any.
> Do you have any pointers?
http://incubator.apache.org/learn/voting.html
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Ugo Cei <u....@cbim.it>.
Nicola Ken Barozzi wrote:
>> Should we interpret this as a veto?
>
> It's not up to interpretation, as nobody can veto [VOTE]s.
>
> Vetos can only be used to revert commits that should not happen because
> of problems they generate, and be accompanied with solid technical reasons.
Thank you for the clarification. I did look around for an exhaustive and
unambiguous description of our voting procedures, but couldn't find any.
Do you have any pointers?
Ugo
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Ugo Cei wrote:
> Il giorno 19/apr/04, alle 20:43, Joerg Heinicke ha scritto:
>
>> Joerg -1
>
> Should we interpret this as a veto?
It's not up to interpretation, as nobody can veto [VOTE]s.
Vetos can only be used to revert commits that should not happen because
of problems they generate, and be accompanied with solid technical reasons.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Joerg Heinicke wrote:
> On 19.04.2004 22:36, Ugo Cei wrote:
>
>> Il giorno 19/apr/04, alle 20:43, Joerg Heinicke ha scritto:
>>
>>> Joerg -1
>>
>>
>> Should we interpret this as a veto?
>
>
> Ah, no, I do not see myself that important :) Just another -1.
Add another -1 from me. I'm with Nicola here, it provides more value to
fix erroneous exception handling on case by case basis.
Vadim
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Joerg Heinicke <jo...@gmx.de>.
On 19.04.2004 22:36, Ugo Cei wrote:
> Il giorno 19/apr/04, alle 20:43, Joerg Heinicke ha scritto:
>
>> Joerg -1
>
> Should we interpret this as a veto?
Ah, no, I do not see myself that important :) Just another -1.
Joerg
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Ugo Cei <ug...@apache.org>.
Il giorno 19/apr/04, alle 20:43, Joerg Heinicke ha scritto:
> Joerg -1
Should we interpret this as a veto?
Ugo
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Joerg Heinicke <jo...@gmx.de>.
On 19.04.2004 20:15, Ugo Cei wrote:
> Here are the results so far:
>
> Bertrand +1
> Berin +1
> Unico +1
> Stephan +1
> myself +1
> Marc 0
> Geoff 0
> Nicola Ken -1
> Leo Sutic +1 (non binding)
Joerg -1
RE: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Leo Sutic <le...@inspireinfrastructure.com>.
> From: Ugo Cei [mailto:u.cei@cbim.it]
> > Therefore, ProcessingException should really be ProcessingError -
> > since you're not expected to recover from it. Or extend Throwable
> > directly.
>
> Well that's more radical than my proposal! You won't catch it even if
> you do "catch(Exception e)".
That's the point. A ProcessingException means that all elements of the
pipeline should just *stop*. They shouldn't try to recover (IoC),
proceed
(IoC) or try some backup solution (IoC again). Just stop, exit, and let
the Processor/sitemap logic handle it.
> I warn you that even Sun is not sure about what constitutes
> an Error, as in the Javadoc it says:
>
> "An Error is a subclass of Throwable that indicates serious problems
> that a reasonable application should not try to catch.
I think that fits ProcessingException just fine.
The JavaDoc talks about "application", but you should understand this
in the proper context. If your code is a Cocoon component, then you
should read
this as: "An Error is a subclass of Throwable that indicates serious
problems
that a reasonable Cocoon component should not try to catch."
I.e. the meaning of "application" is highly context-dependent. What we
have done is to create an application environment - call it Cocoon OS if
you want - where you run web applications consisting of components. Just
because you don't launch something from the command line doesn't mean
that
it isn't an application.
/LS
Re: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Ugo Cei <u....@cbim.it>.
Leo Sutic wrote:
> I change my non-binding vote to -1.
>
> Motivation:
>
> When you have a block of code that uses other modules, you often end up
> doing:
>
> try {
> ...
> } catch (Exception e) {
> // Whatever the cause, it didn't work.
> throw new MyException (e);
> }
>
> Since RuntimeException isa Exception, this will catch and wrap
> RuntimeExceptions as well.
As it catches ProcessingException now.
> This sort-of defeats what we're trying to achieve with
> ProcessingException,
> which is to make it bypass all wrapping and so on and go directly to the
> bottom of the stack.
>
> Therefore, ProcessingException should really be ProcessingError - since
> you're not expected to recover from it. Or extend Throwable directly.
Well that's more radical than my proposal! You won't catch it even if
you do "catch(Exception e)".
I warn you that even Sun is not sure about what constitutes an Error, as
in the Javadoc it says:
"An Error is a subclass of Throwable that indicates serious problems
that a reasonable application should not try to catch. Most such errors
are abnormal conditions. The ThreadDeath error, though a "normal"
condition, is also a subclass of Error because most applications should
not try to catch it."
But then you see javax.xml.parsers.FactoryConfigurationError extends Error.
Really makes you wonder whether all this mess about
Throwable/Error/Exception/RuntimeException does make any sense.
In the end, it just reinforces my conclusion: checked exceptions suck.
Gosling had good intentions but, as they say, the road to hell is paved
with good intentions. They do not work in practice, as nobody will ever
agree as to what constitutes a programming error, an abnormal condition
or a recoverable cause.
I am pretty sure that if we forgot about checked exceptions, we'd have
less verbose code, easier to understand and maintain. I am also sure
that it will take some time before this "heresy" becomes mainstream.
Ugo
RE: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Posted by Leo Sutic <le...@inspireinfrastructure.com>.
I change my non-binding vote to -1.
Motivation:
When you have a block of code that uses other modules, you often end up
doing:
try {
...
} catch (Exception e) {
// Whatever the cause, it didn't work.
throw new MyException (e);
}
Since RuntimeException isa Exception, this will catch and wrap
RuntimeExceptions as well.
This sort-of defeats what we're trying to achieve with
ProcessingException,
which is to make it bypass all wrapping and so on and go directly to the
bottom of the stack.
Therefore, ProcessingException should really be ProcessingError - since
you're not expected to recover from it. Or extend Throwable directly.
/LS
> From: Ugo Cei [mailto:ugo@apache.org]