[
https://issues.jboss.org/browse/AS7-4544?page=com.atlassian.jira.plugin.s...
]
Radoslav Husar updated AS7-4544:
--------------------------------
Fix Version/s: 7.1.2.Final-redhat1
Affects Version/s: 7.1.1.Final
The model parser/xsd doesn't require it so it either should work, or the parser/xsd
should be changed.
mod-cluster: not setting a load provider leads to an NPE
--------------------------------------------------------
Key: AS7-4544
URL:
https://issues.jboss.org/browse/AS7-4544
Project: Application Server 7
Issue Type: Bug
Components: Clustering
Affects Versions: 7.1.1.Final
Reporter: Bela Ban
Assignee: Jean-Frederic Clere
Priority: Minor
Fix For: 7.1.2.Final-redhat1
In standalone*.xml or domain.xml (AS 7.1.2), if we omit dynamic-load-provider or
simple-load-provider, then we get an NPE (see below) when starting an AS instance.
E.g.
<subsystem xmlns="urn:jboss:domain:modcluster:1.1">
<mod-cluster-config advertise-socket="modcluster">
<!--dynamic-load-provider>
<load-metric type="busyness"/>
</dynamic-load-provider-->
</mod-cluster-config>
</subsystem>
[Server:one] 08:49:51,379 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss
AS 7.1.2.Final-SNAPSHOT "Brontes" started in 9954ms - Started 171 of 300
services (128 services are passive or on-demand)
[Server:one] 08:49:55,101 INFO [org.jboss.modcluster.ModClusterService]
(ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Engine [jboss.web] will use
jvmRoute: e4632cc7-f024-33ff-b3ee-c9b94274c09a
[Server:one] 08:49:55,108 ERROR [org.apache.catalina.core.ContainerBase]
(ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Exception invoking periodic
operation: : java.lang.NullPointerException
[Server:one] at
org.jboss.modcluster.ModClusterService.getLoadBalanceFactor(ModClusterService.java:485)
[Server:one] at
org.jboss.modcluster.ModClusterService.status(ModClusterService.java:466)
[Server:one] at
org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.lifecycleEvent(CatalinaEventHandlerAdapter.java:239)
[Server:one] at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:115)
[jbossweb-7.0.14.Final.jar:]
[Server:one] at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
[jbossweb-7.0.14.Final.jar:]
[Server:one] at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
[jbossweb-7.0.14.Final.jar:]
[Server:one] at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
[jbossweb-7.0.14.Final.jar:]
[Server:one] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira