<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi all.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>I get an exception in openXcap when I send
a GET to retrieve the resources file. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I explain the process I followed:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>----->Send GET to openXcap.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><----Receive 404, because there is not
file.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>-----> Send PUT to openXcap. The body
contains a resource-list.xml document ‘with no data’:<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US>Body;<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US><?xml
version='1.0' encoding='UTF-8'?><o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US><resource-lists
xmlns='urn:ietf:params:xml:ns:resource-lists' xmlns:cp='urn:ietf:params:xml:ns:copycontrol'><o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt'><span
lang=EN-US><list></list><o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US></resource-lists><o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><----Receive 200 OK. So openXcap likes
my document.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>-----> Send GET to openXcap.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><---- 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.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>The server log says:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] Exception rendering:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] Traceback (most recent call last):<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] File
"/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 228, in mainLoop<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] self.runUntilCurrent()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] File
"/usr/lib/python2.4/site-packages/twisted/internet/base.py", line
533, in runUntilCurrent<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] f(*a, **kw)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
239, in callback<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] self._startRunCallbacks(result)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
304, in _startRunCallbacks<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] self._runCallbacks()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] --- <exception caught here> ---<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
317, in _runCallbacks<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] self.result =
callback(self.result, *args, **kw)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] File
"/usr/lib/python2.4/site-packages/xcap/resource.py", line 51, in
sendResponse<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] response =
http.Response(response.code, stream=response.data)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] File
"/usr/lib/python2.4/site-packages/twisted/web2/http.py", line 109, in
__init__<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Oct 30 15:01:55 localhost openxcap[2791]:
[-] self.stream =
IByteStream(stream)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>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>)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Anyone know what is wrong?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thanks and best regards.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Gregorio<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>