You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by ji...@apache.org on 2004/04/12 23:19:58 UTC

[jira] Updated: (XERCERJ-224) DOM parser hangs

The following issue has been updated:

    Updater: Serge Knystautas (mailto:sergek@lokitech.com)
       Date: Mon, 12 Apr 2004 2:19 PM
    Changes:
             Attachment changed from Ruletrace.xml
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XERCERJ-224?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCERJ-224

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCERJ-224
    Summary: DOM parser hangs
       Type: Bug

     Status: Reopened

    Project: Xerces2-J

   Assignee: Xerces-J Developers Mailing List
   Reporter: Stan Hendryx

    Created: Mon, 11 Mar 2002 6:43 AM
    Updated: Mon, 12 Apr 2004 2:19 PM
Environment: Operating System: Windows NT/2K
Platform: PC

Description:
I just installed the Xerces-J 2.0.1 binaries zip package, and ran the 
samples.dom.Counter successfully on the provided data/personal.xml file. I put 
another xml file in the same data directory, and ran it again on that file, 
without validation or any other command line options, and the parser hangs -- 
no errors or warnings reported. Nothing. I'm using the default parser, 
dom.wrappers.Xerces. The file is a XMI 1.1/UML 1.3 model interchange file, 
which was validated by Rational Rose 2001 Enterprise Edition. There is no 
DOCTYPE declaration in the file. It is about 1500 lines, has a few hundred 
elements, and uses two standard OMG namespaces, for xmi and uml. I tried it 
with the -n option; same result, it still hangs. It doesn't recognize the -np 
option at all; it looks for a file named "-np". I tried it on another XML file 
I generated, that is much simpler, 418 elements, no namespaces, and it works 
OK. I'm suspicious that the namespaces may be causing the problem.

My JVM is J2RE 1.2.2 IBM build win122-2000720. My machine is a 600 MHz PIII, 
384MB of RAM, running WinNT 4.0.

I confirmed it is the parser, not the traversals, that is hanging, by putting 
some System.out.println statements in the dom/Counter.java source. It starts 
the parse, but hangs and never finishes, even after waiting about an hour. 

I can send you the xml file that is causing the problem, if you would like it. 

I had hoped to use Xerces to validate XMI files, DTD's and XML Schema's that I 
generate. I've heard only positive things about Xerces, and was very surprised 
to get no output whatsoever from the parser on my file. I do hope you can help 
me find out what the problem is, and fix it.

Thank you very much,

Stan Hendryx


---------------------------------------------------------------------
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org