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
feita há 8 meses244 visualizações
1 Resposta
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
respondido há 8 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas