All Questions
Tagged with futuretask exception
5 questions
3
votes
1
answer
621
views
Why Future(Failure(new Exception)) returns Success instead of failure?
I was trying the following and thinking that I'll get a failure
val failure = Future { Failure(new Exception) }
but instead I got
Future(Success(Failure(java.lang.Exception)))
Can anyone answer why?
5
votes
1
answer
4k
views
cancelling a future task in java [duplicate]
I want to cancel a task submitted to ExecutorService thus allowing the corresponding thread to pick a new task from the queue.
Now this question have been answered many times on this forum.... like ...
2
votes
5
answers
2k
views
Java: Logging FutureTask exceptions
I've got an application which regularly submits tasks to be executed in a dedicated thread. Those tasks are FutureTask<V> and the thread is no more than an infinite loop which executes the jobs ...
1
vote
1
answer
582
views
ExecutionException thrown but without a cause
I have a futures task that is doing some I/O operations over the socket to a server. When I use the get() method of the task to retrieve the result, I am getting ExecutionException, but with no cause ...
0
votes
2
answers
2k
views
Future Task Async Calls hanging while exception occurs
I wrote many Async Future Task Calls one below another in my java program. Giving one sample below
FutureTask<List<ConditionFact>> x = getConditionFacts(final Member member);
FutureTask&...