I tried the new code. When I browse it with IE6 sp1 I get the error. If I
use the browse in Homesite+ 5.5 I get Thread Count: 3
Just weird!
Steve
-----Original Message-----
From: Pete Freitag [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 4:16 PM
To: CF-Talk
Subject: Re: Monitor CFMX threads
DURETTE, STEVEN J (AIT) wrote:
> Pete,
>
> I tried this on my server. I put it under the webroot and got 500
> null. I
> put it under a directory called /bau and called it with
> http://localhost/bau/testthreads.jsp
> <http://localhost/bau/testthreads.jsp>
> and got:
> 500 Translator.WrongCase/bau/testthreads.jspbauBAU
Steve, I'm not sure where that exception is coming from, but make sure you
pay close attention to the line breaks that are added by email clients. Do
you have a stack trace so I can figure out what line is causing the
exception?
I added a try catch block here, one possibility is that there are threads of
different types in the thread group, which would throw class cast exceptions
when I try to cast them, try this:
<%
Thread thread = Thread.currentThread();
ThreadGroup threadGroup = thread.getThreadGroup();
int count = threadGroup.activeCount();
Thread[] threads = new Thread[count];
count = threadGroup.enumerate(threads);
out.println("Thread Count: " + count + "<br>");
for (int i=0;i<count;i++) {
try {
jrunx.scheduler.WorkerThread t = (jrunx.scheduler.WorkerThread)threads[i];
jrun.servlet.http.WebEndpoint endPoint =
(jrun.servlet.http.WebEndpoint)t.getServletRequest();
out.println(endPoint.getServerName() + endPoint.getRequestURI() + "<br>");
} catch (Exception e) { }
}
%>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

