Gasman Posted April 14, 2018 Posted April 14, 2018 Hey when i cllick 'Create Character' button my server crash.
cheeck Posted April 14, 2018 Posted April 14, 2018 Только что, Gasman сказал: Hey when i cllick 'Create Character' button my server crash. This is your problem, everything works fine for me, try to reinstall the server
Sevage Posted April 15, 2018 Posted April 15, 2018 Hello, after create Char, i have a Servercrash. Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Int32'. Path 'firstHeadShape', line 1, position 22. ---> System.InvalidCastException: Null object cannot be converted to a value type. at object Convert.ChangeType(object value, Type conversionType, IFormatProvider provider) at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType) --- End of inner exception stack trace --- at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType) at bool Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, object target) at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, string id) at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue) at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, bool checkAdditionalContent) at object Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at object Newtonsoft.Json.JsonConvert.DeserializeObject(string value, Type type, JsonSerializerSettings settings) at T Newtonsoft.Json.JsonConvert.DeserializeObject<T>(string value, JsonSerializerSettings settings) at void WiredPlayers.login.Login.CreateCharacterEvent(Client player, string playerName, int playerAge, string skinJson) in :line 350 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at GTANetworkInternals.RemoteEventParser.Parse(Client sender, UInt64 eventNameHash, Object[] args) at Bootstrapper.EventInternalClass.OnPlayerRemoteEvent(UInt16 playerId, UInt64 eventHash, UInt32 argsCount, IntPtr args) Sorry for my bad english.
Xabi Posted April 15, 2018 Author Posted April 15, 2018 8 minutes ago, Sevage said: Hello, after create Char, i have a Servercrash. Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Int32'. Path 'firstHeadShape', line 1, position 22. ---> System.InvalidCastException: Null object cannot be converted to a value type. at object Convert.ChangeType(object value, Type conversionType, IFormatProvider provider) at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType) --- End of inner exception stack trace --- at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType) at bool Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, object target) at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, string id) at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue) at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, bool checkAdditionalContent) at object Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at object Newtonsoft.Json.JsonConvert.DeserializeObject(string value, Type type, JsonSerializerSettings settings) at T Newtonsoft.Json.JsonConvert.DeserializeObject<T>(string value, JsonSerializerSettings settings) at void WiredPlayers.login.Login.CreateCharacterEvent(Client player, string playerName, int playerAge, string skinJson) in :line 350 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at GTANetworkInternals.RemoteEventParser.Parse(Client sender, UInt64 eventNameHash, Object[] args) at Bootstrapper.EventInternalClass.OnPlayerRemoteEvent(UInt16 playerId, UInt64 eventHash, UInt32 argsCount, IntPtr args) Sorry for my bad english. Did you test with the latest uploaded gamemode? I'm not having any problem with it.
Sevage Posted April 15, 2018 Posted April 15, 2018 (edited) Yes, i have (Git v100). And i clear the local Cache-Files. Edited April 15, 2018 by Sevage
Xabi Posted April 15, 2018 Author Posted April 15, 2018 Anything special you did? I tried using the default values and also changing some values, couldn't reproduce it.
GTX Posted April 16, 2018 Posted April 16, 2018 Help me please -> Error starting 'WiredPlayers' System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.AggregateException: One or more errors occurred. (No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 192.168.1.2:3306) ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 192.168.1.2:3306 at void System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at bool System.Net.Sockets.Socket.DoMultipleAddressConnectCallback(object result, MultipleAddressConnectAsyncResult context) at bool System.Net.Sockets.Socket.DoMultipleAddressConnectCallback(object result, MultipleAddressConnectAsyncResult context) at void System.Net.Sockets.Socket.MultipleAddressConnectCallback(IAsyncResult result) at void System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at void System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult) at Task System.Net.Sockets.TcpClient.ConnectAsync(string host, int port)+(IAsyncResult asyncResult) => { } [1] at void System.Threading.Tasks.TaskFactory<TResult>.FromAsyncCoreLogic(IAsyncResult iar, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, Task<TResult> promise, bool requiresSynchronization) --- End of inner exception stack trace --- at void System.Threading.Tasks.Task.ThrowIfExceptional(bool includeTaskCanceledExceptions) at bool System.Threading.Tasks.Task.Wait(int millisecondsTimeout, CancellationToken cancellationToken) at Stream MySql.Data.Common.StreamCreator.GetTcpStream(MySqlConnectionStringBuilder settings) at void MySql.Data.MySqlClient.NativeDriver.Open() --- End of inner exception stack trace --- at MySql.Data.MySqlClient.NativeDriver.Open() at MySql.Data.MySqlClient.Driver.Open() at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() at MySql.Data.MySqlClient.MySqlPool.GetConnection() at MySql.Data.MySqlClient.MySqlConnection.Open() at WiredPlayers.database.Database.LoadAllBusiness() in database/Database.cs:line 1208 at WiredPlayers.business.Business.LoadDatabaseBusiness() in business/Business.cs:line 21 at WiredPlayers.database.Database.OnResourceStart() in database/Database.cs:line 43 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\ResourceInfo.cs:line 33 at System.Collections.Generic.List`1.ForEach(Action`1 action) at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\EventHandler.cs:line 903 at System.Collections.Generic.List`1.ForEach(Action`1 action) at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\Resources.cs:line 327
Xabi Posted April 16, 2018 Author Posted April 16, 2018 4 hours ago, GTX said: Help me please -> Error starting 'WiredPlayers' System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.AggregateException: One or more errors occurred. (No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 192.168.1.2:3306) ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 192.168.1.2:3306 at void System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at bool System.Net.Sockets.Socket.DoMultipleAddressConnectCallback(object result, MultipleAddressConnectAsyncResult context) at bool System.Net.Sockets.Socket.DoMultipleAddressConnectCallback(object result, MultipleAddressConnectAsyncResult context) at void System.Net.Sockets.Socket.MultipleAddressConnectCallback(IAsyncResult result) at void System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at void System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult) at Task System.Net.Sockets.TcpClient.ConnectAsync(string host, int port)+(IAsyncResult asyncResult) => { } [1] at void System.Threading.Tasks.TaskFactory<TResult>.FromAsyncCoreLogic(IAsyncResult iar, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, Task<TResult> promise, bool requiresSynchronization) --- End of inner exception stack trace --- at void System.Threading.Tasks.Task.ThrowIfExceptional(bool includeTaskCanceledExceptions) at bool System.Threading.Tasks.Task.Wait(int millisecondsTimeout, CancellationToken cancellationToken) at Stream MySql.Data.Common.StreamCreator.GetTcpStream(MySqlConnectionStringBuilder settings) at void MySql.Data.MySqlClient.NativeDriver.Open() --- End of inner exception stack trace --- at MySql.Data.MySqlClient.NativeDriver.Open() at MySql.Data.MySqlClient.Driver.Open() at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() at MySql.Data.MySqlClient.MySqlPool.GetConnection() at MySql.Data.MySqlClient.MySqlConnection.Open() at WiredPlayers.database.Database.LoadAllBusiness() in database/Database.cs:line 1208 at WiredPlayers.business.Business.LoadDatabaseBusiness() in business/Business.cs:line 21 at WiredPlayers.database.Database.OnResourceStart() in database/Database.cs:line 43 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\ResourceInfo.cs:line 33 at System.Collections.Generic.List`1.ForEach(Action`1 action) at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\EventHandler.cs:line 903 at System.Collections.Generic.List`1.ForEach(Action`1 action) at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\Resources.cs:line 327 You need to execute the .sql script to create the database and edit the connection string into Database.cs
Recommended Posts