Bugs item #1050864, was opened at 2004-10-20 16:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1050864&group_id=22866

Category: JBossMQ
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Justin Haddad (jhaddad)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't init MessageCounterHistoryDayLimit at deployment time

Initial Comment:
While analyzing the performance of my app, which runs 
on JBoss 3.2.5, I noticed significant cpu usage eaten up 
by my JMS queue's message history counter. I figured I 
could easily disable this by setting the 
MessageCounterHistoryDayLimit to zero, as show in the 
descriptor below. This resulted in a 
NullPointerException at startup caused by the jmx 
config service calling a setter on the underlying queue 
object before it was instantiated. Is there another way 
that I should disable this count history feature? 

Code: 

    <mbean code="org.jboss.mq.server.jmx.Queue"
        
name="jboss.mq.destination:service=Queue,name=Req
uestQueue">
        <depends optional-attribute-
name="DestinationManager">jboss.mq:service=Destina
tionManager</depends>
        <attribute 
name="MessageCounterHistoryDayLimit">0</attribute>
        <attribute name="InMemory">true</attribute>
    </mbean>
        
-----------------------------
Here's the exception:
org.jboss.deployment.DeploymentException: Exception 
setting attribute javax.management.Attribute: 
name=MessageCounterHistoryDayLimit value=0 on 
mbean 
jboss.mq.destination:service=Queue,name=AsyncReque
stQueue; - nested throwable: 
(java.lang.NullPointerException)
        at 
org.jboss.system.ServiceConfigurator.setAttribute
(ServiceConfigurator.java:490)
        at org.jboss.system.ServiceConfigurator.configure
(ServiceConfigurator.java:315)
        at 
org.jboss.system.ServiceConfigurator.internalInstall
(ServiceConfigurator.java:160)
        at org.jboss.system.ServiceConfigurator.install
(ServiceConfigurator.java:114)
        at org.jboss.system.ServiceController.install
(ServiceController.java:198)
        at sun.reflect.GeneratedMethodAccessor23.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:86)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy4.install(Unknown Source)
        at org.jboss.deployment.SARDeployer.create
(SARDeployer.java:204)
        at org.jboss.deployment.MainDeployer.create
(MainDeployer.java:790)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:644)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:608)
        at sun.reflect.GeneratedMethodAccessor24.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:86)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy7.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.d
eploy(URLDeploymentScanner.java:304)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.s
can(URLDeploymentScanner.java:478)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScan
ner$ScannerThread.doScan
(AbstractDeploymentScanner.java:201)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScan
ner.startService(AbstractDeploymentScanner.java:274)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalSta
rt(ServiceMBeanSupport.java:271)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLife
cycle(ServiceMBeanSupport.java:221)
        at sun.reflect.GeneratedMethodAccessor3.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:86)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:473)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:837)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start
(ServiceController.java:367)
        at sun.reflect.GeneratedMethodAccessor8.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:86)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start
(SARDeployer.java:251)
        at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:836)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:645)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:608)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:592)
        at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:86)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart
(ServerImpl.java:407)
        at org.jboss.system.server.ServerImpl.start
(ServerImpl.java:311)
        at org.jboss.Main.boot(Main.java:145)
        at org.jboss.Main$1.run(Main.java:399)
        at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
        at 
org.jboss.mq.server.jmx.Queue.getMessageCounter
(Queue.java:140)
        at 
org.jboss.mq.server.jmx.DestinationMBeanSupport.setM
essageCounterHistoryDayLimit
(DestinationMBeanSupport.java:395)
        at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.AttributeDispatcher.dispatch
(AttributeDispatcher.java:38)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:53)
        at 
org.jboss.mx.interceptor.ModelMBeanAttributeIntercepto
r.invoke(ModelMBeanAttributeInterceptor.java:63)
        at 
org.jboss.mx.interceptor.PersistenceInterceptor.invoke
(PersistenceInterceptor.java:70)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:88)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.setAttribute
(AbstractMBeanInvoker.java:375)
        at 
org.jboss.mx.server.MBeanServerImpl.setAttribute
(MBeanServerImpl.java:455)
        at 
org.jboss.system.ServiceConfigurator.setAttribute
(ServiceConfigurator.java:486)
        ... 81 more
11:15:44,903 INFO  [MailService] Mail Service bound 
to java:/Mail
11:15:46,315 INFO  [StandardService] Starting service 
jboss.web
11:15:46,455 WARN  [DeploymentInfo] Only the root 
deployment can set the loader repository, ingoring 
config=null
 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1050864&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to