Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-818

JChannelFactory fails to parse configuration and gives a contradictory error message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • 2.7
    • 2.6.3
    • None

      JConfigurationFactory gives the following error message when parsing the attached configuration file:

      invalid XML configuration: XML protocol stack configuration does not start with a '<config>' element; maybe the XML configuration needs to be converted to the new format ?
      use 'java org.jgroups.conf.XmlConfigurator <old XML file> -new_format' to do so
      

      The attached file does indeed start with a 'config' element. Looking at the code, JConfigurationFactory is actually looking for a 'protocol_stacks' root element.

      the error message in JConfigurationFactory should be fixed.

      Furthermore, the -new_format argument doesn't appear to be accepted by XmlConfigurator. XmlConfigurator also seems to like the XML file if it starts with <config>. So which is the right format? All of the examples provided with the distribution start with <config>.

        1. jgroups.xml
          4 kB
        2. tcp-nio.xml
          3 kB

              vblagoje Vladimir Blagojevic (Inactive)
              dgreen99_jira David Green (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: