Paolo Patierno created DISPATCH-735:
---------------------------------------

             Summary: Crash on startup parsing JSON conf file with "address" 
entity
                 Key: DISPATCH-735
                 URL: https://issues.apache.org/jira/browse/DISPATCH-735
             Project: Qpid Dispatch
          Issue Type: Bug
    Affects Versions: 0.7.0
            Reporter: Paolo Patierno


Hi,

using a router configuration file in the JSON format with something like this :

["address", {
    "prefix": "telemetry/",
    "distribution": "multicast"
  }],

  ["address", {
    "prefix": "event/",
    "distribution": "multicast"
  }],

the router crashes on startup with following error :

[root@512788e6bda1 /]# qdrouterd -c /etc/hono/qdrouter/qdrouterd.json 
Fri Mar 31 08:51:48 2017 ERROR (error) Python: Exception: Cannot load 
configuration file /etc/hono/qdrouter/qdrouterd.json: No such entity type 
'org.apache.qpid.dispatch.address'
Fri Mar 31 08:51:48 2017 ERROR (error) Traceback (most recent call last):
  File 
"/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/config.py", 
line 128, in configure_dispatch
    config = Config(filename)
  File 
"/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/config.py", 
line 41, in __init__
    self.load(filename, raw_json)
  File 
"/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/config.py", 
line 98, in load
    self.load(f, raw_json)
  File 
"/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/config.py", 
line 106, in load
    self.schema.validate_all(entities)
  File 
"/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py", 
line 584, in validate_all
    check_singleton=check_singleton)
  File 
"/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py", 
line 555, in validate_entity
    entity_type = self.entity_type(attributes['type'])
  File 
"/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py", 
line 541, in entity_type
    return self._lookup(self.entity_types, name, "No such entity type '%s'", 
error)
  File 
"/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py", 
line 537, in _lookup
    raise ValidationError(message % name)
Exception: Cannot load configuration file /etc/hono/qdrouter/qdrouterd.json: No 
such entity type 'org.apache.qpid.dispatch.address'

It doesn't happen using the deprecated "fixedAddress" entity.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to