Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.7.0
-
None
-
None
Description
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.