[Clustering/JBoss] - Re: HASingletonElectionPolicy
by smeng@unique
Just to add that I have also tried using HASingletonElectionPolicySimple instead of my own customised policy i.e. HASingletonElectionPolicyUnique
First MBean in jboss-service.xml replaced with the following:
<mbean code="org.jboss.ha.singleton.HASingletonElectionPolicySimple"
| name="com.unique.ha:name=HASingletonElectionPolicyUnique">
| <attribute name="Position">0</attribute>
| </mbean>
Node A was set with Position 0 and Node B was set with Position 1.
The results were almost the same with the exception that in between bringing up and down the nodes, the two nodes seemed to have got themselves in a confused state on who is the master and at one point, the application was started on both nodes despite the HASingleton implementation.
The following steps are what I have observed when Node A and B are both running with Node A running as the master. And then I properly shutdown Node A:
1. Node A begins shutdown.
2. Node B detects/informed by Node A?? that Node A is undergoing shutdown.
3. Node B runs the HASingletonElectionPolicy but due to the fact that Node A is still in view, picks Node A as the master.
4. Node B's view changes and notes that Node A is not within the cluster view anymore.
After that, nothing happens and the application doesn't get started at all. Note that if an improper termination of Node A occurs, Node B does start the application, which is correct failover behaviour. The problem only occurs for proper shutdown of nodes.
Is this behaviour correct? Is there a way to manually activate the HASingletonElectionPolicy or some way to get the current state of the other cluster node?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118185#4118185
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118185
18 years, 3 months
[JBoss Portal] - Portel version 2.4.1 getTheme error
by chris_phoros
I am running jBoss Portal 2.4.1 on a client site, and have a problem with a null pointer in the getTheme method.
A user set the portal theme to 'no selection' and I now get the following error:
Exception:
javax.servlet.ServletException
org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:315)
org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.NullPointerException
org.jboss.portal.core.command.MarkupCommand.getTheme(MarkupCommand.java:387)
org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:329)
org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
... (I have not posted the full error, but can if required).
I have read the forums and see I can fix this by removing the portal database, which will cause the default settings to return.
However, I have user details in the database, and am wondering if there is any way to reset the theme without blowing away all users. I also used the default databse rather than set up a new one via Hibernate (i.e. it runs on HSQL).
Really hoping there is an altertnative.
Chris
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118182#4118182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118182
18 years, 3 months