Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1902

Input2InputTransformer doesn't handle null input going from SDO->AXIOM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Java-SCA-1.0
    • Java-SCA-1.1
    • SCA Java Runtime
    • None
    • Patch Available

    Description

      I get the following:

      java.lang.NullPointerException
      at org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform(Input2InputTransformer.java:127)
      at org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform(Input2InputTransformer.java:46)
      at org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:73)

      when invoking a method such as:

      public Person getGreetings()

      where Person is an SDO causing the SDO databinding to be set at the impl DB level, and where I am using the WS binding, causing AXIOM to be used as the target DB.

      I'll attach a simple patch to check for null first in the unwrapped->wrapped case in which the problem occurs.

      Attachments

        1. 1902.patch
          1 kB
          Scott Kurz

        Activity

          People

            rfeng Zhaohui Feng
            scottkurz Scott Kurz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: