Bug 794450 (JBEPP-1490) - If jgroups-multiplexer-stack is true EPP 5.2 throws error parsing the jgroups config file.
Summary: If jgroups-multiplexer-stack is true EPP 5.2 throws error parsing the jgroups...
Keywords:
Status: CLOSED NOTABUG
Alias: JBEPP-1490
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: unspecified
Version: 5.2.0.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-24 21:04 UTC by Gary Hu
Modified: 2012-08-16 11:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 11:13:42 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-1490 0 Major Closed If jgroups-multiplexer-stack is true EPP 5.2 throws error parsing the jgroups config file. 2013-08-22 03:41:51 UTC

Description Gary Hu 2012-01-24 21:04:44 UTC
project_key: JBEPP

If the property jgroups-multiplexer-stack is set as "true" in gatein.ear/02portal.war/WEB-INF/conf/jcr/repository-configuration.xml, EPP 5.2 throws the following errors during startup:

ERROR [exo.jcr.component.core.RepositoryServiceImpl] (main) Error start repository service
java.lang.RuntimeException: Cannot instantiate component class org.exoplatform.services.jcr.impl.dataflow.persistent.LocalWorkspaceDataManagerStub
	at org.exoplatform.container.jmx.MX4JComponentAdapter.getComponentInstance(MX4JComponentAdapter.java:134)
	at org.exoplatform.container.management.ManageableComponentAdapter.getComponentInstance(ManageableComponentAdapter.java:68)
	...
Caused by: java.lang.Exception: failed parsing vfsfile:/xxx/gatein.ear/02portal.war/WEB-INF/classes/jgroups/gatein-udp.xml
	at org.jgroups.JChannelFactory.setMultiplexerConfig(JChannelFactory.java:250)
	at org.jgroups.JChannelFactory.setMultiplexerConfig(JChannelFactory.java:233)
	at org.exoplatform.services.jcr.jbosscache.ExoJBossCacheFactory.createCache(ExoJBossCacheFactory.java:195)
	... 118 more
Caused by: java.io.IOException: invalid XML configuration: XML protocol stack configuration does not start with a '<protocol_stacks>' 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
	at org.jgroups.JChannelFactory.parse(JChannelFactory.java:569)
	at org.jgroups.JChannelFactory.parse(JChannelFactory.java:555)
	at org.jgroups.JChannelFactory.setMultiplexerConfig(JChannelFactory.java:247)
	... 120 more


Do we still need the property jgroups-multiplexer-stack in EPP 5.2? Or EPP 5.2 is missing the correct jgroups configuration file to satisfy the call setMultiplexerConfig?

Comment 1 Gary Hu 2012-01-24 21:33:15 UTC
Here is the code that throws the error:
org.exoplatform.services.jcr.jbosscache.ExoJBossCacheFactory


// JGroups multiplexer configuration if enabled
      if (parameterEntry.getParameterBoolean(JGROUPS_MUX_ENABLED, false))
      {
         try
         {
            // Get path to JGroups configuration
            String jgroupsConfigurationFilePath = parameterEntry.getParameterValue(JGROUPS_CONFIG);
            if (jgroupsConfigurationFilePath != null)
            {
               // Create and inject multiplexer factory
               CHANNEL_FACTORY.setMultiplexerConfig(configurationManager.getResource(jgroupsConfigurationFilePath));
               cache.getConfiguration().getRuntimeConfig().setMuxChannelFactory(CHANNEL_FACTORY);
               log.info("Multiplexer stack successfully enabled for the cache.");
            }
         }
         catch (Exception e)
         {
            // exception occurred setting mux factory
            throw new RepositoryConfigurationException("Error setting multiplexer configuration.", e);
         }

Comment 2 Martin Weiler 2012-03-30 07:15:46 UTC
EPP 5.2 uses shared transport instead of multiplexer feature of jGroups:
https://bugzilla.redhat.com/show_bug.cgi?id=794144

jgroups-multiplexer-stack properties need to be set to 'false' (as is the default in 5.2):
https://access.redhat.com/knowledge/solutions/69547


Note You need to log in before you can comment on or make changes to this bug.