hi server monitor,<br><br>    This error is becos of the python-mysqldb which you are using doesn&#39;t support the kind of stream data you are trying to send. If the python-mysqldb(which supports and clears the following errors)  is upgraded there is a reconnect error. i am yet to find the solution for this. if you find the solution please let me know.<br>
<br><br><div class="gmail_quote">On Thu, May 21, 2009 at 5:14 AM, server monitor <span dir="ltr">&lt;<a href="mailto:sms.server.monitoring@gmail.com">sms.server.monitoring@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All, testing a new OpenSips(1.6.0dev0-notls (i386/linux) and OpenXCAP Server using xcapclient and contained examples. <br><br>pres-rules PUT looks good:<br><br>[root@y examples]# xcapclient -i pres-rules.xml put<br>put <a href="http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index" target="_blank">http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index</a><br>

200 OK<br>etag: &quot;110ff8cd75ce541886107061f70c36ff&quot;<br>content-type: application/auth-policy+xml<br><br>pres-rules GET returns the following error:<br><br>[root@y examples]# xcapclient --app pres-rules get<br>get <a href="http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index" target="_blank">http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index</a><br>

500 Internal Server Error<br>content-type: text/plain<br>content-length: 96<br>An error occurred while processing the request. More information is available in the server log.<br><br>Log trace:<br><br>May 20 07:07:55 localhost openxcap[8994]: error: 192.168.1.103 &#39;GET /xcap-root/pres-rules/users/<a href="http://sip:8888888888@x.y.com/index" target="_blank">sip:8888888888@x.y.com/index</a> HTTP/1.1&#39; 500 0 96 &#39;python-xcaplib/1.0.9&#39; -<br>

May 20 07:07:55 localhost openxcap[8994]: error: RESPONSE headers:<br>May 20 07:07:55 localhost openxcap[8994]: error: #011Content-Type: text/plain<br>May 20 07:07:55 localhost openxcap[8994]: error: TRACEBACK (most recent call last):<br>

May 20 07:07:55 localhost openxcap[8994]: error: #011  File &quot;/usr/lib/python2.5/site-packages/twisted/internet/base.py&quot;, line 1137, in mainLoop<br>May 20 07:07:55 localhost openxcap[8994]: error: #011    self.runUntilCurrent()<br>

May 20 07:07:55 localhost openxcap[8994]: error: #011  File &quot;/usr/lib/python2.5/site-packages/twisted/internet/base.py&quot;, line 729, in runUntilCurrent<br>May 20 07:07:55 localhost openxcap[8994]: error: #011    f(*a, **kw)<br>

May 20 07:07:55 localhost openxcap[8994]: error: #011  File &quot;/usr/lib/python2.5/site-packages/twisted/internet/defer.py&quot;, line 243, in callback<br>May 20 07:07:55 localhost openxcap[8994]: error: #011    self._startRunCallbacks(result)<br>

May 20 07:07:55 localhost openxcap[8994]: error: #011  File &quot;/usr/lib/python2.5/site-packages/twisted/internet/defer.py&quot;, line 312, in _startRunCallbacks<br>May 20 07:07:55 localhost openxcap[8994]: error: #011    self._runCallbacks()<br>

May 20 07:07:55 localhost openxcap[8994]: error: #011--- &lt;exception caught here&gt; ---<br>May 20 07:07:55 localhost openxcap[8994]: error: #011  File &quot;/usr/lib/python2.5/site-packages/twisted/internet/defer.py&quot;, line 328, in _runCallbacks<br>

May 20 07:07:55 localhost openxcap[8994]: error: #011    self.result = callback(self.result, *args, **kw)<br>May 20 07:07:55 localhost openxcap[8994]: error: #011  File &quot;/usr/lib/python2.5/site-packages/xcap/resource.py&quot;, line 47, in sendResponse<br>

May 20 07:07:55 localhost openxcap[8994]: error: #011    response = http.Response(response.code, stream=response.data)<br>May 20 07:07:55 localhost openxcap[8994]: error: #011  File &quot;/usr/lib/python2.5/site-packages/twisted/web2/http.py&quot;, line 109, in __init__<br>

May 20 07:07:55 localhost openxcap[8994]: error: #011    self.stream = IByteStream(stream)<br>May 20 07:07:55 localhost openxcap[8994]: error: #011exceptions.TypeError: (&#39;Could not adapt&#39;, array(&#39;c&#39;, &#39;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;ruleset xmlns=&quot;urn:ietf:params:xml:ns:common-policy&quot; xmlns:pr=&quot;urn:ietf:params:xml:ns:pres-rules&quot; xmlns:cp=&quot;<a href="http://www.counterpath.com/privacy-lists" target="_blank">www.counterpath.com/privacy-lists</a>&quot;&gt;\r\n&lt;rule id=&quot;pres_whitelist&quot;&gt;\r\n&lt;conditions&gt;\r\n&lt;identity&gt;\r\n&lt;one id=&quot;<a href="mailto:sip%3Abob@example.com" target="_blank">sip:bob@example.com</a>&quot;/&gt;\r\n&lt;one id=&quot;<a href="mailto:sip%3Aalice@example.com" target="_blank">sip:alice@example.com</a>&quot;/&gt;\r\n&lt;many domain=&quot;<a href="http://ag-projects.com" target="_blank">ag-projects.com</a>&quot;&gt;\r\n&lt;/many&gt;\r\n&lt;/identity&gt;\r\n&lt;/conditions&gt;\r\n&lt;actions&gt;\r\n&lt;pr:sub-handling&gt;allow&lt;/pr:sub-handling&gt;\r\n&lt;/actions&gt;\r\n&lt;transformations&gt;\r\n&lt;pr:provide-services&gt;\r\n&lt;pr:all-services/&gt;\r\n&lt;/pr:provide-services&gt;\r\n&lt;pr:provide-persons&gt;\r\n&lt;pr:all-persons/&gt;\r\n&lt;/pr:provide-persons&gt;\r\n&lt;pr:provide-devices&gt;\r\n&lt;pr:all-devices/&gt;\r\n&lt;/pr:provide-devices&gt;\r\n&lt;pr:provide-all-attributes/&gt;\r\n&lt;/transformations&gt;\r\n&lt;/rule&gt;\r\n&lt;rule id=&quot;pres_blacklist&quot;&gt;\r\n&lt;conditions&gt;\r\n&lt;identity&gt;\r\n&lt;one id=&quot;<a href="mailto:sip%3A40316600024@abc.com" target="_blank">sip:40316600024@abc.com</a>&quot;/&gt;\r\n&lt;/identity&gt;\r\n&lt;/conditions&gt;\r\n&lt;actions&gt;\r\n&lt;pr:sub-handling&gt;block&lt;/pr:sub-handling&gt;\r\n&lt;/actions&gt;\r\n&lt;transformations/&gt;\r\n&lt;/rule&gt;\r\n&lt;/ruleset&gt;&#39;), &lt;InterfaceClass twisted.web2.stream.IByteStream&gt;)<br>

<br>Thanks for any clues,<br>Rob<br><br><br><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Thanking You,<br>Ashwini BR Naidu<br>