[
http://jira.jboss.com/jira/browse/JBAS-3655?page=all ]
Dimitris Andreadis reopened JBAS-3655:
--------------------------------------
I don't understand this "fix" at all. An interceptor of this type can either
have a
CTOR(MBeanInvoker)
or
CTOR()
The code simply tries the first one, then the second one. If the interceptor cannot be
constructed at all, then this is something to be reported. There is no need to log WARN
messages or legthy exceptions.
I changed this to:
catch (Throwable t)
{
log.debug("Could not invoke CTOR(MBeanInvoker) for '"
+ interceptorClass + "', trying default CTOR: " +
t.getMessage());
// Try the default ctor
interceptor = (Interceptor) interceptorClass.newInstance();
}
Anil, if you want to completely get rid of the debug message, add a CTOR(MBeanInvoker) to
org.jboss.jmx.connector.invoker.AuthorizationInterceptor
org.jboss.jmx.connector.invoker.AuthenticationInterceptor
Lower the log level for the ctr construction of interceptor in
ModelMBeanInvoker
--------------------------------------------------------------------------------
Key: JBAS-3655
URL:
http://jira.jboss.com/jira/browse/JBAS-3655
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Security, JMX
Affects Versions: JBossAS-4.0.5.CR1
Reporter: Anil Saldhana
Assigned To: Anil Saldhana
Priority: Minor
Fix For: JBossAS-4.0.5.GA
2006-09-12 11:59:11,238 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] Failed to
invoke ctor(MBeanInvoker) for: class
org.jboss.jmx.connector.invoker.AuthenticationInterceptor
java.lang.NoSuchMethodException:
org.jboss.jmx.connector.invoker.AuthenticationInterceptor.<init>(org.jboss.mx.server.MBeanInvoker)
at java.lang.Class.getConstructor0(Class.java:2678)
at java.lang.Class.getConstructor(Class.java:1629)
at
org.jboss.mx.modelmbean.ModelMBeanInvoker.getInterceptors(ModelMBeanInvoker.java:739)
at
org.jboss.mx.modelmbean.ModelMBeanInvoker.configureInterceptorStack(ModelMBeanInvoker.java:678)
at org.jboss.mx.modelmbean.XMBean.configureInterceptorStack(XMBean.java:400)
at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java:504)
at
org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:486)
at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
.....
2006-09-12 11:59:11,491 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] Failed to
invoke ctor(MBeanInvoker) for: class
org.jboss.jmx.connector.invoker.AuthorizationInterceptor
java.lang.NoSuchMethodException:
org.jboss.jmx.connector.invoker.AuthorizationInterceptor.<init>(org.jboss.mx.server.MBeanInvoker)
at java.lang.Class.getConstructor0(Class.java:2678)
at java.lang.Class.getConstructor(Class.java:1629)
at
org.jboss.mx.modelmbean.ModelMBeanInvoker.getInterceptors(ModelMBeanInvoker.java:739)
at
org.jboss.mx.modelmbean.ModelMBeanInvoker.configureInterceptorStack(ModelMBeanInvoker.java:678)
at org.jboss.mx.modelmbean.XMBean.configureInterceptorStack(XMBean.java:400)
at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java:504)
at
org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:486)
at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
at
org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
at
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
--
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