-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factory method 'bootstrap' threw exception; nested exception is java.lang.NullPointerException: handler #10
Comments
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'DHTServer': Unsatisfied dependency expressed through field 'b'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverBootstrap' defined in class path resource [cc/dodder/dhtserver/netty/config/NettyConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.netty.bootstrap.Bootstrap]: Circular reference involving containing bean 'nettyConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'bootstrap' threw exception; nested exception is java.lang.NullPointerException: handler |
希望作者能帮我一下,没弄过netty,这个问题,我实在解决不了。明明idea里面运行没任何问题,但是打成包后,就直接报错了,我也是懵了。。。 |
一模一样的错误,楼主解决了吗?愿意付费 xgshi@vip.163.com |
So after few attempts changing the spring-boot and netty versions and no luck, I think it all lies with some classpath precedence problem that I've no time to investigate further. Please note that some libraries here below have been updated, as I've forked the project
|
Factory method 'bootstrap' threw exception; nested exception is java.lang.NullPointerException: handler----------------------------idea里面跑没有任何问题,但是打成包后,dht-server-1.0-SNAPSHOT.jar,运行这个包就出现上面的问题了。我搞了好久,还是没办法。
The text was updated successfully, but these errors were encountered: