Camel
  1. Camel
  2. CAMEL-5122

RMI endpoint doesn't handle nested exception and raise CamelRuntimeException instead of RemoteException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0, 2.7.3, 2.8.5, 2.9.2
    • Fix Version/s: 2.9.3, 2.10.0
    • Component/s: camel-rmi
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When we have a route looking like:

      <from uri="rmi:..."/>
      <to uri="myBean"/>

      if an exception is raised on myBean, the RMI endpoint ignores the exception described in the RemoteInterface and always raises a RuntimeCamelException nesting the original exceptions.

      More over, RuntimeCamalException should not be raised by the RMI endpoint. It would make more sense to raise a RemoteException, as we are on a RMI endpoint.

        Activity

        Jean-Baptiste Onofré created issue -
        Jean-Baptiste Onofré made changes -
        Field Original Value New Value
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Christian Schneider made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ] Christian Schneider [ chris@die-schneider.net ]
        Jean-Baptiste Onofré made changes -
        Assignee Christian Schneider [ chris@die-schneider.net ] Jean-Baptiste Onofré [ jbonofre ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 2.9.3 [ 12320750 ]
        Affects Version/s 2.9.2 [ 12320143 ]
        Affects Version/s 2.8.5 [ 12319522 ]
        Affects Version/s 2.7.0 [ 12316021 ]
        Affects Version/s 2.6.0 [ 12315690 ]
        Affects Version/s 2.5.0 [ 12315689 ]
        Affects Version/s 2.4.0 [ 12315688 ]
        Affects Version/s 2.3.0 [ 12315687 ]
        Affects Version/s 2.2.0 [ 12315686 ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 2.10.0 [ 12317612 ]
        Hide
        Claus Ibsen added a comment -

        Any update on this? If you got a sample unit test, I may help.

        Show
        Claus Ibsen added a comment - Any update on this? If you got a sample unit test, I may help.
        Claus Ibsen made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ] Claus Ibsen [ davsclaus ]
        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Jean-Baptiste Onofré
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development