IBM Support

PM61016: WSGEN TOOL MAY GENERATE INCORRECT WSDL WHEN INVOKED WITH JAVA 7

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • With Java 7, wsgen generates a Throwable type when a class
    exposes a method that throws an Exception. The Throwable type
    may cause the WebSphere Application Server JSP compiler to
    fail.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All IBM WebSphere Application Server users  *
    *                  of JAX-WS.                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: When invoked with Java 7, the wsgen     *
    *                      tool may generate an incorrect WSDL.    *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this       *
    *                  APAR.                                       *
    ****************************************************************
    When invoked with Java 7, the wsgen tool may generate extra
    types and fields for an exception:
    <xs:complexType name="Exception">
    <xs:sequence>
    <xs:element name="message" type="xs:string" minOccurs="0" />
    <xs:element name="suppressed" type="tns:throwable"
    nillable="true" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="throwable">
    <xs:sequence>
    <xs:element name="stackTrace" type="tns:stackTraceElement"
    nillable="true" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="stackTraceElement" final="extension
    restriction">
    <xs:sequence />
    </xs:complexType>
    With Java 6, the wsgen tool correctly generates:
    <xs:complexType name="Exception">
    <xs:sequence>
    <xs:element name="message" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    The "throwable" type generated with Java 7 when used in
    conjunction with JavaServer Pages (JSPs) can cause the JSP
    compiler to fail.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM61016

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-23

  • Closed date

    2012-05-21

  • Last modified date

    2012-05-21

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 October 2021