On Sunday 07 November 2004 17:06, Leo Sutic wrote:

> You have a try{ but no catch() clause in the code you show. What does
> your catch clause look like? You could be suppressing the exception by
> mistake.

Here's the whole block of code. I can't see any reason for java to just stop 
the program... The DefaultTreadPool's  constructor takes three parameters: 
"default" (String), 100 (int) and 20 (int). You can see it in the output.
I just don't know how to debug this mistake... :(

//----------------------Code---------------------------
                System.out.println("Trying with max="+new 
Integer(max_threads).toString()+" 
and min="+ 
                                        new Integer(min_threads).toString() + " 
and name=" + name);
                try {
                        final DefaultThreadPool threadPool = new 
DefaultThreadPool(name, 
min_threads, max_threads);
                        System.out.println("Created a DefaultThreadPool 
instance.");
                        threadPool.setDaemon(isDaemon);
                        threadPools.put(name, threadPool);
                        System.out.println("Added a pool to the collection.");
                } catch (Exception e) {
                        System.out.println("Exception!");
                        final String message = "Error creating ThreadPool named 
" + name;
                        throw new Exception(message, e);
                }
                System.out.println("Finished Configuring ThreadPool.");>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to