[jboss-jira] [JBoss JIRA] Commented: (JGRP-818) JChannelFactory fails to parse configuration and gives a contradictory error message
Vladimir Blagojevic (JIRA)
jira-events at lists.jboss.org
Wed Sep 10 14:04:43 EDT 2008
[ https://jira.jboss.org/jira/browse/JGRP-818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12428971#action_12428971 ]
Vladimir Blagojevic commented on JGRP-818:
------------------------------------------
There is no such class as JConfigurationFactory; I believe you are referring to JChannelFactory, correct? JChannelFactory was not designed to use file that accepts file format that contains <protocol_stacks> as a top element. In 2.6 release configuration file that used <protocol_stacks> as a top element was a multiplexer channel setup. In order to use this file format you have to invoke one of the JChannelFactory#setMultiplexerConfig() methods. JChannelFactory , as is, is designed to use a file format that has a <config> as an enclosing element and contains only one channel configuration.
I agree with you that this is all a bit confusing. Will consult within our team how to resolve this in 2.7 release.
> JChannelFactory fails to parse configuration and gives a contradictory error message
> ------------------------------------------------------------------------------------
>
> Key: JGRP-818
> URL: https://jira.jboss.org/jira/browse/JGRP-818
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 2.6.3
> Reporter: David Green
> Assignee: Vladimir Blagojevic
> Priority: Minor
> Fix For: 2.7
>
> Attachments: jgroups.xml, tcp-nio.xml
>
>
> JConfigurationFactory gives the following error message when parsing the attached configuration file:
> {noformat}
> 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
> {noformat}
> 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>.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list