AllNotificationIDs is an attribute.
Use MBeanServer.getAttribute();

You need to move the timer service before the URLDeploymentScanner to
avoid the warning.

xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: 25 June 2003 14:58
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Weird problems with Timer service in jboss 3.2.1
> 
> 
> hi all,
>       i am following a jboss example for using the Timer 
> service, but i got
> strange behaviour.
> the examples assumes that u declare first hte following mbean 
> in the jboss.jcl (i guess
> for jboss 3.2.1 is server\conf\jboss-service.xml)
> 
> but for this declaration  (in server\conf\jboss-service.xml)
> <mbean code="javax.management.timer.Timer" 
> name="DefaultDomain:service=timer"/>
> 
> when jboss starts, it gives me following 'warning'
> 
> 16:44:37,707 ERROR [URLDeploymentScanner] MBeanException: 
> Exception in MBean ope
> ration 'checkIncompleteDeployments()'
> Cause: Incomplete Deployment listing:
> Packages waiting for a deployer:
>   <none>
> Incompletely deployed packages:
>   <none>
> MBeans waiting for classes:
>   <none>
> MBeans waiting for other MBeans:
> [ObjectName: DefaultDomain:service=timer
>  state: CREATED
>  I Depend On:
>  Depends On Me: ]
> 
> 
> However, i am successfully able to add notifications and receive them.
> however, when i want to see the notifications that i have added
> 
> Problems arise when i try to get all notifications id   
> (timer.getAllNotificationsIDs()
> 
> because i have a reference to an objectname, i am calling the 
> following code
> 
> Vector notifs = (Vector)server.invoke(timer, "getAllNotificationIDs",
>                                                               
>                                new Object[] {},
>                                                               
>                                new String[]  {});
> and i got back following exception
> 
> 16:49:55,316 ERROR [STDERR] Exception in MyTimer.listNotifications()..
> ReflectionException: null
> Cause: java.lang.NoSuchMethodException: Unable to locate 
> method for: getAllNotif
> icationIDs()
> 
> 
> anyone can tell me why??
> 
> thanx and regards
>       marco
> 
> 
> 
> 
> 
> but it's in javadocs....
> 
> Now, when i tried to remove a Notification i got instead 
> following exceptions
> 
> the type is a string parameter that is submitted via the jmx-console.
> 
> 
> 
> 
> Cause: java.lang.NoSuchMethodException: Unable to locate 
> method for: getAllNotif
> icationIDs()
> 
> 16:39:16,833 ERROR [STDERR] MBeanException: Exception in 
> MBean operation 'remove
> Notification(java.lang.Integer)'
> Cause: javax.management.InstanceNotFoundException: No 
> notification id : 2
> 16:39:16,833 ERROR [STDERR]     at 
> org.jboss.mx.capability.ReflectedMBeanDispatc
> her.invoke(ReflectedMBeanDispatcher.java:303)
> 16:39:16,833 ERROR [STDERR]     at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MB
> eanServerImpl.java:549)
> 16:39:16,843 ERROR [STDERR]     at 
> com.marco.config.MyTimer.removeNotification(U
> nknown Source)
> 16:39:16,843 ERROR [STDERR]     at 
> java.lang.reflect.Method.invoke(Native Method
> )
> 16:39:16,843 ERROR [STDERR]     at 
> org.jboss.mx.capability.ReflectedMBeanDispatc
> her.invoke(ReflectedMBeanDispatcher.java:284)
> 16:39:16,853 ERROR [STDERR]     at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MB
> eanServerImpl.java:549)
> 16:39:16,853 ERROR [STDERR]     at 
> org.jboss.jmx.adaptor.control.Server.invokeOp
> ByName(Server.java:235)
> 16:39:16,863 ERROR [STDERR]     at 
> org.jboss.jmx.adaptor.control.Server.invokeOp
> (Server.java:201)
> 16:39:16,863 ERROR [STDERR]     at 
> org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
> .invokeOp(HtmlAdaptorServlet.java:172)
> 16:39:16,863 ERROR [STDERR]     at 
> org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
> .processRequest(HtmlAdaptorServlet.java:78)
> 16:39:16,873 ERROR [STDERR]     at 
> org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
> .doPost(HtmlAdaptorServlet.java:60)
> 16:39:16,873 ERROR [STDERR]     at 
> javax.servlet.http.HttpServlet.service(HttpSe
> rvlet.java:760)
> 16:39:16,883 ERROR [STDERR]     at 
> javax.servlet.http.HttpServlet.service(HttpSe
> rvlet.java:853)
> 16:39:16,883 ERROR [STDERR]     at 
> org.apache.catalina.core.ApplicationFilterCha
> in.internalDoFilter(ApplicationFilterChain.java:247)
> 16:39:16,883 ERROR [STDERR]     at 
> org.apache.catalina.core.ApplicationFilterCha
> in.doFilter(ApplicationFilterChain.java:193)
> 16:39:16,893 ERROR [STDERR]     at 
> org.apache.catalina.core.StandardWrapperValve
> .invoke(StandardWrapperValve.java:256)
> 16:39:16,893 ERROR [STDERR]     at 
> org.apache.catalina.core.StandardPipeline$Sta
> ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 16:39:16,893 ERROR [STDERR]     at 
> org.apache.catalina.core.StandardPipeline.inv
> oke(StandardPipeline.java:480)
> 16:39:16,903 ERROR [STDERR]     at 
> org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:995)
> 16:39:16,903 ERROR [STDERR]     at 
> org.apache.catalina.core.StandardContextValve
> .invoke(StandardContextValve.java:191)
> 16:39:16,903 ERROR [STDERR]     at 
> org.apache.catalina.core.StandardPipeline$Sta
> ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 16:39:16,913 ERROR [STDERR]     at 
> org.apache.catalina.valves.CertificatesValve.
> invoke(CertificatesValve.java:246)
> 16:39:16,913 ERROR [STDERR]     at 
> org.apache.catalina.core.StandardPipeline$Sta
> 
> 
> > -----Original Message-----
> > From: ext [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: 25 June, 2003 16:03
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] EJBQL >= for dates
> > 
> > 
> > Another option would be to reverse the sense of your comparison:
> > 
> >    (x >= y)  ==>  (y < x)
> > 
> > Then you can use the standard < operator.
> > 
> > Dan.
> > 
> > -- 
> > Danny Yates
> >  
> > 
> > 
> > -----Original Message-----
> > From: Simone Milani [mailto:[EMAIL PROTECTED] 
> > Sent: 25 June 2003 13:42
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] EJBQL >= for dates
> > 
> > 
> > Thanks,
> > 
> >     I guess another option would be to use JBoss-QL.  Am I correct?
> > 
> > Thanks
> > 
> > Simone
> > ----- Original Message ----- 
> > From: "Ingo Bruell" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 25, 2003 11:08 AM
> > Subject: AW: [JBoss-user] EJBQL >= for dates
> > 
> > 
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > Hi,
> > >
> > > you can not use '>=' or '<=' with attributes of type date 
> > only '=', '<',
> > '>'
> > > and
> > > '<>' are allowed like the message said. If you need such 
> > behavior, you
> > could
> > > combine them with an 'or' or 'and' operator.
> > >
> > > >     I am trying to use >= and <= in my EJB-QL and I get 
> > the following
> > error:
> > > > org.jboss.deployment.DeploymentException: Error compiling EJB-QL
> > statement
> > > > 'SELECT OBJECT(o) FROM MDSKeyVector o WHERE o.className = ?1
> > > >  AND o.currency = ?2 AND o.instance = ?3 AND o.process = ?4 AND
> > o.location =
> > > > ?5 AND o.businessArea = ?6 AND o.name = ?7 AND o.asOfDate
> > > > >= ?8 AND o.asOfDate <= ?9'; - nested throwable:
> > > > (org.jboss.ejb.plugins.cmp.ejbql.ParseException: 
> > Encountered ">=" at
> > line 1,
> > > > column 19
> > > > 5.
> > > > Was expecting one of:
> > > >     ">" ...
> > > >     "<" ...
> > > >     "=" ...
> > > >     "<>" ...
> > > >     )
> > > >
> > > > Is it not leagl EJB-QL?  Also note that the above works 
> > with just < and
> > >
> > >
> > >
> > > best regards
> > >
> > > Ingo Bruell
> > >
> > > - - - ---
> > > <[EMAIL PROTECTED]>
> > > <ICQ# 40377720>
> > > Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 
> > 8FE7 C648 169E
> > E5FC
> > > Germany    PGP-Public-Key available at pgpkeys.mit.edu
> > >
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: PGPfreeware 6.5.8 for non-commercial use 
> > <http://www.pgp.com>
> > >
> > > iQA/AwUBPvlmbI/nxkgWnuX8EQLWNACbBcdIbEFtnuotkm0H43NyfgLK2wAAoPjJ
> > > Nui6g8t+gdvS1cnYC6kCNBa5
> > > =yI/E
> > > -----END PGP SIGNATURE-----
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU 
> > Hosting Partner.
> > > Refer Dedicated Servers. We Manage Them. You Get 10% 
> > Monthly Commission!
> > > INetU Dedicated Managed Hosting 
> http://www.inetu.net/partner/index.php
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> _____________________________________________________________________ 
> Notice to recipient: 
> The information in this internet e-mail and any attachments 
> is confidential
> and may be privileged. It is intended solely for the 
> addressee. If you are
> not the intended addressee please notify the sender immediately by
> telephone. If you are not the intended recipient, any 
> disclosure, copying,
> distribution or any action taken or omitted to be taken in 
> reliance on it,
> is prohibited and may be unlawful. 
> 
> When addressed to external clients any opinions or advice 
> contained in this
> internet e-mail are subject to the terms and conditions 
> expressed in any
> applicable governing terms of business or client engagement 
> letter issued by
> the pertinent Bank of America group entity. 
> 
> If this email originates from the U.K. please note that Bank 
> of America,
> N.A., London Branch, Banc of America Securities Limited and 
> Banc of America
> Futures Incorporated are regulated by the Financial Services 
> Authority.
> _____________________________________________________________________ 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 





-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to