You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Savorjava (JIRA)" <xe...@xml.apache.org> on 2005/09/14 10:23:11 UTC

[jira] Created: (XERCESC-1495) v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.

v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.
---------------------------------------------------------------------------------------------------------------------------------------------------

         Key: XERCESC-1495
         URL: http://issues.apache.org/jira/browse/XERCESC-1495
     Project: Xerces-C++
        Type: Bug
  Components: Validating Parser (Schema) (Xerces 1.5 or up only)  
    Versions: 2.6.0    
 Environment: Win2000, VC++, STLPORT
    Reporter: Savorjava
    Priority: Blocker


Xerces-C++ has not prepared for industry developing and application. I was trying to parse a xml file with target namespace and I indicated to check the schema, DOMBuilder is really slow and finally tell me:
-----------------------------------------------------------------------
Fatal Error at file , line 0, char 0
  Message: An exception occurred! Type:NetAccessorException, Message:Could not c
onnect to the socket for URL 'http://www.w3.org/2001/xml.xsd'

Fatal Error at file E:\works\IMS\PS\XML\Release/resource_lists.xsd, line 7, char
 55
  Message: Fatal error encountered during schema scan

Errors occurred, no output available
------------------------------------------------------------------------

by the way, I use DOMCount in samples of Xerces-C++2.6 to handle a xml and a xsd file(indicate 2 xsd file in a xml is same too). here is my command:
DOMCount  -n -s -v=always b.xml

partial content of b.xml:
<?xml version="1.0" encoding="UTF-8"?>
   <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:resource-lists resource_lists.xsd">
    <list name="friends">
     <entry uri="sip:bill@example.com">
      <display-name>Bill Doe</display-name>
     </entry>
     <entry-ref ref="resource-lists/users/bill/mylist/~~/resource-lists/l
   ist%5b@name=%22list1%22%5d/entry%5b@uri=%22sip:petri@example.com%22%5d"/>
     <list name="close-friends">
      <display-name>Close Friends</display-name>
      <entry uri="sip:joe@example.com">
       <display-name>Joe Smith</display-name>
      </entry>
      <entry uri="sip:nancy@example.com">
       <display-name>Nancy Gross</display-name>
      </entry>
      <external anchor="http://www.example.org/xcap/resource-lists/users/a
   /foo/~~/resource-lists/list%5b@name=%22mkting%22%5d">
        <display-name>Marketing</display-name>
       </external>
     </list>
    </list>
   </resource-lists>

partial content of resource_lists.xsd:
<?xml version="1.0" encoding="UTF-8"?>
   <xs:schema targetNamespace="urn:ietf:params:xml:ns:resource-lists"
    xmlns="urn:ietf:params:xml:ns:resource-lists"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
		elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:import namespace="http://www.w3.org/XML/1998/namespace"
     schemaLocation="http://www.w3.org/2001/xml.xsd"/>
    <xs:complexType name="listType">
     <xs:sequence>
...

it doesn't work well, I think Xerces-C++ is too young to handle complex Schema, I hope it will be strong soon.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1495) v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.

Posted by "Savorjava (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1495?page=comments#action_12324519 ] 

Savorjava commented on XERCESC-1495:
------------------------------------

Thank you for your information, i just found my resource_lists.xsd file include http://www.w3.org/2001/xml.xsd. sorry to trouble you so much, please remove my question: 1496


> v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1495
>          URL: http://issues.apache.org/jira/browse/XERCESC-1495
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.6.0
>  Environment: Win2000, VC++, STLPORT
>     Reporter: Savorjava
>     Priority: Blocker

