Ticket #6 (closed Defect: Invalid)

Opened 14 months ago

Last modified 13 months ago

XMLSchemaParseError on openxcap start

Reported by: coriasco Owned by: admin
Priority: Minor Milestone: OpenXCAP 1.0 stable release
Component: XCAP protocol Version:
Severity: Critical Keywords:
Cc:

Description

Hi, I think I installed OpenXCAP with all correct dependencies. When I try to start the server, I get this:

Traceback (most recent call last):

File "/usr/bin/openxcap", line 56, in ?

from xcap.server import XCAPServer

File "/usr/lib/python2.4/site-packages/xcap/server.py", line 21, in ?

from xcap import authentication

File "/usr/lib/python2.4/site-packages/xcap/authentication.py", line 21, in ?

from xcap.appusage import getApplicationForURI

File "/usr/lib/python2.4/site-packages/xcap/appusage/init.py", line 465, in ?

applications = {'xcap-caps': XCAPCapabilitiesApplication(),

File "/usr/lib/python2.4/site-packages/xcap/appusage/init.py", line 63, in init

self.xml_schema = etree.XMLSchema(xml_schema_doc)

File "xmlschema.pxi", line 67, in etree.XMLSchema.init

raise XMLSchemaParseError, "Document is not valid XML Schema"

etree.XMLSchemaParseError: Document is not valid XML Schema

I tried to debug the Python code and I found the problem seems to be in parsing the 'resource-lists.xsd' schema located (in my installation) in "/usr/lib/python2.4/site-packages/xcap/appusage/../xml-schemas/".

I tried to use xmllint (in the libxml2) package to debug the 'resource-lists.xsd' file and I got these problems:

resource-lists.xsd:8: element complexType: Schemas parser error : complex type 'listType': The content model is not determinist. resource-lists.xsd:14: element complexType: Schemas parser error : local complex type: The content model is not determinist. WXS schema resource-lists.xsd failed to compile

Any idea? Is this my real problem or am I going wrong elsewhere?

Thank you

Giovanni

Change History

Changed 14 months ago by admin

  • owner changed from Mircea Amarascu to admin
  • status changed from new to accepted

Hello,

This might be related to the libxml2 version you're using, I know they are constantly updating the XML schema handling.

I ran xmllint over the resource-lists.xsd file and received no errors. These are the versions of the libraries I use (on e Debian system):

libxml2 2.6.29.dfsg-1 python-libxml2 2.6.29.dfsg-1 python-lxml 1.3.3-1

Changed 14 months ago by coriasco

  • status changed from accepted to closed
  • resolution changed from To be investigated to Fixed

I used libxml2-2.6.28 and now it works

thank you

Changed 13 months ago by schumann

  • status changed from closed to reopened
  • resolution Fixed deleted

Hello,

although I faced the same problem and did the described update (i.e. downgrade, if using current Debian unstable), I still have the error as described above.

I don't know what else to do. Acc. OpenSER mailing list, also other users discovered those probs and couldn't find any solution.

I would be grateful for more hints or mentioning issues which could lead to the error messages from the first post.

Thanks Sebastian

PS: As I couldn't get OpenXCAP to work yet under current Debian sid, I reopened the ticket.

Changed 13 months ago by ruud

  • status changed from reopened to closed
  • resolution set to Invalid

I cannot reproduce that error here when using said libxml2.

This seems to be a library problem, not an OpenXCAP problem. Also, the XML schema that is included comes straight out of the RFC.

Note: See TracTickets for help on using tickets.