Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Mads Tjørnfelt 3 posts 23 karma points
    Mar 03, 2014 @ 14:37
    Mads Tjørnfelt
    0

    Error when using "Index everything from scratch"

    When trying to index everything from scratch, i get a bunch of these errors, flooding the UmbracoTraceLog file:

    ERROR Raven.Database.Indexing.AbstractIndexingExecuter - Failed to execute indexing
    System.InvalidOperationException: The JsonReader should not be on a token of type StartObject.
       ved Raven.Json.Linq.RavenJObject.Load(JsonReader reader)
       ved Raven.Json.Linq.RavenJObject.Load(JsonReader reader)
       ved Raven.Abstractions.Extensions.JsonExtensions.ToJObject(Stream self)
       ved Raven.Storage.Esent.StorageActions.DocumentStorageActions.ReadCurrentDocument()
       ved Raven.Storage.Esent.StorageActions.DocumentStorageActions.<GetDocumentsAfter>d__12.MoveNext()
       ved System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
       ved System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       ved System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       ved Raven.Database.Prefetching.PrefetchingBehavior.<>c__DisplayClass3.<GetJsonDocsFromDisk>b__0(IStorageActionsAccessor actions)
       ved Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action, EsentTransactionContext transactionContext)
       ved Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action)
       ved Raven.Database.Prefetching.PrefetchingBehavior.GetJsonDocsFromDisk(Etag etag, Etag untilEtag)
       ved Raven.Database.Prefetching.PrefetchingBehavior.LoadDocumentsFromDisk(Etag etag, Etag untilEtag)
       ved Raven.Database.Prefetching.PrefetchingBehavior.GetDocsFromBatchWithPossibleDuplicates(Etag etag)
       ved Raven.Database.Prefetching.PrefetchingBehavior.GetDocumentsBatchFrom(Etag etag)
       ved Raven.Database.Indexing.IndexingExecuter.ExecuteIndexingWork(IList`1 indexesToWorkOn, Etag startEtag)
       ved Raven.Database.Indexing.AbstractIndexingExecuter.ExecuteIndexing(Boolean isIdle, Boolean& onlyFoundIdleWork)
       ved Raven.Database.Indexing.AbstractIndexingExecuter.Execute()

    I'm using Umbraco 6.1.6 and uCommerce 5.1.1.14007

     

     

  • Morten Skjoldager 440 posts 1499 karma points
    Mar 06, 2014 @ 11:12
    Morten Skjoldager
    0

    Hello Mads,

    A quick google search for the exception yields no specific information other than it might be corrupted JSON that's being parsed. 

    Do you have a null or empty value in one of your properties? 

    Looks like the exception is thrown here when there's an element that is null or empty:

    https://github.com/ravendb/ravendb/blob/master/Raven.Abstractions/Json/Linq/RavenJObject.cs

    Maybe we have a bug here :)

    Does this also happen when you save a product? 

    Can you maybe send me your database at msk AT ucommerce DOT net

    Best regards

    Morten

  • Mads Tjørnfelt 3 posts 23 karma points
    Mar 06, 2014 @ 15:49
    Mads Tjørnfelt
    0

    We are creating the products programmatically, thereby skipping the input validation that the UI normally provides, so yes there are null or empty values in a lot of properties.

    Yes, this also happens when saving a product, and when saving a category.

    I have sent a copy of the database to you.

    Thanks in advance!

  • Jesper Nielsen 141 posts 498 karma points
    Mar 14, 2014 @ 09:36
    Jesper Nielsen
    0

    This should be fixed in the next release! :-)

    Kind regards,

    Jesper

  • Mads Tjørnfelt 3 posts 23 karma points
    Mar 14, 2014 @ 09:58
    Mads Tjørnfelt
    0

    Thanks for the great support - the beta package you created for us resolved the issue, and we are looking forward to the fix in the stable release! :-)

Please Sign in or register to post replies

Write your reply to:

Draft