>
> Xerces-C++ has not prepared for industry developing and application. I was trying to parse a xml file with target namespace and I indicated to check the schema, DOMBuilder is really slow and finally tell me:
> -----------------------------------------------------------------------
> Fatal Error at file , line 0, char 0
>   Message: An exception occurred! Type:NetAccessorException, Message:Could not c
> onnect to the socket for URL 'http://www.w3.org/2001/xml.xsd'
> Fatal Error at file E:\works\IMS\PS\XML\Release/resource_lists.xsd, line 7, char
>  55
>   Message: Fatal error encountered during schema scan
> Errors occurred, no output available
> ------------------------------------------------------------------------
> by the way, I use DOMCount in samples of Xerces-C++2.6 to handle a xml and a xsd file(indicate 2 xsd file in a xml is same too). here is my command:
> DOMCount  -n -s -v=always b.xml
> partial content of b.xml:
> <?xml version="1.0" encoding="UTF-8"?>
>    <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:resource-lists resource_lists.xsd">
>     <list name="friends">
>      <entry uri="sip:bill@example.com">
>       <display-name>Bill Doe</display-name>
>      </entry>
>      <entry-ref ref="resource-lists/users/bill/mylist/~~/resource-lists/l
>    ist%5b@name=%22list1%22%5d/entry%5b@uri=%22sip:petri@example.com%22%5d"/>
>      <list name="close-friends">
>       <display-name>Close Friends</display-name>
>       <entry uri="sip:joe@example.com">
>        <display-name>Joe Smith</display-name>
>       </entry>
>       <entry uri="sip:nancy@example.com">
>        <display-name>Nancy Gross</display-name>
>       </entry>
>       <external anchor="http://www.example.org/xcap/resource-lists/users/a
>    /foo/~~/resource-lists/list%5b@name=%22mkting%22%5d">
>         <display-name>Marketing</display-name>
>        </external>
>      </list>
>     </list>
>    </resource-lists>
> partial content of resource_lists.xsd:
> <?xml version="1.0" encoding="UTF-8"?>
>    <xs:schema targetNamespace="urn:ietf:params:xml:ns:resource-lists"
>     xmlns="urn:ietf:params:xml:ns:resource-lists"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema"
> 		elementFormDefault="qualified" attributeFormDefault="unqualified">
>     <xs:import namespace="http://www.w3.org/XML/1998/namespace"
>      schemaLocation="http://www.w3.org/2001/xml.xsd"/>
>     <xs:complexType name="listType">
>      <xs:sequence>
> ...
> it doesn't work well, I think Xerces-C++ is too young to handle complex Schema, I hope it will be strong soon.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Resolved: (XERCESC-1495) v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1495?page=all ]
     
Alberto Massari resolved XERCESC-1495:
--------------------------------------

    Resolution: Cannot Reproduce

It works for me; have you checked if you are behind a proxy or firewall that blocks the connection? 
Try opening a console window and issue "telnet www.w3.org 80" and verify if you can reach the server.

> v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1495
>          URL: http://issues.apache.org/jira/browse/XERCESC-1495
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.6.0
>  Environment: Win2000, VC++, STLPORT
>     Reporter: Savorjava
>     Priority: Blocker

