335001 Eliminate expected exceptions from log when running in JBoss
This commit is contained in:
parent
53f2a4f62b
commit
39fce10d74
|
@ -1,3 +1,7 @@
|
||||||
|
jetty-7.5.0-SNAPSHOT
|
||||||
|
+ 276670 SLF4J loggers show correct location information
|
||||||
|
+ 335001 Eliminate expected exceptions from log when running in JBoss
|
||||||
|
|
||||||
jetty-7.5.0.RC0 August 15th 2011
|
jetty-7.5.0.RC0 August 15th 2011
|
||||||
+ 298502 Handle 200 Connect responses with no content-length
|
+ 298502 Handle 200 Connect responses with no content-length
|
||||||
+ 351516 Refactored sessions to better support nosql session managers
|
+ 351516 Refactored sessions to better support nosql session managers
|
||||||
|
|
|
@ -28,6 +28,8 @@ import java.util.Map;
|
||||||
import java.util.MissingResourceException;
|
import java.util.MissingResourceException;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import java.util.regex.Matcher;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import javax.management.Attribute;
|
import javax.management.Attribute;
|
||||||
import javax.management.AttributeList;
|
import javax.management.AttributeList;
|
||||||
|
@ -139,12 +141,11 @@ public class ObjectMBean implements DynamicMBean
|
||||||
}
|
}
|
||||||
catch (ClassNotFoundException e)
|
catch (ClassNotFoundException e)
|
||||||
{
|
{
|
||||||
// The code below was modified to fix bug 332200.
|
// The code below was modified to fix bugs 332200 and JETTY-1416
|
||||||
// The issue was caused by additional information
|
// The issue was caused by additional information added to the
|
||||||
// added to the message after the class name when
|
// message after the class name when running in Apache Felix,
|
||||||
// Jetty is running in Apache Felix.
|
// as well as before the class name when running in JBoss.
|
||||||
String klass = e.getMessage().split("[ ]", 2)[0];
|
if (e.getMessage().contains(mName))
|
||||||
if (klass.endsWith("MBean"))
|
|
||||||
Log.ignore(e);
|
Log.ignore(e);
|
||||||
else
|
else
|
||||||
Log.warn(e);
|
Log.warn(e);
|
||||||
|
|
Loading…
Reference in New Issue