activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Apache.NMS.ActiveMQ.dll throw MissingMethodException:Boolean System.Threading.WaitHandle.WaitOne(System.TimeSpan)
Date Fri, 07 May 2010 12:28:45 GMT
On Thu, 2010-05-06 at 19:40 -0700, alanchb wrote:
> the dll i use is from Apache.NMS.ActiveMQ-1.2.0-bin
> i has tried .net-2.0 and .net-3.5 version,it seems the problem has nothing
> to do with the version.
> 
> the missing method: Boolean
> System.Threading.WaitHandle.WaitOne(System.TimeSpan)
> the declaration of the method in C#:public virtual bool WaitOne(TimeSpan
> timeout,bool exitContext)
> 
> found below code in Apache.NMS.ActiveMQ source package(InactivityMonitor.cs)
> 
>         private void StopMonitorThreads()
>         {
>             lock(monitor)
>             {
>                 if(monitorStarted.CompareAndSet(true, false))
>                 {
>                     AutoResetEvent shutdownEvent = new
> AutoResetEvent(false);
> 
>                     // Attempt to wait for the Timers to shutdown, but don't
> wait
>                     // forever, if they don't shutdown after two seconds,
> just quit.
>                     this.readCheckTimer.Dispose(shutdownEvent);
>                     shutdownEvent.WaitOne(TimeSpan.FromMilliseconds(2000));
>                     this.writeCheckTimer.Dispose(shutdownEvent);
>                     shutdownEvent.WaitOne(TimeSpan.FromMilliseconds(2000));
> 
> 					this.asyncTasks.Shutdown();
>                     this.asyncTasks = null;
>                     this.asyncWriteTask = null;
>                     this.asyncErrorTask = null;
>                 }
>             }
>         }
> 
> 
> pls have a look at this,if it is a bug pls fix it ASAP,thanks!
> 

What OS are you running this on?

Regards
Tim.


-- 
Tim Bish

Open Source Integration: http://fusesource.com
ActiveMQ in Action: http://www.manning.com/snyder/

Follow me on Twitter: http://twitter.com/tabish121
My Blog: http://timbish.blogspot.com/


Mime
View raw message