[JBoss JIRA] Created: (JGRP-1369) MuxRpcDispatcher may encapsulate infinitely RequestOption's filter with NoMuxHandlerRspFilter
by Benoit Leblanc (JIRA)
MuxRpcDispatcher may encapsulate infinitely RequestOption's filter with NoMuxHandlerRspFilter
---------------------------------------------------------------------------------------------
Key: JGRP-1369
URL: https://issues.jboss.org/browse/JGRP-1369
Project: JGroups
Issue Type: Bug
Affects Versions: 2.12.1
Reporter: Benoit Leblanc
Assignee: Bela Ban
MuxRpcDispatcher alters RequestOption's filter by encapsulating it with a NoMuxHandlerRspFilter. Passing the same instance of RequestOptions to rpc calls leads to :
java.lang.StackOverflowError
at org.jgroups.blocks.mux.NoMuxHandlerRspFilter.isAcceptable(NoMuxHandlerRspFilter.java:24)
at org.jgroups.blocks.mux.NoMuxHandlerRspFilter.isAcceptable(NoMuxHandlerRspFilter.java:24)
.....
.....
Solutions :
1/ "Clone" RequestOption at each call like fix used in https://issues.jboss.org/browse/JGRP-1271. The drawback with this solution, is the performance concern : useless object creation if a RequestOption is reused.
2/ Don't encapsulate RequestOption is a NoMuxHandlerRspFilter is already setted. Modification concerns two classes :
* NoMuxHandlerRspFilter
private NoMuxHandlerRspFilter(RspFilter filter) {
this.filter = filter;
}
public static RspFilter createInstance(RspFilter filter) {
if (filter instanceof NoMuxHandlerRspFilter) {
return filter;
}
return new NoMuxHandlerRspFilter(filter) ;
}
* MuxRpcDispatcher
protected GroupRequest cast(Collection<Address> dests, Message msg, RequestOptions options, boolean blockForResults) {
RspFilter filter = options.getRspFilter();
return super.cast(dests, msg, options.setRspFilter(NoMuxHandlerRspFilter.createInstance(filter)), blockForResults);
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (AS7-1432) Adding director element to action-log in a virtual-host causes xml parse error
by dan ginsberg (JIRA)
Adding director element to action-log in a virtual-host causes xml parse error
-------------------------------------------------------------------------------
Key: AS7-1432
URL: https://issues.jboss.org/browse/AS7-1432
Project: Application Server 7
Issue Type: Bug
Components: Logging
Affects Versions: 7.0.0.Final
Environment: Linux x86_64
Reporter: dan ginsberg
Assignee: David Lloyd
In standalone.xml, in a virutal-server,
1) add an access-log element
Find: server starts correctly and creates the access log
2) in the access-log element, add a directory element
Find: server no longer starts correctly. you may see an xml parse error logged, or you may just find that subsequent xml is not correclty parsed
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (LOGMGR-32) NPE in Formatters
by Stuart Douglas (JIRA)
NPE in Formatters
-----------------
Key: LOGMGR-32
URL: https://issues.jboss.org/browse/LOGMGR-32
Project: JBoss Log Manager
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 1.2.0.GA
Reporter: Stuart Douglas
Assignee: David Lloyd
In Formatters on line 452 there is a line:
exceptionClass.getProtectionDomain().getCodeSource().getLocation()
which can cause a NPE. This NPE then gets swallowed by:
catch (Throwable t) {
// ignore
}
This makes is extremely difficult to set a NPE breakpoint when debugging, as it keeps getting tripped by there spurious exceptions.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years