Skip to content
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

Cannot watch local replay file if the client was not run #2654

Closed
Marc-Spector opened this issue Apr 11, 2022 · 0 comments · Fixed by #2656
Closed

Cannot watch local replay file if the client was not run #2654

Marc-Spector opened this issue Apr 11, 2022 · 0 comments · Fixed by #2656
Labels

Comments

@Marc-Spector
Copy link
Collaborator

To Reproduce

  1. Make sure the client is completely closed
  2. Try to click to local replay file

Log or error message

java.lang.RuntimeException: Exception in Application init method
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:896)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalStateException: Failed to execute ApplicationRunner
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:771)
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:758)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:310)
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164)
	at com.faforever.client.FafClientApplication.init(FafClientApplication.java:108)
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:825)
	... 2 more
Caused by: java.lang.NullPointerException: Cannot invoke "org.springframework.web.reactive.function.client.WebClient.get()" because "this.webClient" is null
	at com.faforever.client.api.FafApiAccessor.getMany(FafApiAccessor.java:266)
	at com.faforever.client.api.FafApiAccessor.getMany(FafApiAccessor.java:253)
	at com.faforever.client.mod.ModService.getFeaturedMod(ModService.java:466)
	at com.faforever.client.mod.ModService$$FastClassBySpringCGLIB$$aae9cfd3.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
	at org.springframework.cache.interceptor.CacheInterceptor.lambda$invoke$0(CacheInterceptor.java:54)
	at org.springframework.cache.interceptor.CacheAspectSupport.invokeOperation(CacheAspectSupport.java:366)
	at org.springframework.cache.interceptor.CacheAspectSupport.lambda$handleSynchronizedGet$1(CacheAspectSupport.java:447)
	at org.springframework.cache.caffeine.CaffeineCache$LoadFunction.apply(CaffeineCache.java:168)
	at com.github.benmanes.caffeine.cache.UnboundedLocalCache.lambda$computeIfAbsent$2(UnboundedLocalCache.java:239)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at com.github.benmanes.caffeine.cache.UnboundedLocalCache.computeIfAbsent(UnboundedLocalCache.java:235)
	at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108)
	at com.github.benmanes.caffeine.cache.LocalManualCache.get(LocalManualCache.java:62)
	at org.springframework.cache.caffeine.CaffeineCache.get(CaffeineCache.java:90)
	at org.springframework.cache.interceptor.CacheAspectSupport.handleSynchronizedGet(CacheAspectSupport.java:442)
	at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:382)
	at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:345)
	at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:64)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
	at com.faforever.client.mod.ModService$$EnhancerBySpringCGLIB$$b87227b0.getFeaturedMod(<generated>)
	at com.faforever.client.game.GameService.runWithReplay(GameService.java:359)
	at com.faforever.client.game.GameService$$FastClassBySpringCGLIB$$eb8a13b.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
	at com.faforever.client.game.GameService$$EnhancerBySpringCGLIB$$ae68bc70.runWithReplay(<generated>)
	at com.faforever.client.replay.ReplayService.runFafReplayFile(ReplayService.java:373)
	at com.faforever.client.replay.ReplayService.runReplayFile(ReplayService.java:327)
	at com.faforever.client.replay.ReplayService$$FastClassBySpringCGLIB$$39329fdb.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
	at com.faforever.client.replay.ReplayService$$EnhancerBySpringCGLIB$$8c2adcc8.runReplayFile(<generated>)
	at com.faforever.client.os.FileOpeningHandler.runReplay(FileOpeningHandler.java:46)
	at com.faforever.client.os.FileOpeningHandler.run(FileOpeningHandler.java:56)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:768)
	... 7 more

Screenshots
image

OS
Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant