473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Im curious about this Exception....

539 512MB
Exception in thread "Basic L&F File Loading Thread" java.util.concurrent.RejectedExecutionException
at java.util.concurrent.ThreadPoolExecutor$AbortPolic y.rejectedExecution(ThreadPoolExecutor.java:1759)
at java.util.concurrent.ThreadPoolExecutor.reject(Thr eadPoolExecutor.java:767)
at java.util.concurrent.ThreadPoolExecutor.execute(Th readPoolExecutor.java:658)
at java.util.concurrent.AbstractExecutorService.submi t(AbstractExecutorService.java:92)
at sun.awt.shell.Win32ShellFolder2$ComTask.execute(Wi n32ShellFolder2.java:1214)
at sun.awt.shell.Win32ShellFolder2.hasAttribute(Win32 ShellFolder2.java:516)
at sun.awt.shell.Win32ShellFolder2.isFileSystem(Win32 ShellFolder2.java:509)
at sun.awt.shell.Win32ShellFolder2.equals(Win32ShellF older2.java:484)
at sun.awt.shell.Win32ShellFolderManager2.isFileSyste mRoot(Win32ShellFolderManager2.java:325)
at sun.awt.shell.ShellFolder.isFileSystemRoot(ShellFo lder.java:233)
at javax.swing.filechooser.FileSystemView.isFileSyste mRoot(FileSystemView.java:310)
at javax.swing.filechooser.WindowsFileSystemView.isTr aversable(FileSystemView.java:632)
at javax.swing.JFileChooser.isTraversable(JFileChoose r.java:1560)
at javax.swing.plaf.basic.BasicDirectoryModel$LoadFil esThread.run0(BasicDirectoryModel.java:250)
at javax.swing.plaf.basic.BasicDirectoryModel$LoadFil esThread.run(BasicDirectoryModel.java:215)
------------------------------------------------------------------------------------------------------------------

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 closingOperation 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...
Dec 24 '07 #1
3 2314
BigDaddyLH
1,216 Expert 1GB
I'm guessing, but it looks like an attempt to use JFileChooser after Swing has shut down.
Dec 24 '07 #2
sukatoa
539 512MB
I'm guessing, but it looks like an attempt to use JFileChooser after Swing has shut down.
Thanks bro, i've implemented a method that would make the object equal to null before the dispose and exit calls... Your right, At my JFileChooser...

The exception now trapped...thanks for the reply...

Is it ok that i equate that object into null? Is there a disadvantage?

is the object consumes an amount of memory at RAM? or in general purpose registers in Processors?
Dec 25 '07 #3
BigDaddyLH
1,216 Expert 1GB
Thanks bro, i've implemented a method that would make the object equal to null before the dispose and exit calls... Your right, At my JFileChooser...

The exception now trapped...thanks for the reply...

Is it ok that i equate that object into null? Is there a disadvantage?

is the object consumes an amount of memory at RAM? or in general purpose registers in Processors?
That was just a guess on my part. I wouldn't worry about memory consumption. I would just try to make the shutdown code as clean as possible.
Dec 25 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Nicolas Fleury | last post by:
Hi, I've made a small utility to re-raise an exception with the same stack as before with additional information in it. Since I want to keep the same exception type and that some types have very...
2
by: Stephan Diehl | last post by:
I just found out by accident, that slice indices can be larger than the length of the object. For example >>> 'test' 'test' >>> 'test' '' I'd rather expected to be confronted with an...
5
by: Michael Culley | last post by:
I have an MDI application that was occasionally refusing to close. When clicking on the cross at the top right the app would just not do anything and the only way to close it was to terminate it....
2
by: tom | last post by:
Hi, I am developing a WinForm application and I am looking for a guide on where to place Exception Handling. My application is designed into three tiers UI, Business Objects, and Data Access...
7
by: tshad | last post by:
I was curious if there is some reason why you don't need the "then" in the if test of VB.Net or is it just ASP.NET. I just noticed that I don't really need to explicitly put the word "then" as...
3
by: CoreyWhite | last post by:
I wrote a program that shows some incredibly curious probabilities. It is a simple game where you guess a number between 0 and 2 that the computer thinks up. What is origonal about this game is...
15
by: Jim B. Wilson | last post by:
Am I nuts? Or only profoundly confused? I expected the this little script to print "0": class foo(int): def __init__(self, value): self = value & 0xF print foo(0x10) Instead, it prints...
3
by: Boris Borcic | last post by:
>>x = (lambda : ((yield 666),(yield 777),(yield 888)))() 666 777 888 (None, None, None) 666 777 888 Traceback (most recent call last):
11
by: Liz | last post by:
anyone have any idea why there have been (at least) 82 VS 2008 post-release messages here on the C# board but only 5 on the VB.NET board; are the VB crowd just not interested?? strikes me as a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.