Re: [pygridware-discuss] [Fwd: minor fix and error in client consumer.getEndPointReference()]

From: Joshua Boverhof <JRBoverhof_at_lbl.gov>
Date: Thu Feb 02 2006 - 10:56:28 PST

Well I'm not really sure what is going on here. I think this tool
has bundled versions of ZSI and pyGridWare, if not this is the
problem then try this:

The "getEndpointReference" call is just a wrapper around:

        from pyGridWare.addressing import AddressUtils
        epr = AddressingUtils.createEndpointReference(consumer.context)

So you might want to try using the above instead.

-josh

On Feb 1, 2006, at 11:42 AM, ryan wrote:

> Hi,
>
> I'm resending this because I wasn't actually subscribed to the list
> yet when it went out yesterday, so I can't tell if it was posted or
> not.
>
> Thanks,
> -Ryan
>
> From: ryan <ryan@sourcelabs.com>
> Date: January 31, 2006 5:33:07 PM PST
> To: pygridware-discuss@george.lbl.gov
> Subject: minor fix and error in client consumer.getEndPointReference()
>
>
> Hello,
>
> I've installed PythonCLServiceTool (svn rev 2969). Thanks for
> this work, it looks like it may save me a bunch of time.
>
> Firstly, I found a minor bug in templates/NameTemplate_server.py,
> here's the patch:
> Index: templates/NameTemplate_server.py
> ===================================================================
> --- templates/NameTemplate_server.py (revision 2133)
> +++ templates/NameTemplate_server.py (revision 2134)
> @@ -12,7 +12,8 @@
> from twisted.internet import reactor
> from distutils.sysconfig import get_python_lib
> -from
> PythonCLServiceTool.cat.underware.generated.resource.cat.PythonCLServi
> ceTool_cat import ManagerHome
> +#from
> PythonCLServiceTool.cat.underware.generated.resource.cat.PythonCLServi
> ceTool_cat import ManagerHome
> +from
> PythonCLServiceTool.NameTemplate.underware.generated.resource.NameTemp
> late.PythonCLServiceTool_NameTemplate import ManagerHome
> ### Import the underware.
> from
> PythonCLServiceTool.NameTemplate.underware.generated.services.NameTemp
> late.ServiceTemplate_NameTemplate import
> ServiceTemplate_NameTemplateWSRF
>
> ----
> Second,
> I built a small service around a shell script that takes no args,
> and ran the server (fine) and then ran the client to connect,
> throwing the following exception:
>
> -bash-3.00$ showCertStressThreads.sh
> /home/ryan/python-2.4/lib/python2.4/site-packages/pyGridWare/
> utility/client.py:236: DeprecationWarning: Use log.msg(...,
> debug=True), not log.debug().
> log.debug("_" * 33, time.ctime(time.time()), "REQUEST: \n%s" %
> soapdata)
> /home/ryan/python-2.4/lib/python2.4/site-packages/pyGridWare/
> utility/client.py:179: DeprecationWarning: Use log.msg(...,
> debug=True), not log.debug().
> log.debug("_" * 33, time.ctime(time.time()), "RESPONSE: \n%s" %
> soapdata)
> FtWarning: Creation of InputSource without a URI
> /home/ryan/python-2.4/lib/python2.4/site-packages/ZSI/__init__.py:
> 81: SyntaxWarning: The null string should be None, not empty.
> v = E.getAttributeNS(nsuri, attr)
> Traceback (most recent call last):
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/
> PythonCLServiceTool/showCertStressThreads//
> showCertStressThreads_client.py", line 346, in ?
> reactor.run()
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/twisted/
> internet/posixbase.py", line 206, in run
> self.mainLoop()
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/twisted/
> internet/posixbase.py", line 214, in mainLoop
> self.runUntilCurrent()
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/twisted/
> internet/base.py", line 541, in runUntilCurrent
> call.func(*call.args, **call.kw)
> --- <exception caught here> ---
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/twisted/
> internet/base.py", line 400, in _continueSystemEvent
> callable(*args, **kw)
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/
> PythonCLServiceTool/showCertStressThreads//
> showCertStressThreads_client.py", line 334, in main
> c.enqueue()
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/
> PythonCLServiceTool/showCertStressThreads//
> showCertStressThreads_client.py", line 297, in enqueue
> reactor.callWhenRunning(self.Subscribe, name)
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/twisted/
> internet/base.py", line 433, in callWhenRunning
> _callable(*args, **kw)
> File "/home/ryan/python-2.4/lib/python2.4/site-packages/
> PythonCLServiceTool/showCertStressThreads//
> showCertStressThreads_client.py", line 311, in Subscribe
> self.consumer_epr = self.consumer.getEndPointReference()
> exceptions.AttributeError: 'NotificationConsumerTwisted' object has
> no attribute 'getEndPointReference'
>
> --
>
> Before I dive into NotificationConsumerTwisted, are there any quick
> pointers on this error?
> regards,
> -Ryan
>
>
>

Received on Thu Feb 2 10:56:37 2006

This archive was generated by hypermail 2.1.8 : Sat Oct 28 2006 - 10:51:25 PDT