concurrent thread exception on closing app

3 messages Options
Embed this post
Permalink
mbedward

concurrent thread exception on closing app

Reply Threaded More More options
Print post
Permalink
Hi Cintia,

Just moving this back to the user list and I've split your post up
into two separate subjects to boost your chances of getting answers
from others here. I hope that's OK.

> Always when i finish my application i get this error:
>
> 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
> Source)
>     at sun.awt.shell.Win32ShellFolder2$FolderDisposer.dispose(Unknown
> Source)
>     at sun.java2d.Disposer.run(Unknown Source)
>     at java.lang.Thread.run(Unknown Source)Exception while removing
> reference: java.util.concurrent.RejectedExecutionException
> Exception while removing reference:
> java.util.concurrent.RejectedExecutionException
> Exception while removing reference:
> java.util.concurrent.RejectedExecutionException
>
> Do I have to do something before close the application?

I'm not seeing this error with any apps that use JMapPane / Frame.
Also, we recently had a conference session with a room full of folk
running JMapFrame examples on Windows and Linux - I didn't see this
error on anyone's screen there.

Are you only getting the error when you close one app or any app that
uses JMapPane ?  For instance, do you see it if you run any of the
example apps ?

http://geotools.org/examples/

Also, can you tell me if you're using GeoTools 2.6.0 or a SNAPSHOT ?

Michael

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Milton Jonathan

Re: concurrent thread exception on closing app

Reply Threaded More More options
Print post
Permalink
Hello Michael, hey people

As far as I know, this is a known Java 6 bug on Windows XP. It may
happen when you close an application after using JFileChooser (happens
with me too, although not so often) - so, nothing to do with JMapPane or
GeoTools.

I couldn't find the best link about the issue, but here goes one:
http://bugs.sun.com/view_bug.do;jsessionid=c8fd5d35d2bbc79c10d60edfe68?bug_id=6612928

Hope that helps
Milton

--

Milton Jonathan
Grupo GIS e Meio Ambiente
Tecgraf/PUC-Rio
Tel: +55-21-3527-2502

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: concurrent thread exception on closing app

Reply Threaded More More options
Print post
Permalink
Many thanks for that Milton - I was worried my recent changes to
JMapPane might have provoked the problem somehow.

There doesn't seem to be a consistent work-around from the comments on
that page.

I wonder if the same problem happens on Windows 7 ?

Michael

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users