GameLiftLocal Fails to start with Exception

0

Hi,

I'm trying to test Unity game server with GameLiftLocal

Using the GameLift Plugin for unity Local Testing window -> Deploy & Run

The program fails on : var initSDKOutcome = GameLiftServerAPI.InitSDK();

Error :

AM|Fatal|WebSocket.connect|System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it.

InitSDK failure : [GameLiftError: ErrorType=LOCAL_CONNECTION_FAILED, ErrorName=Local connection failed., ErrorMessage=Connection to local agent could not be established.]

When running GameLiftLocal manually : java -jar GameLiftLocal.jar -p 8000

Exception :

Exception in thread "main" java.lang.ExceptionInInitializerError at com.google.inject.internal.cglib.reflect.$FastClassEmitter.<init>(FastClassEmitter.java:67) at com.google.inject.internal.cglib.reflect.$FastClass$Generator.generateClass(FastClass.java:72) at com.google.inject.internal.cglib.core.$DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) at com.google.inject.internal.cglib.core.$AbstractClassGenerator.create(AbstractClassGenerator.java:216) at com.google.inject.internal.cglib.reflect.$FastClass$Generator.create(FastClass.java:64) at com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:204) at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.<init>(ProviderMethod.java:257) at com.google.inject.internal.ProviderMethod.create(ProviderMethod.java:71) at com.google.inject.internal.ProviderMethodsModule.createProviderMethod(ProviderMethodsModule.java:275) at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:144) at com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:123) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:349) at com.google.inject.spi.Elements.getElements(Elements.java:110) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104) at com.google.inject.Guice.createInjector(Guice.java:99) at com.google.inject.Guice.createInjector(Guice.java:73) at com.google.inject.Guice.createInjector(Guice.java:62) at com.amazon.gamelift.StandAloneServer.doMain(StandAloneServer.java:52) at com.amazon.gamelift.StandAloneServer.main(StandAloneServer.java:44) Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @270421f5 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:200) at java.base/java.lang.reflect.Method.setAccessible(Method.java:194) at com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at com.google.inject.internal.cglib.core.$ReflectUtils.<clinit>(ReflectUtils.java:46) ... 21 more

What can be the cause for this problem ?

I also tried with an Older version of GameLiftLocal, same error

Java :

java version "18.0.1" 2022-04-19

Java(TM) SE Runtime Environment (build 18.0.1+10-24)

Java HotSpot(TM) 64-Bit Server VM (build 18.0.1+10-24, mixed mode, sharing)

Unity :

2022.3.10f1

Ref :

https://docs.aws.amazon.com/gamelift/latest/developerguide/unity-plug-in-test.html https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-engines-unity-using.html

Habaron
질문됨 8달 전245회 조회
1개 답변
0

Hey Habaron,

What version of the GameLift Server SDK are using with your Unity Plugin? Could you clarify if it is the SDK from the GameLift_06_03_2021.zip bundle? The Unity Plugin is not yet supported for GameLift Server SDK 5.0 and upwards, which also doesn't have GameLift Local support. So any server built on SDK 5.x will fail to connect with the GameLift Local instance running on your instance.

Thanks!

AWS
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