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 243795

Summary: circular dependency through xml catalog causes infinite loop at code completion
Product: xml Reporter: kumm
Component: Schema ToolsAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description kumm 2014-04-13 10:05:56 UTC
I have two schema files depend each other.
---a.xsd---
<schema version="1.0"
        xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:c="urn:c"
        targetNamespace="urn:a"
        elementFormDefault="qualified">
    <import namespace="urn:c" schemaLocation="http://c.xsd"/>
    <group name="aa">
        <choice>
            <element ref="c:el"/>
        </choice>
    </group>
</schema>
---c.xsd---
<schema version="1.0"
           xmlns="http://www.w3.org/2001/XMLSchema"
           xmlns:a="urn:a"
           targetNamespace="urn:c"
           elementFormDefault="qualified">
    <import namespace="urn:a" schemaLocation="http://a.xsd"/>
    <element name="el">
        <complexType>
            <group maxOccurs="unbounded" minOccurs="0" ref="a:aa"/>
        </complexType>
    </element>
</schema>

I define schema location uris in an oasis xml catalog file:
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" 
         xml:base="file:///[path_where_you_saved_xsds]">
    <system systemId="http://a.xsd" uri="a.xsd"/>
    <system systemId="http://c.xsd" uri="c.xsd"/>
</catalog>

I define the catalog file in netbeans. An infinite loop occures while editing an xml like this:
<el
    xmlns="urn:c"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:c http://c.xsd ">
[type '<' here]
</el>

When i use direct filename for all schemaLocation instead of url everything works fine.
Comment 1 Martin Balin 2016-07-07 09:56:42 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss