[OpenSIPS-Users] Openxcap Parsing Error: xml declaration not at start of external entity
Has anyone seen this type of error? GET is successful but POST returns the following error: Jun 8 17:14:16 xcap openxcap[3603]: error: 12.111.111.111 'PUT /xcap-root/pres-rules/users/88/pres-rules.xml/~~/cr%3aruleset/cr%3arule%5b%40id=%22EmoWhiteList%22%5d/cr%3aconditions/cr%3aidentity/cr%3aone?xmlns(cr=urn%3aietf%3aparams%3axml%3ans%3acommon-policy) HTTP/1.1' 500 0 96 - - Jun 8 17:14:16 xcap openxcap[3603]: error: REQUEST: Jun 8 17:14:16 xcap openxcap[3603]: error: RESPONSE headers: Jun 8 17:14:16 xcap openxcap[3603]: error: #011Content-Type: text/plain Jun 8 17:14:16 xcap openxcap[3603]: error: TRACEBACK (most recent call last): Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1057, in mainLoop Jun 8 17:14:16 xcap openxcap[3603]: error: #011self.runUntilCurrent() Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 677, in runUntilCurrent Jun 8 17:14:16 xcap openxcap[3603]: error: #011f(*a, **kw) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in callback Jun 8 17:14:16 xcap openxcap[3603]: error: #011 self._startRunCallbacks(result) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks Jun 8 17:14:16 xcap openxcap[3603]: error: #011self._runCallbacks() Jun 8 17:14:16 xcap openxcap[3603]: error: #011--- --- Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks Jun 8 17:14:16 xcap openxcap[3603]: error: #011self.result = callback(self.result, *args, **kw) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/pymodules/python2.5/xcap/appusage/__init__.py", line 168, in _cb_put_element Jun 8 17:14:16 xcap openxcap[3603]: error: #011get_result = element.get(new_document, uri.node_selector.element_selector) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/pymodules/python2.5/xcap/element.py", line 384, in get Jun 8 17:14:16 xcap openxcap[3603]: error: #011location = find(document, element_selector) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/pymodules/python2.5/xcap/element.py", line 371, in find Jun 8 17:14:16 xcap openxcap[3603]: error: #011 parser.parse(StringIO(document)) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse Jun 8 17:14:16 xcap openxcap[3603]: error: #011 xmlreader.IncrementalParser.parse(self, source) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse Jun 8 17:14:16 xcap openxcap[3603]: error: #011self.feed(buffer) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line 220, in feed Jun 8 17:14:16 xcap openxcap[3603]: error: #011 self._err_handler.fatalError(exc) Jun 8 17:14:16 xcap openxcap[3603]: error: #011 File "/usr/lib/python2.5/site-packages/_xmlplus/sax/handler.py", line 38, in fatalError Jun 8 17:14:16 xcap openxcap[3603]: error: #011raise exception Jun 8 17:14:16 xcap openxcap[3603]: error: #011xml.sax._exceptions.SAXParseException: :1:246: xml declaration not at start of external entity ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenXCAP Test Examples
I`m at a loss at this point. Is anyone willing to upload an image of a known working install? On Thu, May 21, 2009 at 12:26 AM, ASHWINI NAIDU wrote: > Server monitor, > > As per i know i haven't found anything other than openxcap. i have also got > it working till where you have achieved on debian 4, CENTOS 5. Actually with > debian 5 everything is working working fine including the put,get and delete > methods with openxcap and sip-simple client. But still on my way to discover > how to use it properly. > > > > On Thu, May 21, 2009 at 11:10 AM, server monitor < > sms.server.monitor...@gmail.com> wrote: > >> Thanks Aswini, is there any scenario in which openxcap will run? >> >> Is there another project out there that will let you test presence docs >> and resource lists? >> >> I have managed to get everything to compile on Fedora core and very >> hesitant to start experimenting with mysqldb. >> >> Does anyone have any insight? >> >> Thanks, >> Rob >> >> >> >> >> >> On Wed, May 20, 2009 at 10:24 PM, ASHWINI NAIDU >> wrote: >> >>> hi server monitor, >>> >>> This error is becos of the python-mysqldb which you are using doesn'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. >>> >>> >>> On Thu, May 21, 2009 at 5:14 AM, server monitor < >>> sms.server.monitor...@gmail.com> wrote: >>> >>>> Hi All, testing a new OpenSips(1.6.0dev0-notls (i386/linux) and OpenXCAP >>>> Server using xcapclient and contained examples. >>>> >>>> pres-rules PUT looks good: >>>> >>>> [r...@y examples]# xcapclient -i pres-rules.xml put >>>> put >>>> http://x.y.com/xcap-root/pres-rules/users/sip:888...@x.y.com/index >>>> 200 OK >>>> etag: "110ff8cd75ce541886107061f70c36ff" >>>> content-type: application/auth-policy+xml >>>> >>>> pres-rules GET returns the following error: >>>> >>>> [r...@y examples]# xcapclient --app pres-rules get >>>> get >>>> http://x.y.com/xcap-root/pres-rules/users/sip:888...@x.y.com/index >>>> 500 Internal Server Error >>>> content-type: text/plain >>>> content-length: 96 >>>> An error occurred while processing the request. More information is >>>> available in the server log. >>>> >>>> Log trace: >>>> >>>> May 20 07:07:55 localhost openxcap[8994]: error: 192.168.1.103 'GET >>>> /xcap-root/pres-rules/users/sip:888...@x.y.com/index HTTP/1.1' 500 >>>> 0 96 'python-xcaplib/1.0.9' - >>>> May 20 07:07:55 localhost openxcap[8994]: error: RESPONSE headers: >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011Content-Type: >>>> text/plain >>>> May 20 07:07:55 localhost openxcap[8994]: error: TRACEBACK (most recent >>>> call last): >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >>>> "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1137, in >>>> mainLoop >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 >>>> self.runUntilCurrent() >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >>>> "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 729, in >>>> runUntilCurrent >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011f(*a, **kw) >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >>>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in >>>> callback >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 >>>> self._startRunCallbacks(result) >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >>>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in >>>> _startRunCallbacks >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 >>>> self._runCallbacks() >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011--- >>> caught here> --- >>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >>>> "/usr/lib/
Re: [OpenSIPS-Users] OpenXCAP Test Examples
Thanks Aswini, is there any scenario in which openxcap will run? Is there another project out there that will let you test presence docs and resource lists? I have managed to get everything to compile on Fedora core and very hesitant to start experimenting with mysqldb. Does anyone have any insight? Thanks, Rob On Wed, May 20, 2009 at 10:24 PM, ASHWINI NAIDU wrote: > hi server monitor, > > This error is becos of the python-mysqldb which you are using doesn'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. > > > On Thu, May 21, 2009 at 5:14 AM, server monitor < > sms.server.monitor...@gmail.com> wrote: > >> Hi All, testing a new OpenSips(1.6.0dev0-notls (i386/linux) and OpenXCAP >> Server using xcapclient and contained examples. >> >> pres-rules PUT looks good: >> >> [r...@y examples]# xcapclient -i pres-rules.xml put >> put >> http://x.y.com/xcap-root/pres-rules/users/sip:888...@x.y.com/index >> 200 OK >> etag: "110ff8cd75ce541886107061f70c36ff" >> content-type: application/auth-policy+xml >> >> pres-rules GET returns the following error: >> >> [r...@y examples]# xcapclient --app pres-rules get >> get >> http://x.y.com/xcap-root/pres-rules/users/sip:888...@x.y.com/index >> 500 Internal Server Error >> content-type: text/plain >> content-length: 96 >> An error occurred while processing the request. More information is >> available in the server log. >> >> Log trace: >> >> May 20 07:07:55 localhost openxcap[8994]: error: 192.168.1.103 'GET >> /xcap-root/pres-rules/users/sip:888...@x.y.com/index HTTP/1.1' 500 0 >> 96 'python-xcaplib/1.0.9' - >> May 20 07:07:55 localhost openxcap[8994]: error: RESPONSE headers: >> May 20 07:07:55 localhost openxcap[8994]: error: #011Content-Type: >> text/plain >> May 20 07:07:55 localhost openxcap[8994]: error: TRACEBACK (most recent >> call last): >> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >> "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1137, in >> mainLoop >> May 20 07:07:55 localhost openxcap[8994]: error: #011 >> self.runUntilCurrent() >> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >> "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 729, in >> runUntilCurrent >> May 20 07:07:55 localhost openxcap[8994]: error: #011f(*a, **kw) >> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in >> callback >> May 20 07:07:55 localhost openxcap[8994]: error: #011 >> self._startRunCallbacks(result) >> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in >> _startRunCallbacks >> May 20 07:07:55 localhost openxcap[8994]: error: #011 >> self._runCallbacks() >> May 20 07:07:55 localhost openxcap[8994]: error: #011--- > here> --- >> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in >> _runCallbacks >> May 20 07:07:55 localhost openxcap[8994]: error: #011self.result = >> callback(self.result, *args, **kw) >> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >> "/usr/lib/python2.5/site-packages/xcap/resource.py", line 47, in >> sendResponse >> May 20 07:07:55 localhost openxcap[8994]: error: #011response = >> http.Response(response.code, stream=response.data) >> May 20 07:07:55 localhost openxcap[8994]: error: #011 File >> "/usr/lib/python2.5/site-packages/twisted/web2/http.py", line 109, in >> __init__ >> May 20 07:07:55 localhost openxcap[8994]: error: #011self.stream = >> IByteStream(stream) >> May 20 07:07:55 localhost openxcap[8994]: error: #011exceptions.TypeError: >> ('Could not adapt', array('c', '> encoding="UTF-8"?>\r\n> xmlns:pr="urn:ietf:params:xml:ns:pres-rules" xmlns:cp=" >> www.counterpath.com/privacy-lists">\r\n> id="pres_whitelist">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nallow\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n> id="pres_blacklist">\r\n\r\n\r\n\r\n\r\n\r\n\r\nblock\r\n\r\n\r\n\r\n'), >> ) >> >> Thanks for any clues, >> Rob >> >> >> >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > > > -- > Thanking You, > Ashwini BR Naidu > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenXCAP Test Examples
Hi All, testing a new OpenSips(1.6.0dev0-notls (i386/linux) and OpenXCAP Server using xcapclient and contained examples. pres-rules PUT looks good: [r...@y examples]# xcapclient -i pres-rules.xml put put http://x.y.com/xcap-root/pres-rules/users/sip:888...@x.y.com/index 200 OK etag: "110ff8cd75ce541886107061f70c36ff" content-type: application/auth-policy+xml pres-rules GET returns the following error: [r...@y examples]# xcapclient --app pres-rules get get http://x.y.com/xcap-root/pres-rules/users/sip:888...@x.y.com/index 500 Internal Server Error content-type: text/plain content-length: 96 An error occurred while processing the request. More information is available in the server log. Log trace: May 20 07:07:55 localhost openxcap[8994]: error: 192.168.1.103 'GET /xcap-root/pres-rules/users/sip:888...@x.y.com/index HTTP/1.1' 500 0 96 'python-xcaplib/1.0.9' - May 20 07:07:55 localhost openxcap[8994]: error: RESPONSE headers: May 20 07:07:55 localhost openxcap[8994]: error: #011Content-Type: text/plain May 20 07:07:55 localhost openxcap[8994]: error: TRACEBACK (most recent call last): May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1137, in mainLoop May 20 07:07:55 localhost openxcap[8994]: error: #011 self.runUntilCurrent() May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 729, in runUntilCurrent May 20 07:07:55 localhost openxcap[8994]: error: #011f(*a, **kw) May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in callback May 20 07:07:55 localhost openxcap[8994]: error: #011 self._startRunCallbacks(result) May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks May 20 07:07:55 localhost openxcap[8994]: error: #011 self._runCallbacks() May 20 07:07:55 localhost openxcap[8994]: error: #011--- --- May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks May 20 07:07:55 localhost openxcap[8994]: error: #011self.result = callback(self.result, *args, **kw) May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/xcap/resource.py", line 47, in sendResponse May 20 07:07:55 localhost openxcap[8994]: error: #011response = http.Response(response.code, stream=response.data) May 20 07:07:55 localhost openxcap[8994]: error: #011 File "/usr/lib/python2.5/site-packages/twisted/web2/http.py", line 109, in __init__ May 20 07:07:55 localhost openxcap[8994]: error: #011self.stream = IByteStream(stream) May 20 07:07:55 localhost openxcap[8994]: error: #011exceptions.TypeError: ('Could not adapt', array('c', '\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nallow\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nblock\r\n\r\n\r\n\r\n'), ) Thanks for any clues, Rob ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Openxcap Install
Hi Ashwini, that was it. Thanks much. A note to all OPENXCAP`ers not building on Debian: An OS with Python 2.5 or better is the trick to smooth install. Fedora 10 as opposed to CentOS 5.3 for example. A list of dependencies and versions used available to anyone that needs. Thanks again for the help Rob On Fri, Apr 17, 2009 at 10:04 PM, ASHWINI NAIDU wrote: > hi Server monitor, > > Install python-mysqldb version 1.2.1-p2 or something near to > that. The python-mysqldb after the mentioned version doesn't have the > reconnect facility it has been deprecated. > > > On Sat, Apr 18, 2009 at 5:39 AM, server monitor < > sms.server.monitor...@gmail.com> wrote: > >> Hi, Can anyone help with what looks like a Python problem installing >> Openxcap? >> >> >> /usr/bin/openxcap --no-fork >> Starting OpenXCAP 1.1.0 >> Supported Root URIs: http://localhost/xcap-root >> Trusted peers: 192.168.1.102, 12.176.147.23 >> xcap.server.HTTPFactory starting on 80 >> error: Traceback (most recent call last): >> error: File "/usr/lib/python2.5/threading.py", line 462, in __bootstrap >> error: self.__bootstrap_inner() >> error: File "/usr/lib/python2.5/threading.py", line 486, in >> __bootstrap_inner >> error: self.run() >> error: File "/usr/lib/python2.5/threading.py", line 446, in run >> error: self.__target(*self.__args, **self.__kwargs) >> error: --- --- >> error: File >> "/usr/lib/python2.5/site-packages/twisted/python/threadpool.py", line 210, >> in _worker >> error: result = context.call(ctx, function, *args, **kwargs) >> error: File >> "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 59, in >> callWithContext >> error: return self.currentContext().callWithContext(ctx, func, *args, >> **kw) >> error: File >> "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in >> callWithContext >> error: return func(*args,**kw) >> error: File >> "/usr/lib/python2.5/site-packages/twisted/enterprise/adbapi.py", line 426, >> in _runInteraction >> error: conn = self.connectionFactory(self) >> error: File >> "/usr/lib/python2.5/site-packages/twisted/enterprise/adbapi.py", line 38, in >> __init__ >> error: self.reconnect() >> error: File >> "/usr/lib/python2.5/site-packages/twisted/enterprise/adbapi.py", line 75, in >> reconnect >> error: self._connection = self._pool.connect() >> error: File >> "/usr/lib/python2.5/site-packages/twisted/enterprise/adbapi.py", line 395, >> in connect >> error: conn = self.dbapi.connect(*self.connargs, **self.connkw) >> error: File "build/bdist.linux-i686/egg/MySQLdb/__init__.py", line 81, >> in Connect >> >> error: File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line >> 188, in __init__ >> >> error: exceptions.TypeError: 'reconnect' is an invalid keyword argument >> for this function >> >> >> I originally had MySQL-python-1.2.2-7 but tried upgrading to latest stable >> from their site. >> >> Thanks >> Rob >> >> >> >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > > > -- > Thanking You, > Ashwini BR Naidu > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Openxcap Install
Hi, Can anyone help with what looks like a Python problem installing Openxcap? /usr/bin/openxcap --no-fork Starting OpenXCAP 1.1.0 Supported Root URIs: http://localhost/xcap-root Trusted peers: 192.168.1.102, 12.176.147.23 xcap.server.HTTPFactory starting on 80 error: Traceback (most recent call last): error: File "/usr/lib/python2.5/threading.py", line 462, in __bootstrap error: self.__bootstrap_inner() error: File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner error: self.run() error: File "/usr/lib/python2.5/threading.py", line 446, in run error: self.__target(*self.__args, **self.__kwargs) error: --- --- error: File "/usr/lib/python2.5/site-packages/twisted/python/threadpool.py", line 210, in _worker error: result = context.call(ctx, function, *args, **kwargs) error: File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 59, in callWithContext error: return self.currentContext().callWithContext(ctx, func, *args, **kw) error: File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in callWithContext error: return func(*args,**kw) error: File "/usr/lib/python2.5/site-packages/twisted/enterprise/adbapi.py", line 426, in _runInteraction error: conn = self.connectionFactory(self) error: File "/usr/lib/python2.5/site-packages/twisted/enterprise/adbapi.py", line 38, in __init__ error: self.reconnect() error: File "/usr/lib/python2.5/site-packages/twisted/enterprise/adbapi.py", line 75, in reconnect error: self._connection = self._pool.connect() error: File "/usr/lib/python2.5/site-packages/twisted/enterprise/adbapi.py", line 395, in connect error: conn = self.dbapi.connect(*self.connargs, **self.connkw) error: File "build/bdist.linux-i686/egg/MySQLdb/__init__.py", line 81, in Connect error: File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 188, in __init__ error: exceptions.TypeError: 'reconnect' is an invalid keyword argument for this function I originally had MySQL-python-1.2.2-7 but tried upgrading to latest stable from their site. Thanks Rob ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users