Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4291

Wadl2java tool executing by cxf-wadl2java-plugin fails if run without tuning JAVA Garbage Collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.5.4, 2.6.1
    • JAX-RS, Tooling
    • None
    • Unknown

    Description

      With several examples tha includes distinct grammars external schemes, the wadl2java tool fails if no executed "mvn generate-sources" with memory tunning java params. The error message:

      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 8.815s
      [INFO] Finished at: Mon May 07 08:13:29 BST 2012
      [INFO] Final Memory: 5M/27M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.cxf:cxf-wadl2java-plugin:2.6.0:wadl2java (generate-sources) on project cxf_2_6_0_wadl: java.lang.RuntimeException: No XmlSchema in SchemaInfo -> [Help 1]
      [ERROR]

      The problem is the class "org.apache.cxf.service.model.SchemaInfo" that uses "org.apache.cxf.service.model.SoftReference". This implies that
      the garbage collector resets Namespaces declared in a previous import.

      Example:

      <grammars>
      <include href="../sdmx21/SDMXMessage.xsd"/>
      <include href="SDMXRestTypes.xsd"/>
      </grammars>

      And the SDMXRestTypes.xsd references SDMXMessage.xsd namespaces.

      Executed maven task with for example -Xms512M -Xmx1024M is successful.

      Attachments

        1. cxf_2_6_0_wadl.zip
          351 kB
          Zebensui Méndez

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            cromody Zebensui Méndez
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: