Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-1120

Exception doesn't appear in stacktrace if thrown during Connection creation when using JCA

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.6
    • Fix Version/s: 0.6
    • Component/s: component-jca
    • Labels:
      None

      Description

      JMSProcessor [1] should close the connection and session in finally block only if they are initialized.

      Currently when an exception is thrown during connection creation, connection and session won't be initialized and a NullPointerException will be thrown in the finally block. Therefore the original exception won't appear in the logs.

      The same applies to CCIProcessor.

      [1] https://github.com/jboss-switchyard/components/blob/master/jca/src/main/java/org/switchyard/component/jca/processor/JMSProcessor.java#L131

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                igarashitm tomohisa igarashi
                Reporter:
                ssadeghi Siamak Sadeghianfar
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: