Guice为什么在main中从UncaughtExceptionHandler抛出$ ComputationException? [英] Why is Guice throwing $ComputationException from UncaughtExceptionHandler in main?

查看:133
本文介绍了Guice为什么在main中从UncaughtExceptionHandler抛出$ ComputationException?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行使用Guice的应用程序并启动Netty HTTP服务器.这是使用Java 8.

I'm trying to run an application that uses Guice and starts a Netty HTTP server. This is using Java 8.

但是,在启动时,我在控制台中看到此错误:

However, at startup I see this error in the console:

Exception: com.google.inject.internal.util.$ComputationException thrown from the UncaughtExceptionHandler in thread "main"

没有堆栈跟踪,仅此而已.

No stack trace, nothing else.

什么会导致此错误?

推荐答案

Guice 3.0与Java 8不兼容(请参见问题).您必须至少更新为 4.0 .

Guice 3.0 is incompatible with Java 8 (see this issue). You must update to at least 4.0.

这篇关于Guice为什么在main中从UncaughtExceptionHandler抛出$ ComputationException?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