>
> Xerces-C++ has not prepared for industry developing and application. I was trying to parse a xml file with target namespace and I indicated to check the schema, DOMBuilder is really slow and finally tell me:
> -----------------------------------------------------------------------
> Fatal Error at file , line 0, char 0
>   Message: An exception occurred! Type:NetAccessorException, Message:Could not c
> onnect to the socket for URL 'http://www.w3.org/2001/xml.xsd'
> Fatal Error at file E:\works\IMS\PS\XML\Release/resource_lists.xsd, line 7, char
>  55
>   Message: Fatal error encountered during schema scan
> Errors occurred, no output available
> ------------------------------------------------------------------------
> by the way, I use DOMCount in samples of Xerces-C++2.6 to handle a xml and a xsd file(indicate 2 xsd file in a xml is same too). here is my command:
> DOMCount  -n -s -v=always b.xml
> partial content of b.xml:
> <?xml version="1.0" encoding="UTF-8"?>
>    <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:resource-lists resource_lists.xsd">
>     <list name="friends">
>      <entry uri="sip:bill@example.com">
>       <display-name>Bill Doe</display-name>
>      </entry>
>      <entry-ref ref="resource-lists/users/bill/mylist/~~/resource-lists/l
>    ist%5b@name=%22list1%22%5d/entry%5b@uri=%22sip:petri@example.com%22%5d"/>
>      <list name="close-friends">
>       <display-name>Close Friends</display-name>
>       <entry uri="sip:joe@example.com">
>        <display-name>Joe Smith</display-name>
>       </entry>
>       <entry uri="sip:nancy@example.com">
>        <display-name>Nancy Gross</display-name>
>       </entry>
>       <external anchor="http://www.example.org/xcap/resource-lists/users/a
>    /foo/~~/resource-lists/list%5b@name=%22mkting%22%5d">
>         <display-name>Marketing</display-name>
>        </external>
>      </list>
>     </list>
>    </resource-lists>
> partial content of resource_lists.xsd:
> <?xml version="1.0" encoding="UTF-8"?>
>    <xs:schema targetNamespace="urn:ietf:params:xml:ns:resource-lists"
>     xmlns="urn:ietf:params:xml:ns:resource-lists"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema"
> 		elementFormDefault="qualified" attributeFormDefault="unqualified">
>     <xs:import namespace="http://www.w3.org/XML/1998/namespace"
>      schemaLocation="http://www.w3.org/2001/xml.xsd"/>
>     <xs:complexType name="listType">
>      <xs:sequence>
> ...
> it doesn't work well, I think Xerces-C++ is too young to handle complex Schema, I hope it will be strong soon.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1495) v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.

Posted by "Savorjava (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1495?page=comments#action_12324515 ] 

Savorjava commented on XERCESC-1495:
------------------------------------

you mean i have to have ability to visit internet when i develop or use the program? I really don't think we need that, why Xerces-C++ could not get xml.xsd inside? that is to say I can't do anything with schema parser if i am not on the Internet, doesn't it? the fact is my developing enviroment is behind a proxy.

> v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1495
>          URL: http://issues.apache.org/jira/browse/XERCESC-1495
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.6.0
>  Environment: Win2000, VC++, STLPORT
>     Reporter: Savorjava
>     Priority: Blocker

>
> Xerces-C++ has not prepared for industry developing and application. I was trying to parse a xml file with target namespace and I indicated to check the schema, DOMBuilder is really slow and finally tell me:
> -----------------------------------------------------------------------
> Fatal Error at file , line 0, char 0
>   Message: An exception occurred! Type:NetAccessorException, Message:Could not c
> onnect to the socket for URL 'http://www.w3.org/2001/xml.xsd'
> Fatal Error at file E:\works\IMS\PS\XML\Release/resource_lists.xsd, line 7, char
>  55
>   Message: Fatal error encountered during schema scan
> Errors occurred, no output available
> ------------------------------------------------------------------------
> by the way, I use DOMCount in samples of Xerces-C++2.6 to handle a xml and a xsd file(indicate 2 xsd file in a xml is same too). here is my command:
> DOMCount  -n -s -v=always b.xml
> partial content of b.xml:
> <?xml version="1.0" encoding="UTF-8"?>
>    <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:resource-lists resource_lists.xsd">
>     <list name="friends">
>      <entry uri="sip:bill@example.com">
>       <display-name>Bill Doe</display-name>
>      </entry>
>      <entry-ref ref="resource-lists/users/bill/mylist/~~/resource-lists/l
>    ist%5b@name=%22list1%22%5d/entry%5b@uri=%22sip:petri@example.com%22%5d"/>
>      <list name="close-friends">
>       <display-name>Close Friends</display-name>
>       <entry uri="sip:joe@example.com">
>        <display-name>Joe Smith</display-name>
>       </entry>
>       <entry uri="sip:nancy@example.com">
>        <display-name>Nancy Gross</display-name>
>       </entry>
>       <external anchor="http://www.example.org/xcap/resource-lists/users/a
>    /foo/~~/resource-lists/list%5b@name=%22mkting%22%5d">
>         <display-name>Marketing</display-name>
>        </external>
>      </list>
>     </list>
>    </resource-lists>
> partial content of resource_lists.xsd:
> <?xml version="1.0" encoding="UTF-8"?>
>    <xs:schema targetNamespace="urn:ietf:params:xml:ns:resource-lists"
>     xmlns="urn:ietf:params:xml:ns:resource-lists"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema"
> 		elementFormDefault="qualified" attributeFormDefault="unqualified">
>     <xs:import namespace="http://www.w3.org/XML/1998/namespace"
>      schemaLocation="http://www.w3.org/2001/xml.xsd"/>
>     <xs:complexType name="listType">
>      <xs:sequence>
> ...
> it doesn't work well, I think Xerces-C++ is too young to handle complex Schema, I hope it will be strong soon.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1495) v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1495?page=comments#action_12324516 ] 

