Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5092

IN-only method custom exception return missing details

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.5.5, 1.6.0, 1.6.1, 1.7.0
    • None
    • adb, rpc
    • Tomcat 6, jdk 1.6.0_26

    Description

      Procedure:
      1) Create POJO service with non-returning function which throws a custom exception, e.g.:
      public class ExampleService { public void testFunction(String something) throws MyException { throw new MyException("testing123", 123); }}

      Explicitly define testFunction() as "InOnly" in services.xml (due to AXIS2-5215):
      <operation name="testFunction"><messageReceiver class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" /></operation>

      3) Call testFunction() from client

      4) Change function to be non-void, e.g.:
      public boolean testFunction(String something) throws MyException { throw new MyException("testing123", 123); }}

      5) Repeat step 3

      Result:
      3) Additional exception variables are not returned as part of xml response, i.e. an empty "<detail/>" tag is returned.
      5) Fully populated <detail> tag returned as part of exception, as expected.

      Attachments

        Issue Links

          Activity

            People

              sagara Sagara Gunathunga
              vilnis.termanis Vilnis Termanis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: