Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-517

Soap response validation errors after update to 1.5.7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.5.8
    • Component/s: OXM, XML
    • Labels:
      None
    • Environment:
      Mac OSX 10.5.6, Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284), JBoss 4.2.2GA, Spring 2.5.6, hibernate 3.3.1GA, Maven version: 2.0.9,

      Description

      Upgrade from SpringWS 1.5.6 to 1.5.7 and update. - No code changes.
      After upgrade error "java.lang.ArrayIndexOutOfBoundsException: -1" was thrown during validation. Turning validation off works as a workaround.

      my Soap API has 130 calls. Most respones were working fine, not all were tested. I wonder if It might have something to do with the size of the response, all other tested responses were pretty small, see forum post for bean configurations, errors and response sample.

      1. GetMetaDataKeysResonse.xml
        10 kB
        Jacques Couzteau
      2. codexws.xsd
        121 kB
        Jacques Couzteau
      3. GMK-Response.xml
        22 kB
        Jacques Couzteau

        Activity

        Hide
        couzteau Jacques Couzteau added a comment -

        FYi: I have run my test suite against the app that uses the 1.5.8-SNAPSHOT of spring web services. There are no other calls that have this problem.

        Show
        couzteau Jacques Couzteau added a comment - FYi: I have run my test suite against the app that uses the 1.5.8-SNAPSHOT of spring web services. There are no other calls that have this problem.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        I can finally reproduce it. It seems to be related to Xerces in the JDK: the test runs fine when using JDK 1.6, but under 1.5, it fails.

        As a workaround, you can try upgrading to a recent version of Xerces (thus overriding the com.sun.org.apache.xerces that's built in the JDK).

        I will also investigate further, and see if I can fix this.

        Show
        arjen.poutsma Arjen Poutsma added a comment - I can finally reproduce it. It seems to be related to Xerces in the JDK: the test runs fine when using JDK 1.6, but under 1.5, it fails. As a workaround, you can try upgrading to a recent version of Xerces (thus overriding the com.sun.org.apache.xerces that's built in the JDK). I will also investigate further, and see if I can fix this.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        I think I've fixed it. Can you try a recent snapshot (as of tonight) and try again?

        Show
        arjen.poutsma Arjen Poutsma added a comment - I think I've fixed it. Can you try a recent snapshot (as of tonight) and try again?
        Hide
        couzteau Jacques Couzteau added a comment -

        verified fix with latest 1.5.8 Snapshot. (Yay!)

        Thank you! much appreciated.

        Show
        couzteau Jacques Couzteau added a comment - verified fix with latest 1.5.8 Snapshot. (Yay!) Thank you! much appreciated.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            couzteau Jacques Couzteau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0d
              0d
              Logged:
              Time Spent - 1d 2h 5m
              1d 2h 5m