Petals SE JSR181

Not any exception can be set as an error on an exchange

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.1.2
  • Fix Version/s: 1.1.3
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    The component implementation contains the following code:

    this.handleError(new Exception(message), exchange);

    This exception is then directly set as an error on the exchange.
    This is a wrong behavior. Here is what is said on the wiki.

    java., org.w3c. and org.xml. exceptions can directly be set on the exchange as errors.
    Other exceptions must be transformed in a MessagingException that will be set as an error on the exchange.

    Show
    The component implementation contains the following code:
    this.handleError(new Exception(message), exchange);
    This exception is then directly set as an error on the exchange. This is a wrong behavior. Here is what is said on the wiki.
    java., org.w3c. and org.xml. exceptions can directly be set on the exchange as errors. Other exceptions must be transformed in a MessagingException that will be set as an error on the exchange.
  • Environment:
    Windows XP

Activity

Vincent Zurczak made changes - Thu, 21 Oct 2010 - 18:22:40 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Trivial [ 5 ]
Vincent Zurczak made changes - Thu, 21 Oct 2010 - 18:30:44 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Vincent Zurczak made changes - Thu, 21 Oct 2010 - 18:31:03 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 1.1.3 [ 10106 ]
Resolution Fixed [ 1 ]
Vincent Zurczak made changes - Thu, 21 Oct 2010 - 18:31:07 +0200
Status Resolved [ 10004 ] Closed [ 10005 ]

People

Dates

  • Created:
    Thu, 21 Oct 2010 - 18:22:32 +0200
    Updated:
    Thu, 21 Oct 2010 - 18:31:07 +0200
    Resolved:
    Thu, 21 Oct 2010 - 18:31:03 +0200