mrzhqiang / ms079

冒险岛 v079 版本,源码来自网络,本仓库作为研究学习用途。
126 stars 82 forks source link

执行MapleStoryApplication的main法和打包后执行 启动服务端-GUI.bat报同一个错[BUG] #22

Closed abc706354 closed 7 months ago

abc706354 commented 1 year ago

Exception in thread "main" com.google.inject.ConfigurationException: Guice configuration errors:

1) [Guice/MissingConstructor]: No injectable constructor for type LoginServer.

class LoginServer does not have a @Inject annotated constructor or a no-arg constructor.

Requested by: 1 : LoginServer.class(LoginServer.java:30) at CharLoginHandler.(CharLoginHandler.java:42) _ for 2nd parameter at handling.MapleServerHandler.(MapleServerHandler.java:97) _ for 1st parameter at CashShopServer.(CashShopServer.java:35) _ for 3rd parameter at ApplicationStarter.(ApplicationStarter.java:65) _ for 5th parameter at MapleStoryApplication.(MapleStoryApplication.java:29) _ for 1st parameter while locating MapleStoryApplication 2 : LoginServer.class(LoginServer.java:30) at CharLoginHandler.(CharLoginHandler.java:42) _ for 2nd parameter at handling.MapleServerHandler.(MapleServerHandler.java:97) _ for 1st parameter at AuthenticationServer.(AuthenticationServer.java:42) _ for 2nd parameter at ApplicationStarter.(ApplicationStarter.java:65) _ for 6th parameter at MapleStoryApplication.(MapleStoryApplication.java:29) _ for 1st parameter while locating MapleStoryApplication 3 : LoginServer.class(LoginServer.java:30) at server.ShutdownServer.(ShutdownServer.java:28) _ for 1st parameter at ApplicationStarter.(ApplicationStarter.java:65) _ for 7th parameter at MapleStoryApplication.(MapleStoryApplication.java:29) _ for 1st parameter while locating MapleStoryApplication

mrzhqiang commented 1 year ago

建议用 master 分支第一次提交的版本,并且 jdk 使用 1.7 版本。 目前最新代码都没有经过完整验证。