--> -->
 
 
<class 'urllib2.URLError'>
Python 2.6.5: /usr/local/bin/python
Mon Aug 19 03:18:44 2019

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /srv/www/sites/biocontext/cgi-bin/stage1.py in ()
  116                 redirect("stage3.py?" + data, "0")
  117                 
  118 cgitb.enable()
  119 util.printHTMLHeader()
  120 main()
main = <function main>
 /srv/www/sites/biocontext/cgi-bin/stage1.py in main()
   95                 url = "http://127.0.0.1:8080/axis2/services/anatomy/tag"
   96                 xmldata = "text=" + q_anatomy
   97                 gene_ner_xml = urlopen(url,xmldata).read()
   98 #               print "<br>Gene NER: <a href=\"" + gene_link + "\">" + gene_link + "</a><br>\n"
   99 #               print "<br><hr>"
gene_ner_xml undefined, global urlopen = <function urlopen>, url = 'http://127.0.0.1:8080/axis2/services/anatomy/tag', xmldata = 'text=T cells', ).read undefined
 /usr/local/lib/python2.6/urllib2.py in urlopen(url='http://127.0.0.1:8080/axis2/services/anatomy/tag', data='text=T cells', timeout=<object object>)
  124     if _opener is None:
  125         _opener = build_opener()
  126     return _opener.open(url, data, timeout)
  127 
  128 def install_opener(opener):
global _opener = <urllib2.OpenerDirector instance>, _opener.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, url = 'http://127.0.0.1:8080/axis2/services/anatomy/tag', data = 'text=T cells', timeout = <object object>
 /usr/local/lib/python2.6/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl='http://127.0.0.1:8080/axis2/services/anatomy/tag', data='text=T cells', timeout=<object object>)
  389             req = meth(req)
  390 
  391         response = self._open(req, data)
  392 
  393         # post-process response
response undefined, self = <urllib2.OpenerDirector instance>, self._open = <bound method OpenerDirector._open of <urllib2.OpenerDirector instance>>, req = <urllib2.Request instance>, data = 'text=T cells'
 /usr/local/lib/python2.6/urllib2.py in _open(self=<urllib2.OpenerDirector instance>, req=<urllib2.Request instance>, data='text=T cells')
  407         protocol = req.get_type()
  408         result = self._call_chain(self.handle_open, protocol, protocol +
  409                                   '_open', req)
  410         if result:
  411             return result
req = <urllib2.Request instance>
 /usr/local/lib/python2.6/urllib2.py in _call_chain(self=<urllib2.OpenerDirector instance>, chain={'file': [<urllib2.FileHandler instance>], 'ftp': [<urllib2.FTPHandler instance>], 'http': [<urllib2.HTTPHandler instance>], 'https': [<urllib2.HTTPSHandler instance>], 'unknown': [<urllib2.UnknownHandler instance>]}, kind='http', meth_name='http_open', *args=(<urllib2.Request instance>,))
  367             func = getattr(handler, meth_name)
  368 
  369             result = func(*args)
  370             if result is not None:
  371                 return result
result undefined, func = <bound method HTTPHandler.http_open of <urllib2.HTTPHandler instance>>, args = (<urllib2.Request instance>,)
 /usr/local/lib/python2.6/urllib2.py in http_open(self=<urllib2.HTTPHandler instance>, req=<urllib2.Request instance>)
 1159 
 1160     def http_open(self, req):
 1161         return self.do_open(httplib.HTTPConnection, req)
 1162 
 1163     http_request = AbstractHTTPHandler.do_request_
self = <urllib2.HTTPHandler instance>, self.do_open = <bound method HTTPHandler.do_open of <urllib2.HTTPHandler instance>>, global httplib = <module 'httplib' from '/usr/local/lib/python2.6/httplib.pyc'>, httplib.HTTPConnection = <class httplib.HTTPConnection>, req = <urllib2.Request instance>
 /usr/local/lib/python2.6/urllib2.py in do_open(self=<urllib2.HTTPHandler instance>, http_class=<class httplib.HTTPConnection>, req=<urllib2.Request instance>)
 1134             r = h.getresponse()
 1135         except socket.error, err: # XXX what error?
 1136             raise URLError(err)
 1137 
 1138         # Pick apart the HTTPResponse object to get the addinfourl
global URLError = <class 'urllib2.URLError'>, err = error(111, 'Connection refused')

<class 'urllib2.URLError'>: <urlopen error [Errno 111] Connection refused>
      args = (error(111, 'Connection refused'),)
      errno = None
      filename = None
      message = ''
      reason = error(111, 'Connection refused')
      strerror = None