+ Reply to Thread
Results 1 to 5 of 5

Thread: 5.3.1-> 5.3.2 nullreferenceexception on login response

  1. #1
    Member
    Join Date
    Jan 2012
    Posts
    36
    Thanks
    2
    Thanked 3 Times in 2 Posts

    5.3.1-> 5.3.2 nullreferenceexception on login response

    Hello , i update my electroserver server to 5.3.2 , recompiled my plugin with the new lib , change the electroserver5-unity lib to the new , but now when my server send the LoginResponse message i got this error on unity :


    NullReferenceException: Object reference not set to an instance of an object
    Electrotank.Electroserver5.Core.ManagerHelper.OnLo gin (Electrotank.Electroserver5.Api.EsMessage m)
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
    System.Delegate.DynamicInvokeImpl (System.Object[] args)
    System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args)
    System.Delegate.DynamicInvoke (System.Object[] args)
    Electrotank.Electroserver5.Core.EsEngineDefault.Ra ise (Electrotank.Electroserver5.Api.EsMessage message)
    Electrotank.Electroserver5.Core.EsEngineDefault._D ispatch ()
    Electrotank.Electroserver5.Core.EsEngineDefault.Di spatch ()
    it happen after the return of _es.Engine.Send(loginRequest); (DbLoginMysql exemple)

  2. #2
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,213
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    Did you set the needed server level components? DbLoginMySQL needs two of them, a login event handler and the database plugin.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  3. #3
    Member
    Join Date
    Jan 2012
    Posts
    36
    Thanks
    2
    Thanked 3 Times in 2 Posts
    the server side work great , do all the mysql job , but when he send the loginresponse to my unity game , unity give me this error .

  4. #4
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,213
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    Yes, looking more closely at the error message shows that it is failing in ManagerHelper. Are you sure that you recompiled using the correct dlls? There's a known problem with using Unity clients that are compiled with the 5.3.1 or earlier dlls and the 5.3.2 server.

    I can try to reproduce this on Monday, if you still have problems after double checking that you are using the correct version of the client.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  5. #5
    Member
    Join Date
    Jan 2012
    Posts
    36
    Thanks
    2
    Thanked 3 Times in 2 Posts
    I retry to delete the electroserver5-unity and replace with the new and now it work , look like the first time unity no recompille with the new dll . thanks for help .

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts