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.

  • sergio 10 posts 50 karma points
    Jul 22, 2014 @ 16:29
    sergio
    0

    Object reference on product chnage (create product, save product, delete product)

     

    If I try to create product I get this: 

    Please help me fix that error.

    full text of the Error:

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       Raven.Abstractions.Logging.LogProviders.LogManagerBase.GetNdcPushMethodCall() +200
       Raven.Abstractions.Logging.LogProviders.LogManagerBase..ctor(Func`2 loggerFactory) +112
       Raven.Abstractions.Logging.LogProviders.NLogLogManager..ctor() +130
       Raven.Abstractions.Logging.LogManager.ResolveExternalLogManager() +64
       Raven.Abstractions.Logging.LogManager.get_CurrentLogManager() +56
       Raven.Abstractions.Logging.LogManager.GetLogger(String name) +56
       Raven.Abstractions.Logging.LogManager.GetLogger(Type type) +53
       Raven.Abstractions.Logging.LogManager.GetCurrentClassLogger() +109
       Raven.Client.Embedded.EmbeddableDocumentStore..ctor() +52
       UCommerce.Search.RavenDB.RavenDbStoreProvider.CreateEmbeddableDocumentStoreHttpServer(String ravenDatabasePath) +72
       UCommerce.Search.RavenDB.RavenDbStoreProvider.SetupEmbeddedDocumentStore() +471
       UCommerce.Search.RavenDB.RavenDbStoreProvider.GetStore() +104
       UCommerce.Search.RavenDB.RavenDbRepository.Save(T document) +60
       UCommerce.Search.RavenDB.RavenDbRepository.SaveMany(IEnumerable`1 documents) +441
       UCommerce.Search.Indexers.RavenProductIndexer.Index(IEnumerable`1 subjects) +255
       UCommerce.Search.Indexers.RavenProductIndexer.Index(Product subjects) +87
       UCommerce.Pipelines.Search.<>c__DisplayClass1.<Execute>b__0(IIndexer`1 x) +102
       UCommerce.Extensions.CollectionExtensions.ForEach(IEnumerable`1 source, Action`1 action) +194
       UCommerce.Pipelines.Search.SearchIndexerTask`1.Execute(T subject) +243
       UCommerce.Pipelines.Pipeline`1.Execute(T subject) +341
    
    [PipelineException: Exception occoured while processing pipeline 'UCommerce.Pipelines.Catalog.ProductPipeline'. See inner exception for details.]
       UCommerce.Pipelines.Pipeline`1.Execute(T subject) +874
       UCommerce.Web.UI.Catalog.CreateCategoryOrProduct.CreateButton_Clicked(Object sender, EventArgs e) +1086
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9750842
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +196
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
  • Morten Skjoldager 440 posts 1499 karma points
    Jul 24, 2014 @ 10:28
    Morten Skjoldager
    0

    Seems to be deep inside Raven there's some method blowing up. Which is strange. IS this a fresh install?

  • sergio 10 posts 50 karma points
    Jul 24, 2014 @ 11:46
    sergio
    0

    Hi, thx for answer! That is Umbraco v6.1.6 (Assembly version: 1.0.5021.24867), uCommerce 6.0.3.14141.... it happened on the project at the end of development.... MB it's related to some database thing, like clear orders and baskets or something like.... The thing is I do not know where I have to looking for problem

  • sergio 10 posts 50 karma points
    Jul 24, 2014 @ 15:38
    sergio
    0

    I have just tried to create new project, and use existing data base, it's working... but then I moved everyting from my project to this test project and it retrurns error again : ( .... so the problem not in data base....

  • sergio 10 posts 50 karma points
    Jul 24, 2014 @ 16:27
    sergio
    0

    Hi, I have figured out what library do this error, it happens if I add NLog.dll. But I can't do not use this library because it's needed for NemID sign on my site(it's a shop and user should be able to sign agreement by NemID).... could you give me some solution?

    Thx!

  • Jesper Nielsen 141 posts 498 karma points
    Jul 25, 2014 @ 14:06
    Jesper Nielsen
    0

    Hello,

    How is this a problem only on the Live site?
    Do you not have the NLog.dll present in the development environment?

    Are there different versions of the NLog.dll on the two systems?

    Or is Raven logging only configured in one of them?

    Kind regards,
    Jesper

  • sergio 10 posts 50 karma points
    Jul 28, 2014 @ 17:49
    sergio
    0

    Hello Jesper,

    I have only development version of the project yet. Everything was ok before I integrated NemID to site, I do not know is Raven configured in uCommerce but if I add NLog.dll to my project, product create/delete/save do not work and I can see just this error (if remove it, uCommerce works again)

    I will try to use some another version of NLog.dll but I afraid that is will not work for NemID... but it could be the solution, so I will try

    Maybe some other ideas? : )

    Thx for response!

  • Jesper Nielsen 141 posts 498 karma points
    Jul 31, 2014 @ 09:58
    Jesper Nielsen
    0

    Hello,

    Looks very strange. So simply adding the assembly causes RavenDb to fail?

    An idea could be to configure RavenDb for logging, since it looks like it is trying to set it up if NLog.dll is found.

    I have no experience in doing that, so you will have to Google it. :-S

    Kind regards,
    Jesper

Please Sign in or register to post replies

Write your reply to:

Draft