Exception in thread "Basic L&F File Loading Thread" java.util.concu rrent.RejectedE xecutionExcepti on
at java.util.concu rrent.ThreadPoo lExecutor$Abort Policy.rejected Execution(Threa dPoolExecutor.j ava:1759)
at java.util.concu rrent.ThreadPoo lExecutor.rejec t(ThreadPoolExe cutor.java:767)
at java.util.concu rrent.ThreadPoo lExecutor.execu te(ThreadPoolEx ecutor.java:658 )
at java.util.concu rrent.AbstractE xecutorService. submit(Abstract ExecutorService .java:92)
at sun.awt.shell.W in32ShellFolder 2$ComTask.execu te(Win32ShellFo lder2.java:1214 )
at sun.awt.shell.W in32ShellFolder 2.hasAttribute( Win32ShellFolde r2.java:516)
at sun.awt.shell.W in32ShellFolder 2.isFileSystem( Win32ShellFolde r2.java:509)
at sun.awt.shell.W in32ShellFolder 2.equals(Win32S hellFolder2.jav a:484)
at sun.awt.shell.W in32ShellFolder Manager2.isFile SystemRoot(Win3 2ShellFolderMan ager2.java:325)
at sun.awt.shell.S hellFolder.isFi leSystemRoot(Sh ellFolder.java: 233)
at javax.swing.fil echooser.FileSy stemView.isFile SystemRoot(File SystemView.java :310)
at javax.swing.fil echooser.Window sFileSystemView .isTraversable( FileSystemView. java:632)
at javax.swing.JFi leChooser.isTra versable(JFileC hooser.java:156 0)
at javax.swing.pla f.basic.BasicDi rectoryModel$Lo adFilesThread.r un0(BasicDirect oryModel.java:2 50)
at javax.swing.pla f.basic.BasicDi rectoryModel$Lo adFilesThread.r un(BasicDirecto ryModel.java:21 5)
------------------------------------------------------------------------------------------------------------------
I've just done my project... River Data Report/Calculator Program...
I encountered this when closing the program...
Im using Frame...
@ CloseOperation, I've used dispose() and System.exit();
I'd tried to trap that exception... Like putting all methods with try/catch for debugging purposes.. but i can't....
My last Option is i did put a JOptionPane before the System.exit(0) in closingOperatio n method... and that stacktrace prints after i click the ok button in the JOptionPane... So for me that exception occured between System.exit(0) and the Garbage Collector... I didn't use finalize method...
Can you explain it to me Experts?!! I mean that Exception...
I really feel bad about that exception...
Have you encountered this Exception?
Can you share what you have learned about that Exception?
Any reply will be appreciated...
Sukatoa...
at java.util.concu rrent.ThreadPoo lExecutor$Abort Policy.rejected Execution(Threa dPoolExecutor.j ava:1759)
at java.util.concu rrent.ThreadPoo lExecutor.rejec t(ThreadPoolExe cutor.java:767)
at java.util.concu rrent.ThreadPoo lExecutor.execu te(ThreadPoolEx ecutor.java:658 )
at java.util.concu rrent.AbstractE xecutorService. submit(Abstract ExecutorService .java:92)
at sun.awt.shell.W in32ShellFolder 2$ComTask.execu te(Win32ShellFo lder2.java:1214 )
at sun.awt.shell.W in32ShellFolder 2.hasAttribute( Win32ShellFolde r2.java:516)
at sun.awt.shell.W in32ShellFolder 2.isFileSystem( Win32ShellFolde r2.java:509)
at sun.awt.shell.W in32ShellFolder 2.equals(Win32S hellFolder2.jav a:484)
at sun.awt.shell.W in32ShellFolder Manager2.isFile SystemRoot(Win3 2ShellFolderMan ager2.java:325)
at sun.awt.shell.S hellFolder.isFi leSystemRoot(Sh ellFolder.java: 233)
at javax.swing.fil echooser.FileSy stemView.isFile SystemRoot(File SystemView.java :310)
at javax.swing.fil echooser.Window sFileSystemView .isTraversable( FileSystemView. java:632)
at javax.swing.JFi leChooser.isTra versable(JFileC hooser.java:156 0)
at javax.swing.pla f.basic.BasicDi rectoryModel$Lo adFilesThread.r un0(BasicDirect oryModel.java:2 50)
at javax.swing.pla f.basic.BasicDi rectoryModel$Lo adFilesThread.r un(BasicDirecto ryModel.java:21 5)
------------------------------------------------------------------------------------------------------------------
I've just done my project... River Data Report/Calculator Program...
I encountered this when closing the program...
Im using Frame...
@ CloseOperation, I've used dispose() and System.exit();
I'd tried to trap that exception... Like putting all methods with try/catch for debugging purposes.. but i can't....
My last Option is i did put a JOptionPane before the System.exit(0) in closingOperatio n method... and that stacktrace prints after i click the ok button in the JOptionPane... So for me that exception occured between System.exit(0) and the Garbage Collector... I didn't use finalize method...
Can you explain it to me Experts?!! I mean that Exception...
I really feel bad about that exception...
Have you encountered this Exception?
Can you share what you have learned about that Exception?
Any reply will be appreciated...
Sukatoa...
Comment