[ https://issues.apache.org/jira/browse/PIVOT-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16282244#comment-16282244 ]
Roger Whitcomb commented on PIVOT-498: -------------------------------------- Move the "DefaultExecutorService" out of "Task.java" into its own class: "SimpleExecutorService" and change the default for Task, etc. to be "Executors.newCachedThreadPool()". Tests run fine, our (large) application runs fine, and the workaround can still be applied if necessary using this new/old class. Adding core\src\org\apache\pivot\util\concurrent\SimpleExecutorService.java Sending core\src\org\apache\pivot\util\concurrent\Task.java Transmitting file data ..done Committing transaction... Committed revision 1817402. > Revisit use of Executors.newCachedThreadPool() in Task class > ------------------------------------------------------------ > > Key: PIVOT-498 > URL: https://issues.apache.org/jira/browse/PIVOT-498 > Project: Pivot > Issue Type: Task > Components: core-util > Reporter: Greg Brown > Assignee: Roger Whitcomb > Fix For: 2.5 > > > There appears to be an issue with Executors.newCachedThreadPool() when > running as an applet. IllegalThreadStateExceptions are thrown periodically > and seemingly unpredictably. The current workaround uses a custom > ExecutorService that simply dispatches requests to new threads as they are > received. However, this is not optimal and a better solution should be found, > if possible. -- This message was sent by Atlassian JIRA (v6.4.14#64029)