Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-53597

portal-client randomly generates different SOAP files on same codebase with different jvms

    Details

      Description

      This is an Axis bug.

      JavaServiceDesc.syncOperationToClass() fails to correctly match overloaded methods. The generated results depends on the order of given methods. The methods are fetched by reflection, reflection api does not guarantee any ordering. Different version of jvm may reflect the same class' methods with different orders. Causing this annoying inconsistent soap generation issue.

      To reproduce this issue, build portal-client with 64bit version of jdk first, save the generated src folder (It will be a good idea to version control it for this testing purpose). Switch to 32bit version jdk of the same build, regenerate portal-client on the same code base. Compare the newly generated src folder with the previous one. (Delete the old src, copy in the new one, see whether the version control system notices any difference).

      Before this fix, you most likely will see quite a few files are different, if you look close to those difference, you might find some of them are real bugs, that the generated soap files don't match the source wsdd.

      After this fix, the results should be very consistent on different jdks, and those mismatch with wsdd should go away.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            shuyang.zhou Shuyang Zhou
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 37 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 M4