4

I keep getting this huge list of warnings when creating a page using XPM. The errors all read:

Concurrent access to Session object detected. Thread (xx) and (yy) trying to access same Session concurrently. Session objects are not thread-safe! Component: Tridion.ContentManager Errorcode: 0 User: NT AUTHORITY\NETWORK SERVICE

Things are working properly, but I would like to solve this warning as well.

PS: Actually Tridion UI 2012

2
  • 1
    Sorry, no time to expand: stackoverflow.com/questions/10212794/…
    – Nuno Linhares
    Commented Dec 9, 2014 at 14:33
  • I thought I had properly searched through StackExchange before posting... I guess the only "new" parameter is that I only see it happen through a page creation in XPM... Commented Dec 10, 2014 at 8:18

1 Answer 1

1

Since they are warnings, you should just ignore them. Probabaly better when you set logging on production to error only, then you won't see them.

If you want the explanation as to where they come from, see the answer below, duplicated from https://stackoverflow.com/questions/10212794/what-programming-practices-cause-tridion-to-report-that-a-session-is-used-on-ano/10489163/#10489163

The problem does not only come about when storing a session, but also when storing any TOM.NET object (Component, Page, etc). Each such object has an internal reference to the Session that it was created from any access to the object may have to go back to the Session to retrieve the requested information from Tridion.

Although most properties that are 'native' to the item type seem to be retrieved and kept on an instance, a call like LoadApplicationData may (have to) reach back to the Session to access the requested data. And if this call then happens on a different thread, you'll get the warning message you mention.

I've started to look at every TOM.NET object I keep with suspicion and pre-load a lot of data I may need later when I first load the object from its Session.

1
  • Note that all Business Rule violations are logged as Warning. So I don't agree with the recommendation to set the log level to Error for Production; that will make problem analysis a lot harder. I also don't agree with the statement that Warnings can simply be ignored; this particular Warning is indicating that a serious programming error is detected - concurrent access to a TOM.NET Session can lead to the weirdest issues (you are quite lucky if you get a lot of these Warnings but you don't notice anything else) Commented Dec 10, 2014 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.