You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-dev@xml.apache.org by xm...@xml.apache.org on 2004/06/23 23:37:28 UTC

[jira] Closed: (XMLBEANS-37) miniscule xmlforms doc takes 4 minutes to validate

Message:

   The following issue has been closed.

   Resolver: Cezar Andrei
       Date: Wed, 23 Jun 2004 2:37 PM

Applied optimization when state doesn't change.

Patch applied in v2 and v1(post v1.0.3 release).
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-37

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-37
    Summary: miniscule xmlforms doc takes 4 minutes to validate
       Type: Bug

     Status: Closed
   Priority: Blocker
 Resolution: FIXED

    Project: XMLBeans
 Components: 
             Validator
   Versions:
             Version 1
             Version 2

   Assignee: Cezar Andrei
   Reporter: d

    Created: Wed, 16 Jun 2004 10:16 PM
    Updated: Wed, 23 Jun 2004 2:37 PM
Environment: 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



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/