Re: RE: [JBoss-dev] scheduler bug?

2002-01-03 Thread parisd

point taken about the suitability of the list, but as this was something that, to me 
at least, seemed like a bug I thought it belonged here.

I won't keep abusing it, just for the record: the code I posted is from CVS head, and 
also despite the similarities, I don't think it's the same as what you posted. The 
problem as far as I can see is in the number of parameters for addNotification...

Anyway, thanks for the reply and sorry for any inconvenience caused.

paris



[EMAIL PROTECTED] wrote on 1/2/02 8:57:45 AM

first of all, before beeing flamed, I think
that this list is not the good one for
asking support... it is (as far as I've gerd here)
the list for the jboss developers...

then, I think you have found a bug I've already found,
and that should be corrected now in latest release...
it was something about the dynamic type of the basic long parameters
it works with the dynamic type:
Long.TYPE.getName()

I don't remember what it was before but this
code works for me on 2.4.4. check in the CVS repository since
developers here told be it was corrected...
check my previous mail in the archive also.


mActualSchedule = ( (Integer) getServer().invoke(
 mTimer,
 addNotification,
 new Object[] {
Schedule,
Scheduler Notification,
null,
new Date( new Date().getTime() + 1000 ),
new Long( mActualSchedulePeriod ),
new Long( mRemainingRepetitions )
 },
 new String[] {
.getClass().getName(),
.getClass().getName(),
Object.class.getName(),
Date.class.getName(),
Long.TYPE.getName(),
Long.TYPE.getName()
 }
  ) ).intValue();

 -Message d'origine-
 De: Paris Deligiannakis [mailto:[EMAIL PROTECTED]]
 Date: mercredi 2 janvier 2002 16:41
 À: [EMAIL PROTECTED]
 Objet: [JBoss-dev] scheduler bug?
 
 
 I'm not really sure about this, so please do correct me if 
 it's wrong or it has been brought up previously:
 
 in Scheduler.java there is this:
 
 [code]
 mActualSchedule = ( (Integer) getServer().invoke(
   mTimer,
   addNotification,
   new Object[] {
  Schedule,
  Scheduler Notification,
  mStartDate
   },
   new String[] {
  String.class.getName(),
  String.class.getName(),
  Date.class.getName(),
   }
) ).intValue();
 [/code]
 
 However I could not find an addNotification method with only 
 3 arguments (an object is required before the Date arg).
 And when this code runs, it throws this:
 
 [ERROR,Default] javax.management.ReflectionException: The 
 operation with name addNotification could not be found
 
 
 regards,
 paris
 __
 View this jboss-dev thread in the online forums:
 http://jboss.org/forums/thread.jsp?forum=66thread=6463
 
 ___
 Jboss-development mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-development
 


___
Get your free e-mail account at  http://www.ftnetwork.com

Visit the web site of the Financial Times at  http://www.ft.com


___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



RE: [JBoss-dev] scheduler bug?

2002-01-02 Thread Coetmeur, Alain

first of all, before beeing flamed, I think
that this list is not the good one for
asking support... it is (as far as I've gerd here)
the list for the jboss developers...

then, I think you have found a bug I've already found,
and that should be corrected now in latest release...
it was something about the dynamic type of the basic long parameters
it works with the dynamic type:
Long.TYPE.getName()

I don't remember what it was before but this
code works for me on 2.4.4. check in the CVS repository since
developers here told be it was corrected...
check my previous mail in the archive also.


mActualSchedule = ( (Integer) getServer().invoke(
 mTimer,
 addNotification,
 new Object[] {
Schedule,
Scheduler Notification,
null,
new Date( new Date().getTime() + 1000 ),
new Long( mActualSchedulePeriod ),
new Long( mRemainingRepetitions )
 },
 new String[] {
.getClass().getName(),
.getClass().getName(),
Object.class.getName(),
Date.class.getName(),
Long.TYPE.getName(),
Long.TYPE.getName()
 }
  ) ).intValue();

 -Message d'origine-
 De: Paris Deligiannakis [mailto:[EMAIL PROTECTED]]
 Date: mercredi 2 janvier 2002 16:41
 À: [EMAIL PROTECTED]
 Objet: [JBoss-dev] scheduler bug?
 
 
 I'm not really sure about this, so please do correct me if 
 it's wrong or it has been brought up previously:
 
 in Scheduler.java there is this:
 
 [code]
 mActualSchedule = ( (Integer) getServer().invoke(
   mTimer,
   addNotification,
   new Object[] {
  Schedule,
  Scheduler Notification,
  mStartDate
   },
   new String[] {
  String.class.getName(),
  String.class.getName(),
  Date.class.getName(),
   }
) ).intValue();
 [/code]
 
 However I could not find an addNotification method with only 
 3 arguments (an object is required before the Date arg).
 And when this code runs, it throws this:
 
 [ERROR,Default] javax.management.ReflectionException: The 
 operation with name addNotification could not be found
 
 
 regards,
 paris
 __
 View this jboss-dev thread in the online forums:
 http://jboss.org/forums/thread.jsp?forum=66thread=6463
 
 ___
 Jboss-development mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-development
 

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development