[ 
https://issues.apache.org/jira/browse/DISPATCH-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ganesh Murthy reassigned DISPATCH-355:
--------------------------------------

    Assignee: Ganesh Murthy

> query fails with what seems to be the error of a previous command
> -----------------------------------------------------------------
>
>                 Key: DISPATCH-355
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-355
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Management Agent
>    Affects Versions: 0.6.0
>            Reporter: Gordon Sim
>            Assignee: Ganesh Murthy
>
> {noformat}
> Fri May 27 16:21:22 2016 AGENT (error) Error dispatching 
> Message(address=None, properties={'operation': 'CREATE', 'type': 'connector', 
> 'name': '0.0.0.0:57777'}, body={'type': 'connector', 'role': 'inter-router', 
> 'addr': '0.0.0.0', 'name': '0.0.0.0:57777', 'port': '57777'}, 
> reply_to='amqp:/_topo/0/Router.C/temp.tZCTJxxyEVLIxe2', correlation_id='6'): 
> org.apache.qpid.dispatch.connector: Duplicate value 'connector/0.0.0.0:57777' 
> for unique attribute 'identity'
> Traceback (most recent call last):
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 770, in receive
>     status, body = self.handle(request)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 793, in handle
>     return self.create(request)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 834, in create
>     return (CREATED, self._create(attributes).attributes)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 809, in _create
>     self.entities.add_implementation(cimplementation, entity)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 518, in add_implementation
>     self._add_implementation(implementation, adapter=adapter)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 515, in _add_implementation
>     self.add(adapter)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 504, in add
>     self.schema.validate_full(chain(iter([entity]), iter(self.entities)))
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/qdrouter.py",
>  line 59, in validate_full
>     super(QdSchema, self).validate_all(entities
> Fri May 27 16:21:22 2016 AGENT (error) Error dispatching 
> Message(address=None, properties={'operation': 'QUERY', 'entityType': 
> 'connector'}, body={'attributeNames': ['identity', 'name', 'addr', 'port', 
> 'role']}, reply_to='amqp:/_topo/0/Router.C/temp.tZCTJxxyEVLIxe2', 
> correlation_id='7'): org.apache.qpid.dispatch.connection: Duplicate value 
> 'connection/0.0.0.0:57777' for unique attribute 'identity'
> Traceback (most recent call last):
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 768, in receive
>     self.entities.refresh_from_c()
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 569, in refresh_from_c
>     self._add_implementation(CImplementation(self.qd, entity_type, pointer))
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 515, in _add_implementation
>     self.add(adapter)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
>  line 504, in add
>     self.schema.validate_full(chain(iter([entity]), iter(self.entities)))
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/qdrouter.py",
>  line 59, in validate_full
>     super(QdSchema, self).validate_all(entities, **kwargs)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py",
>  line 616, in validate_all
>     check_singleton=check_singleton)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py",
>  line 593, in validate_entity
>     check_singleton=check_singleton)
>   File 
> "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py",
>  line 453, in validate
>     value, lambda v: self.resolve(v, attributes), **kwargs)
>   File "/home/gordon/projects/dispatch/in
> {noformat}
> The first of these errors is reasonable. If an attempt is made to create an 
> object that already exists, that should be handled. (I'm not sure it needs 
> the full stack trace however, just sending back an appropriate response would 
> be sufficient).
> However the second command is a query and it seems to tigger the same error, 
> though that error doesn't seem meaningful for a query.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to