ArgumentOutOfRangeException: Specified argument was out of the range of valid values.Stack trace: Raven.Client.Json.BlittableOperation.CompareBlittableArray(Sparrow.Json.BlittableJsonReaderArray newArray, Sparrow.Json.BlittableJsonReaderArray oldArray) @ 341 Raven.Client.Json.BlittableOperation.CompareBlittable(string id, Sparrow.Json.BlittableJsonReaderObject originalBlittable, Sparrow.Json.BlittableJsonReaderObject newBlittable, System.Collections.Generic.IDictionary<string, Raven.Client.Documents.Session.DocumentsChanges[]> changes, System.Collections.Generic.List<Raven.Client.Documents.Session.DocumentsChanges> docChanges) @ 513 Raven.Client.Json.BlittableOperation.CompareBlittable(string id, Sparrow.Json.BlittableJsonReaderObject originalBlittable, Sparrow.Json.BlittableJsonReaderObject newBlittable, System.Collections.Generic.IDictionary<string, Raven.Client.Documents.Session.DocumentsChanges[]> changes, System.Collections.Generic.List<Raven.Client.Documents.Session.DocumentsChanges> docChanges) @ 568 Raven.Client.Json.BlittableOperation.EntityChanged(Sparrow.Json.BlittableJsonReaderObject newObj, Raven.Client.Documents.Session.DocumentInfo documentInfo, System.Collections.Generic.IDictionary<string, Raven.Client.Documents.Session.DocumentsChanges[]> changes) @ 40 Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.EntityChanged(Sparrow.Json.BlittableJsonReaderObject newObj, Raven.Client.Documents.Session.DocumentInfo documentInfo, System.Collections.Generic.IDictionary<string, Raven.Client.Documents.Session.DocumentsChanges[]> changes) Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.PrepareForEntitiesPuts(Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.SaveChangesData result) @ 90 Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.PrepareForSaveChanges() @ 44 Raven.Client.Documents.Session.Operations.BatchOperation.CreateRequest() async Raven.Client.Documents.Session.AsyncDocumentSession.SaveChangesAsync(?) @ 168 async DDS.Synchronizer.Server.Repository.Store.SaveChangesAsync(?) in D:\Code\2DS\Aplicaciones\Synchronizer\DDS.Synchronizer.Server\Repository\Store_General.cs @ 60 async DDS.Synchronizer.Server.Business.AgentActions.PublishAction.Run(?) in D:\Code\2DS\Aplicaciones\Synchronizer\DDS.Synchronizer.Server\Business\AgentActions\PublishAction.cs @ 61
{ "AdditionalConfiguration": { "ApplicationIdentifier": "MySQL" }, "CurrentVersion": null, "EnvironmentId": "67212344095834112", "Files": { "Excluded": [ "config.ini" ], "Ignored": [ "infocompilacion.cmp", "config.local.ini" ] }, "Instances": [ { "InstallationPath": "d:/un/path/remoto", "RemoteAgentUrl": "http://localhost:5050/" } ], "LastUpdate": "2017-07-20T20:23:03.9489759Z", "Name": "Servicio", "SystemId": "67212334839005184", "Type": "Service", "@metadata": { "@collection": "ApplicationConfigurations", "Raven-Clr-Type": "DDS.Synchronizer.Shared.Data.ApplicationConfiguration, DDS.Synchronizer.Shared", "@change-vector": [ { "Etag": 12140, "DbId": "df2c0989-0a86-4961-a3ac-1134a8691ef4" } ] }}
public class ApplicationConfiguration : INamedStorable{ public ApplicationTypeConfiguration AdditionalConfiguration { get; set; } public string EnvironmentId { get; set; } public string SystemId { get; set; } public string CurrentVersion { get; set; } public ApplicationFiles Files { get; set; } public ApplicationInstance[] Instances { get; set; } public DateTime? LastUpdate { get; set; } public string Name { get; set; } public ApplicationType Type { get; set; } public string Id { get; set; }}
public sealed class ApplicationFiles{ public string[] Excluded { get; set; } public string[] Ignored { get; set; }}
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
using (var context = new BusinessContext(_configuration, _logger)) { var item = _item = _group.Items[_itemIndex];
try { _application = await context.Store.Applications.LoadAsync(item.ApplicationId); _version = await context.Store.Versions.LoadAsync(item.VersionId);
var result = await PingRemoteAgent(_application); if (!result.IsFaulted) { result = await PackAndSend(context); if (!result.IsFaulted) { result = await StartUpdate(context); if (!result.IsFaulted) {
_item.Status = PublishStatus.Completed; _item.LastMessage = "Publicación exitosa"; _application.CurrentVersion = item.VersionId; await context.Store.Applications.SaveAsync(_application); await context.SaveChangesAsync(); return; } } }
item.Status = PublishStatus.WithErrors; item.LastMessage = result.Errors.ToString(); } catch (Exception e) { _logger.Log(LogEventType.Error, e); item.Status = PublishStatus.WithErrors; item.LastMessage = e.ToString(); } }
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
I think that this happens when you are disposing _while_ you are calling SaveChangesAsync.
But I'm not sure.When you stop on this exception, can you check the state of the session?
That is the only thing I can think of that would make it not repeatable.Also, just to be sure, you aren't accessing the session from multiple threads at the same time, right?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.