[OpenSER-Users] OpenXcap exception: TypeError in twisted.web2.stream.IByteStream
Amit Vijayvargiya
amit.v at pyronetworks.com
Tue Dec 18 11:43:58 CET 2007
Hi all ,
any body please help me out with this problem
Dec 18 15:55:29 ankith openxcap[19852]: [-] Log opened.
Dec 18 15:55:29 ankith openxcap[19852]: [-] Starting Open XCAP 0.9.7
Dec 18 16:00:30 ankith openxcap[19852]: [-] Traceback (most recent call
last):
Dec 18 16:00:30 ankith openxcap[19852]: [-] File "/usr/bin/openxcap",
line 56, in ?
Dec 18 16:00:30 ankith openxcap[19852]: [-] from xcap.server import
XCAPServer
Dec 18 16:00:30 ankith openxcap[19852]: [-] File
"/usr/lib/python2.3/site-packages/xcap/server.py", line 21, in ?
Dec 18 16:00:30 ankith openxcap[19852]: [-] from xcap import
authentication
Dec 18 16:00:30 ankith openxcap[19852]: [-] File
"/usr/lib/python2.3/site-packages/xcap/authentication.py", line 21, in ?
Dec 18 16:00:30 ankith openxcap[19852]: [-] from xcap.appusage
import getApplicationForURI
Dec 18 16:00:30 ankith openxcap[19852]: [-] File
"/usr/lib/python2.3/site-packages/xcap/appusage/__init__.py", line 491,
in ?
Dec 18 16:00:30 ankith openxcap[19852]: [-] applications = {'xcap-
caps': XCAPCapabilitiesApplication(),
Dec 18 16:00:30 ankith openxcap[19852]: [-] File
"/usr/lib/python2.3/site-packages/xcap/appusage/__init__.py", line 64,
in __init__
Dec 18 16:00:30 ankith openxcap[19852]: [-] self.xml_schema =
etree.XMLSchema(xml_schema_doc)
Dec 18 16:00:30 ankith openxcap[19852]: [-] File "xmlschema.pxi", line
67, in etree.XMLSchema.__init__
Dec 18 16:00:30 ankith openxcap[19852]: [-] etree.XMLSchemaParseError:
Document is not valid XML Schema
I am using lxml
1.3.6 ..........................................................at least
I successfully run openxcap server.
I will be very thankful to all suggestion regarding this problem .
Regards
Amit
On Mon, 2007-11-05 at 11:20 +0100, Antoine Fressancourt wrote:
>
> Hello,
>
> I have the same error as Gregorio on my installation, I am running
> OpenSER 1.3 and my XCAP client is eyeBeam².
>
> Thanks in advance for your help,
>
> Antoine
>
>
> 2007/10/30, Gregorio <goyo.villalba at dialcom.com>:
>
> Hi all.
>
>
>
> I get an exception in openXcap when I send a GET to retrieve
> the resources file.
>
> I explain the process I followed:
>
>
>
> ----->Send GET to openXcap.
>
> <----Receive 404, because there is not file.
>
>
>
> -----> Send PUT to openXcap. The body contains a resource-
> list.xml document 'with no data':
>
> Body;
>
> <?xml version='1.0' encoding='UTF-8'?>
>
> <resource-lists xmlns='urn:ietf:params:xml:ns:resource-lists'
> xmlns:cp='urn:ietf:params:xml:ns:copycontrol'>
>
> <list></list>
>
> </resource-lists>
>
>
>
> <----Receive 200 OK. So openXcap likes my document.
>
>
>
> -----> Send GET to openXcap.
>
> <---- Receive 500 "An error occurred rendering the requested
> page. More information is available in the server log". So the
> same document that was accepted in the PUT throws an
> exception.
>
>
>
> The server log says:
>
>
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] Exception
> rendering:
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] Traceback (most
> recent call last):
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] File
> "/usr/lib/python2.4/site-
> packages/twisted/internet/posixbase.py", line 228, in mainLoop
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-]
> self.runUntilCurrent()
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] File
> "/usr/lib/python2.4/site-packages/twisted/internet/base.py",
> line 533, in runUntilCurrent
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] f(*a,
> **kw)
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] File
> "/usr/lib/python2.4/site-packages/twisted/internet/defer.py",
> line 239, in callback
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-]
> self._startRunCallbacks(result)
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] File
> "/usr/lib/python2.4/site-packages/twisted/internet/defer.py",
> line 304, in _startRunCallbacks
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-]
> self._runCallbacks()
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] ---
> <exception caught here> ---
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] File
> "/usr/lib/python2.4/site-packages/twisted/internet/defer.py",
> line 317, in _runCallbacks
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-]
> self.result = callback(self.result, *args, **kw)
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] File
> "/usr/lib/python2.4/site-packages/xcap/resource.py", line 51,
> in sendResponse
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] response
> = http.Response(response.code, stream=response.data)
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-] File
> "/usr/lib/python2.4/site-packages/twisted/web2/http.py", line
> 109, in __init__
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-]
> self.stream = IByteStream(stream)
>
> Oct 30 15:01:55 localhost openxcap[2791]: [-]
> exceptions.TypeError: ('Could not adapt', array('c', "<?xml
> version='1.0' encoding='UTF-8'?><resource-lists
> xmlns='urn:ietf:params:xml:ns:resource-lists'
> xmlns:cp='urn:ietf:params:xml:ns:copycontrol'><list></list></resource-lists>"), <InterfaceClass twisted.web2.stream.IByteStream>)
>
>
>
>
>
> Anyone know what is wrong?
>
> Thanks and best regards.
>
> Gregorio
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20071218/f7a226a1/attachment.htm>
More information about the sr-users
mailing list