users@jaxb.java.net

Re: OutOfMemory: I need help to compile big schema

From: David F. Wall <dwall_at_foliage.com>
Date: Fri, 16 May 2003 14:03:03 -0400

Well, I gave it a quick whirl, and it failed.

HOWEVER

Seeing the mds-2001.xsd is 249KB and it does only one small include, I tried
doing that separately, and got a whole bunch of errors:

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:PhoneType' to a(n) type
definition component.
  line 1188 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:phoneticAlphabetType' to
a(n) type definition component.
  line 1191 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:phoneticAlphabetType' to
a(n) simpleType definition component.
  line 1191 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:phoneticAlphabetType' to
a(n) type definition component.
  line 2070 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:phoneticAlphabetType' to
a(n) simpleType definition component.
  line 2070 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:WordType' to a(n) type
definition component.
  line 2057 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:RegionLocatorType' to
a(n) type definition component.
  line 2912 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name
'mpeg7:SpatioTemporalLocatorType' to a(n) type definition component.
  line 2938 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:RegionLocatorType' to
a(n) type definition component.
  line 3049 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:GridLayoutType' to a(n)
type definition component.
  line 3060 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:MultipleViewType' to
a(n) type definition component.
  line 3062 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:MultipleViewType' to
a(n) type definition component.
  line 3172 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:VisualTimeSeriesType' to
a(n) type definition component.
  line 3209 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:MultipleViewType' to
a(n) type definition component.
  line 3211 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name
'mpeg7:SpatioTemporalLocatorType' to a(n) type definition component.
  line 3283 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:VisualTimeSeriesType' to
a(n) type definition component.
  line 3289 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:MultipleViewType' to
a(n) type definition component.
  line 3291 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name
'mpeg7:SpatioTemporalLocatorType' to a(n) type definition component.
  line 3518 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:VisualTimeSeriesType' to
a(n) type definition component.
  line 3638 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:RegionLocatorType' to
a(n) type definition component.
  line 3697 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:RegionLocatorType' to
a(n) type definition component.
  line 3713 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:RegionLocatorType' to
a(n) type definition component.
  line 4675 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:RegionLocatorType' to
a(n) type definition component.
  line 4903 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name
'mpeg7:SpatioTemporalLocatorType' to a(n) type definition component.
  line 4904 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:RegionLocatorType' to
a(n) type definition component.
  line 4934 of mds-2001.xsd

[ERROR] src-resolve: Cannot resolve the name 'mpeg7:RegionLocatorType' to
a(n) type definition component.
  line 4979 of mds-2001.xsd

[ERROR] cos-nonambig: "urn:mpeg:mpeg7:schema:2001":InternalTransition and
"urn:mpeg:mpeg7:schema:2001":InternalTransition (or elements from their
substitution group) violate "Unique Particle Attribution".
  line 4127 of mds-2001.xsd

[ERROR] cos-nonambig: "urn:mpeg:mpeg7:schema:2001":InternalTransition and
"urn:mpeg:mpeg7:schema:2001":InternalTransition (or elements from their
substitution group) violate "Unique Particle Attribution".
  line 4060 of mds-2001.xsd

[ERROR] cos-nonambig: "urn:mpeg:mpeg7:schema:2001":CompositionTransition and
"urn:mpeg:mpeg7:schema:2001":CompositionTransition (or elements from their
substitution group) violate "Unique Particle Attribution".
  line 3994 of mds-2001.xsd

[ERROR] cos-nonambig: "urn:mpeg:mpeg7:schema:2001":GlobalTransition and
"urn:mpeg:mpeg7:schema:2001":GlobalTransition (or elements from their
substitution group) violate "Unique Particle Attribution".
  line 3919 of mds-2001.xsd

Failed to parse a schema.

But no OutOfMemoryError.

I am not an XML expert, a schema expert, or an MPEG expert, but if I were in
your position, I'd start by finding out why mds-2001.xsd provokes this
behavior out of JAXB. It might be
that going down error paths is resulting in a lot of memory consumption that
wouldn't
occur if this parsed cleanly.