Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-735

Crash on startup parsing JSON conf file with "address" entity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.8.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.

      Attachments

        Activity

          People

            gmurthy Ganesh Murthy
            ppatierno Paolo Patierno
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: