← Back to team overview

nova-api team mailing list archive

Error when generating REST stubs from compute api wadl

 

Hi all,

I've tried to use the tool wadl2java to generate REST stubs from WADL
compute api 1.1, and I'm getting the next error:

Processing:
file:/home/pnavarro/dev/wadl-dist-1.1-bin/wadl-dist-1.1/bin/os-compute-1.1.wadl
Processing:
file:/home/pnavarro/dev/wadl-dist-1.1-bin/wadl-dist-1.1/bin/xsd/api.xsd
Processing:
file:/home/pnavarro/dev/wadl-dist-1.1-bin/wadl-dist-1.1/bin/xsd/api-common.xsd
Warning: reference #DetailImageList not found in
file:/home/pnavarro/dev/wadl-dist-1.1-bin/wadl-dist-1.1/bin/os-compute-1.1.wadl,
skipping
Warning: s4s-elt-invalid-content.1: The content of
'ServerWithOnlyIDNameLinks' is invalid.  Element 'assert' is invalid,
misplaced, or occurs too often.
Warning: s4s-elt-invalid-content.1: The content of 'ServerForUpdate' is
invalid.  Element 'assert' is invalid, misplaced, or occurs too often.
Warning: s4s-elt-invalid-content.1: The content of
'FlavorWithOnlyIDNameLinks' is invalid.  Element 'assert' is invalid,
misplaced, or occurs too often.
Warning: s4s-elt-invalid-content.1: The content of
'ImageWithOnlyIDNameLinks' is invalid.  Element 'assert' is invalid,
misplaced, or occurs too often.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: rcase-Recurse.2: There is not a complete functional mapping
between the particles.
Warning: derivation-ok-restriction.5.4.2: Error for type
'ServersWithOnlyIDsNamesLinks'.  The particle of the type is not a valid
restriction of the particle of the base.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: rcase-Recurse.2: There is not a complete functional mapping
between the particles.
Warning: derivation-ok-restriction.5.4.2: Error for type
'FlavorsWithOnlyIDsNamesLinks'.  The particle of the type is not a valid
restriction of the particle of the base.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: rcase-Recurse.2: There is not a complete functional mapping
between the particles.
Warning: derivation-ok-restriction.5.4.2: Error for type
'ImagesWithOnlyIDsNamesLinks'.  The particle of the type is not a valid
restriction of the particle of the base.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/compute/api/v1.1";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: sch-props-correct.2: A schema cannot contain two global components
with the same name; this schema contains two occurrences of '
http://docs.openstack.org/common/api/v1.0,version'.
Warning: s4s-elt-invalid-content.1: The content of 'VersionChoiceList' is
invalid.  Element 'assert' is invalid, misplaced, or occurs too often.
Warning: s4s-elt-invalid-content.1: The content of 'VersionChoiceRoot' is
invalid.  Element 'assert' is invalid, misplaced, or occurs too often.
Warning: s4s-elt-invalid-content.1: The content of 'Extension' is invalid.
 Element 'assert' is invalid, misplaced, or occurs too often.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/common/api/v1.0";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"
http://docs.openstack.org/common/api/v1.0";] (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
*"Fatal Error: Unexpected <assert> appears at line 304 column 116*

Have anyone tried and success getting REST clients for JAVA from wadl?

Thanks in advance

Follow ups