Im curious about this Exception....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #1

    Im curious about this Exception....

    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...
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    I'm guessing, but it looks like an attempt to use JFileChooser after Swing has shut down.

    Comment

    • sukatoa
      Contributor
      • Nov 2007
      • 539

      #3
      Originally posted by BigDaddyLH
      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...thank s 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?

      Comment

      • BigDaddyLH
        Recognized Expert Top Contributor
        • Dec 2007
        • 1216

        #4
        Originally posted by sukatoa
        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...thank s 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.

        Comment

        Working...