Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RejectedExecutionException at Swing application closure time  RSS feed

 
Gilles Marceau
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers,

i got a strange exception when i close my Swing application, this is a
RejectedExecutionException. Moreover, this problem occurs only if i close
the application just after its opening :

Exception while removing reference:
java.util.concurrent.RejectedExecutionException
java.util.concurrent.RejectedExecutionException
at
java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker.invoke(Unknown Sour
ce)
at sun.awt.shell.Win32ShellFolder2$FolderDisposer.dispose(Unknown Source
)
at sun.java2d.Disposer.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Do you have any clue about this problem ? Any help would be greatly
appreciated.

thanks,
Gilles
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I personally have never used the Executor before. Take a look at this blog.Looks like some part of your code is trying to push new Runnable tasks in the executor even when the application is executing the terminate sequence.
[ June 01, 2008: Message edited by: Maneesh Godbole ]
 
Gilles Marceau
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for you reply, i will have a look.
However, i am not using an Executor directly.
Maybe some process use one behind the scene.
I also have two shutdown hocks that could be
part of the problem.

I will check !

Gilles
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!