IBM Support

PM63065: Generating Java code from xsd files fails if the project is under Jazz/RTC source control

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts to generate Java code from a XSD file might fail when
    the project is under RTC source control.
    
    Problem:
    
    The following error will be thrown when you attempt to generate
    the Java code from an XSD file in a project that is under RTC
    source control:
    
    Errors occurred during xjc.
        java.lang.Throwable:
        at
    com.ibm.ast.ws.jaxws.emitter.jdk6.command.XjcCommand.runCodeXJC(
    Unknown
    Source)
    ...
    
    Steps to replicate:
    
    1) Use the following XSD or create a new XSD file with the text
    below in a new Jazz/RTC Source Controlled project:
    
    ??xml version='1.0' encoding='UTF-8'??
    ?xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
    elementFormDefault='qualified'?
      ?xs:simpleType name='PatternEnumType1'?
        ?xs:restriction base='xs:string'?
          ?xs:enumeration value='EMAIL_ADDRESS'/?
          ?xs:enumeration value='TELEPHONE_NUMBER'/?
        ?/xs:restriction?
      ?/xs:simpleType?
    ?/xs:schema?
    
    2) Right click on the xsd and select generate -? Java.
    3) Click Next.
    4) Enter package name (optional) and click Finish.
    
    Local fix:
    
    There is no known workaround at this time.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The URI for the RTC-controlled source files begins with
    sourcecontrol: This was not properly handled when
    constructing the file: protocol for the schemas.
    

Problem conclusion

  • Take into account this protocol and construct the proper
    file URI.  The fix for this APAR is included in Rational
    Application Developer v8.0.4.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM63065

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    804

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-23

  • Closed date

    2012-12-15

  • Last modified date

    2012-12-15

  • 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

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R804 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 December 2012