Alberto Massari commented on XERCESC-1495:
------------------------------------------

Xerces doesn't do magic for you: if you tell him to go and fetch a schema from http://www.w3.org/2001/xml.xsd, he goes there and get it. If you cannot reach that web site, it's up to you to either change the schema to point to a local file (clearly, a copy of the one sitting on www.w3.org), or to install an EntityResolver that maps the remote URL to a local file (see the Redirect sample on how to do that).

> v2.6 always tell me "Could not connect to the socket for URL 'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target namespace.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1495
>          URL: http://issues.apache.org/jira/browse/XERCESC-1495
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.6.0
>  Environment: Win2000, VC++, STLPORT
>     Reporter: Savorjava
>     Priority: Blocker

>
> Xerces-C++ has not prepared for industry developing and application. I was trying to parse a xml file with target namespace and I indicated to check the schema, DOMBuilder is really slow and finally tell me:
> -----------------------------------------------------------------------
> Fatal Error at file , line 0, char 0
>   Message: An exception occurred! Type:NetAccessorException, Message:Could not c
> onnect to the socket for URL 'http://www.w3.org/2001/xml.xsd'
> Fatal Error at file E:\works\IMS\PS\XML\Release/resource_lists.xsd, line 7, char
>  55
>   Message: Fatal error encountered during schema scan
> Errors occurred, no output available
> ------------------------------------------------------------------------
> by the way, I use DOMCount in samples of Xerces-C++2.6 to handle a xml and a xsd file(indicate 2 xsd file in a xml is same too). here is my command:
> DOMCount  -n -s -v=always b.xml
> partial content of b.xml:
> <?xml version="1.0" encoding="UTF-8"?>
>    <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:resource-lists resource_lists.xsd">
>     <list name="friends">
>      <entry uri="sip:bill@example.com">
>       <display-name>Bill Doe</display-name>
>      </entry>
>      <entry-ref ref="resource-lists/users/bill/mylist/~~/resource-lists/l
>    ist%5b@name=%22list1%22%5d/entry%5b@uri=%22sip:petri@example.com%22%5d"/>
>      <list name="close-friends">
>       <display-name>Close Friends</display-name>
>       <entry uri="sip:joe@example.com">
>        <display-name>Joe Smith</display-name>
>       </entry>
>       <entry uri="sip:nancy@example.com">
>        <display-name>Nancy Gross</display-name>
>       </entry>
>       <external anchor="http://www.example.org/xcap/resource-lists/users/a
>    /foo/~~/resource-lists/list%5b@name=%22mkting%22%5d">
>         <display-name>Marketing</display-name>
>        </external>
>      </list>
>     </list>
>    </resource-lists>
> partial content of resource_lists.xsd:
> <?xml version="1.0" encoding="UTF-8"?>
>    <xs:schema targetNamespace="urn:ietf:params:xml:ns:resource-lists"
>     xmlns="urn:ietf:params:xml:ns:resource-lists"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema"
> 		elementFormDefault="qualified" attributeFormDefault="unqualified">
>     <xs:import namespace="http://www.w3.org/XML/1998/namespace"
>      schemaLocation="http://www.w3.org/2001/xml.xsd"/>
>     <xs:complexType name="listType">
>      <xs:sequence>
> ...
> it doesn't work well, I think Xerces-C++ is too young to handle complex Schema, I hope it will be strong soon.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org