HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DataCache.GetCache usage causing exceptionsDataCache.GetCache usage causing exceptions
Previous
 
Next
New Post
2/15/2006 10:50 PM
 

It's in 4.0.2 and 3.2.2 as far as I know.  I've seen it's fixed in 4.0.3 and 3.2.3 and that's been awhile ago so it should probably be getting close to being released I would think but I've got no idea how they do their releases here for the core.  I assume it's being tested too.

The error is most definitely in third party modules also.  Those will probably need to be fixed by whoever writes the modules or if you have the source it could be checked now.

It's not really a logic error just more of a coding style that normally probably wouldn't effect anything at all but in this case there is just a tiny sliver of time where is possible for an object to be null and cause a section of code to be run that generates the error if it's not acting on something.

I made the changes in 3.2.2 for myself but since I don't run anything live on .Net 2.0 yet I haven't done anything with it yet.  You'll probably be safe until the official release is out.

Cheers,


Paul Davis
 
New Post
3/9/2006 8:14 PM
 
Any idea when 4.0.3 will be released?  I am having the same problems.
 
New Post
11/13/2006 7:42 AM
 

Hi eveyone

I'm expriencing this problem too with DataCache.GetCache(). Okay, so reorganizing the code, removes some errors due to time problems. But I think the problem is beyond only reorganizing code.

I beleive that DataCache.GetCache() and SetCache() are the most called methods in the whole Core. But, strangely, these are not multi-threading safe. Check this code:

.... DataCache.SetCache(key, obj);

Object obj2 = DataCache.GetCache(key);

return obj2; // Most of the time, this is null

....

So what is happening is the SetCache method is not finishing synchrounosly and safely, when GetCache() tries to get that object , and whoooops no object !!!

So what I'm suggesting is to make the DataCache multi-thread safe.

Nice work guys

 

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DataCache.GetCache usage causing exceptionsDataCache.GetCache usage causing exceptions


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.