Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-37

miniscule xmlforms doc takes 4 minutes to validate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • Version 1, Version 2
    • None
    • Validator
    • None
    • P4 2.6 Gig, 1 GB ram

    Description

      Miniscule xmlforms doc below takes 4 minutes to validate.

      <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
      </xforms:model>

      This happens with my code or with
      org.apache.xmlbeans.impl.tool.InstanceValidator.

      The schemas are available at www.w3c.org. Note that the time isn't
      being spent downloading schemas.

      Kicked off several thread dumps. They all looked like the one
      below. So at least we know that xmlbeans isn't recursing
      ad infinitum.

      Also xerces and a few xml editors managed to validate the doc
      in just a couple of seconds. ( Max )

      Full thread dump Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode):

      "Signal Dispatcher" daemon prio=10 tid=0x00992b08 nid=0xfc0 waiting on condition [0..0]

      "Finalizer" daemon prio=9 tid=0x00990148 nid=0xd28 in Object.wait() [2b4f000..2b4fd8c]
      at java.lang.Object.wait(Native Method)

      • waiting on <0x10503128> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
      • locked <0x10503128> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

      "Reference Handler" daemon prio=10 tid=0x0098ed18 nid=0xd2c in Object.wait() [2b0f000..2b0fd8c]
      at java.lang.Object.wait(Native Method)

      • waiting on <0x10503190> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:429)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
      • locked <0x10503190> (a java.lang.ref.Reference$Lock)

      "main" prio=5 tid=0x00034e90 nid=0x764 runnable [7f000..7fc3c]
      at org.apache.xmlbeans.impl.schema.SchemaTypeVisitorImpl.visit(SchemaTypeVisitorImpl.java:356)
      at org.apache.xmlbeans.impl.schema.SchemaTypeVisitorImpl.visit(SchemaTypeVisitorImpl.java:300)
      at org.apache.xmlbeans.impl.validator.Validator$State.end(Validator.java:836)
      at org.apache.xmlbeans.impl.validator.Validator.endEvent(Validator.java:701)
      at org.apache.xmlbeans.impl.validator.Validator.nextEvent(Validator.java:191)
      at org.apache.xmlbeans.impl.store.Saver$ValidatorSaver.emitEvent(Saver.java:3759)
      at org.apache.xmlbeans.impl.store.Saver$ValidatorSaver.emitEvent(Saver.java:3719)
      at org.apache.xmlbeans.impl.store.Saver$ValidatorSaver.emitEnd(Saver.java:3585)
      at org.apache.xmlbeans.impl.store.Saver.processEnd(Saver.java:804)
      at org.apache.xmlbeans.impl.store.Saver.process(Saver.java:526)

      • locked <0x10017748> (a org.apache.xmlbeans.impl.store.Root)
        at org.apache.xmlbeans.impl.store.Saver$ValidatorSaver.<init>(Saver.java:3548)
        at org.apache.xmlbeans.impl.store.Type.validate(Type.java:280)
        at org.apache.xmlbeans.impl.values.XmlObjectBase.validate(XmlObjectBase.java:310)
      • locked <0x10017748> (a org.apache.xmlbeans.impl.store.Root)
        at org.apache.xmlbeans.impl.tool.InstanceValidator.main(InstanceValidator.java:130)

      "VM Thread" prio=5 tid=0x009cb6d0 nid=0xb4c runnable

      "VM Periodic Task Thread" prio=10 tid=0x0003fa90 nid=0x820 waiting on condition
      "Suspend Checker Thread" prio=10 tid=0x00992470 nid=0xefc runnable

      Attachments

        Activity

          People

            cezar Cezar Cristian Andrei
            d d
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: