This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 192570 - ArrayIndexOutOfBoundsException: 3
Summary: ArrayIndexOutOfBoundsException: 3
Status: RESOLVED INCOMPLETE
Alias: None
Product: xml
Classification: Unclassified
Component: Catalog (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-27 14:58 UTC by marcosjunqueira
Modified: 2011-09-26 13:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 144979


Attachments
stacktrace (3.55 KB, text/plain)
2010-11-27 14:58 UTC, marcosjunqueira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcosjunqueira 2010-11-27 14:58:07 UTC
Build: NetBeans IDE 6.9 (Build 201011082200)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Windows 7

User Comments:
GUEST: Generating a DTD from an XMl. The XML already had a DTD. The files are in my local drive, but outside of my opened project.

GUEST: Loading Hibernate 3.0 Mapping XML Grammar

GUEST: CTRL+SPACE on an XML element that has a DTD attached




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 3
   at org.apache.xml.resolver.readers.TextCatalogReader.nextToken(TextCatalogReader.java:249)
   at org.apache.xml.resolver.readers.TR9401CatalogReader.readCatalog(TR9401CatalogReader.java:81)
   at org.apache.xml.resolver.Catalog.parseCatalog(Catalog.java:682)
   at org.netbeans.modules.xml.catalog.impl.sun.Catalog.createPeer(Catalog.java:284)
   at org.netbeans.modules.xml.catalog.impl.sun.Catalog.getPeer(Catalog.java:313)
   at org.netbeans.modules.xml.catalog.impl.sun.Catalog.resolveEntity(Catalog.java:252)
Comment 1 marcosjunqueira 2010-11-27 14:58:11 UTC
Created attachment 103401 [details]
stacktrace
Comment 2 Svata Dedic 2011-09-26 13:20:44 UTC
Please attach contents of the user catalogs mounted in Tools > DTD and XML schemas. It seems that content of some of them may be malformed, triggering a bug in Apache catalog impl.