You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/04/07 11:02:12 UTC
[jira] [Commented] (PROTON-846) error on disconnect or failure to
connect
[ https://issues.apache.org/jira/browse/PROTON-846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14482822#comment-14482822 ]
ASF subversion and git services commented on PROTON-846:
--------------------------------------------------------
Commit 5bf533c2eeb3cd17f64e6b90748bc23960d4a185 in qpid-proton's branch refs/heads/master from [~gsim]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=5bf533c ]
PROTON-846: check whether connection is valid
> error on disconnect or failure to connect
> -----------------------------------------
>
> Key: PROTON-846
> URL: https://issues.apache.org/jira/browse/PROTON-846
> Project: Qpid Proton
> Issue Type: Bug
> Components: python-binding
> Reporter: Gordon Sim
> Assignee: Gordon Sim
>
> Affects the 'reactor' type examples post 0.9 release (there is as yet no version available for selection after that). E.g.
> $ ./simple_send.py
> Traceback (most recent call last):
> File "./simple_send.py", line 61, in <module>
> Container(Send(opts.address, opts.messages)).run()
> File "/home/gordon/projects/proton-git/installs/master/lib64/proton/bindings/python/proton/reactor.py", line 120, in run
> while self.process(): pass
> File "/home/gordon/projects/proton-git/installs/master/lib64/proton/bindings/python/proton/reactor.py", line 143, in process
> self._check_errors()
> File "/home/gordon/projects/proton-git/installs/master/lib64/proton/bindings/python/proton/__init__.py", line 3735, in dispatch
> ev.dispatch(self.handler)
> File "/home/gordon/projects/proton-git/installs/master/lib64/proton/bindings/python/proton/__init__.py", line 3663, in dispatch
> self.dispatch(h, type)
> File "/home/gordon/projects/proton-git/installs/master/lib64/proton/bindings/python/proton/__init__.py", line 3660, in dispatch
> result = dispatch(handler, type.method, self)
> File "/home/gordon/projects/proton-git/installs/master/lib64/proton/bindings/python/proton/__init__.py", line 3549, in dispatch
> return m(*args)
> File "/home/gordon/projects/proton-git/installs/master/lib64/proton/bindings/python/proton/handlers.py", line 373, in on_transport_closed
> if self.delegate and self.is_local_open(event.transport.connection):
> File "/home/gordon/projects/proton-git/installs/master/lib64/proton/bindings/python/proton/handlers.py", line 210, in is_local_open
> return endpoint.state & Endpoint.LOCAL_ACTIVE
> AttributeError: 'NoneType' object has no attribute 'state'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)