[JBoss JIRA] Created: (JBAS-5068) Possible NullPointerException in DistributedReplicantManager#_add()
by Takayoshi Kimura (JIRA)
Possible NullPointerException in DistributedReplicantManager#_add()
-------------------------------------------------------------------
Key: JBAS-5068
URL: http://jira.jboss.com/jira/browse/JBAS-5068
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.2.2.GA, JBossAS-4.2.1.GA, JBossAS-4.2.0.GA
Reporter: Takayoshi Kimura
Assigned To: Brian Stansberry
Priority: Minor
DistributedReplicantManager#_add() can be called before
asynchHandler initialization when multiple nodes starts
simultaneously. It results NullPointerException below:
2007-11-09 20:40:17,315 ERROR [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.DefaultPartition] _add failed
java.lang.NullPointerException
at org.jboss.ha.framework.server.DistributedReplicantManagerImpl._add(DistributedReplicantManagerImpl.java:622)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:330)
at org.jboss.ha.framework.server.HAPartitionImpl.handle(HAPartitionImpl.java:1126)
at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:654)
at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:544)
at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:367)
at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:777)
at org.jgroups.JChannel.up(JChannel.java:1091)
Impact:
Nothing so far, just appearing the ERROR log above.
To reproduce this:
It's very hard to reproduce.
Insert Thread.sleep() call before asynchHandler initialization in
DistributedReplicantManager#start() and boot multiple nodes
simultaneously.
DistributedReplicantManager#start():
// Create the asynch listener handler thread
Thread.sleep(10000);
asynchHandler = new AsynchEventHandler(this, "AsynchKeyChangeHandler");
asynchHandler.start();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 12 months
[JBoss JIRA] Created: (JBAS-3794) Remove all calls to InetAddress.getHostName() (causes reverse DNS lookup)
by Michael Newcomb (JIRA)
Remove all calls to InetAddress.getHostName() (causes reverse DNS lookup)
-------------------------------------------------------------------------
Key: JBAS-3794
URL: http://jira.jboss.com/jira/browse/JBAS-3794
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.0.4.GA
Environment: Java 5
JBoss 4.0.4
Reporter: Michael Newcomb
Assigned To: Brian Stansberry
Priority: Minor
Any call to InetAddress.getHostName() will cause a reverse DNS lookup. If DNS is not configured properly, can cause slow startup/join times between JBoss clusters.
The most notable is in ClusterNode.java:
public ClusterNode(IpAddress jgAddress)
{
if (jgAddress.getAdditionalData() == null)
{
this.id = jgAddress.getIpAddress().getHostAddress() + ":" + jgAddress.getPort();
}
else
{
this.id = new String(jgAddress.getAdditionalData());
}
this.originalJGAddress = jgAddress;
StringBuffer sb = new StringBuffer();
java.net.InetAddress jgIPAddr = jgAddress.getIpAddress();
if (jgIPAddr == null)
sb.append("<null>");
else
{
if (jgIPAddr.isMulticastAddress())
sb.append(jgIPAddr.getHostAddress());
else
----->>>> sb.append(getShortName(jgIPAddr.getHostName()));
}
sb.append(":" + jgAddress.getPort());
this.jgId = sb.toString();
}
The following:
if (jgIPAddr.isMulticastAddress())
sb.append(jgIPAddr.getHostAddress());
else
sb.append(getShortName(jgIPAddr.getHostName()));
should be replaced with:
sb.append(jgIPAddr.getHostAddress());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 12 months
[JBoss JIRA] Created: (JBCLUSTER-135) Extract the common use clustering code from the JBoss AS codebase
by Brian Stansberry (JIRA)
Extract the common use clustering code from the JBoss AS codebase
-----------------------------------------------------------------
Key: JBCLUSTER-135
URL: http://jira.jboss.com/jira/browse/JBCLUSTER-135
Project: JBoss Clustering
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Priority: Critical
Fix For: Q3Y6
Remoting, Messaging, JBoss Cache and JBoss AS all have clustering aspects to their functionality. There is potential for code reuse between these projects that can't be realized if the clustering code resides in the cluster module of the AS codebase.
1) Extract general purpose clustering code from the AS cluster module into a separate project and produce binaries that other projects can use without creating a dependence on the AS project.
2) Provide APIs that both support standalone functionality of non-AS projects and facilitate ease of integration into the AS.
This task is meant to be an umbrella task, with specific detailed subtasks.
This task is primarily focused on meeting the short requirements of JBMESSAGING-516, but we also need to give due consideration to potential use in other projects.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 12 months
[JBoss JIRA] Created: (JBPORTAL-1466) customizable error page in the portlet that threw the exception
by William DeCoste (JIRA)
customizable error page in the portlet that threw the exception
---------------------------------------------------------------
Key: JBPORTAL-1466
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1466
Project: JBoss Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Portal Core
Affects Versions: 2.6.CR2
Reporter: William DeCoste
Assigned To: Julien Viet
Feature request from Intuit
Feature:
For error handing, the portlet should be able to render a customizable error page in the portlet that threw the exception. This feature would be something similar to the error-page tag in web.xml.
Currently JBoss Portal provides a way to either hide the portlet that has errors or show it with the stack trace or show it with only the error message. But there is no way where the developers could customize the contents that appear in the window for the portlet that throws an exception.
We had opened case #00015844 about not being able to use web.xml error-page tag with JBoss portal applications. The provided solution about catching the specific exception in the render method does not work as it is not customizable & too tied up with the portlet class code. And as you might be aware about the WAP function - someone using the WAP application components will not be able to customize it according to their requirements.
We know that the portlet standard doesn't specify what to do, and we're just trying to have it behave as much like a regular web application in lieu of something being in the standard.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 12 months