JavaのConcurrentフレームワークで非同期例外が発生した時に、非同期スレッド内のトレースに加えて呼び出し元のスタックトレースを返すFutureのデコレータを作ってみました。 例えば、次のようなコードを実行した場合、 // 非同期処理 Callable<Void> c = new Callable<Void>() { public Void call() throws Exception { throw new IOException(); // 例外をスロー } }; // 非同期処理を実行 Future<Void> future = Executors.newSingleThreadExecutor().submit(c); try { // 結果を取得 future.get(); } catch ( ExecutionException e ) { e.getCause().