Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Error when trying to access couchbase from my test environment

2 replies [Last post]
  • Login or register to post comments
Fri, 07/06/2012 - 04:45
dunc
Offline
Joined: 07/06/2012
Groups: None

Hi

I have written a ASP.NET MVC application that makes primitice use of couchbase 1.8. The application works when I run it in my dev environment but when I deploy it into my test environment then I get the following error.

System.NullReferenceException: Object reference not set to an instance of an object. at Enyim.Caching.Memcached.DefaultKeyTransformer.Transform(String key) at Enyim.Caching.Memcached.KeyTransformerBase.Enyim.Caching.Memcached.IMemcachedKeyTransformer.Transform(String key) at Couchbase.CouchbaseClient.PerformStore(StoreMode mode, String key, Object value, UInt32 expires, UInt64& cas, Int32& statusCode) at Enyim.Caching.MemcachedClient.Store(StoreMode mode, String key, Object value, DateTime expiresAt) at MyApp.AddInActiveSession(String key, DateTime expires)...

Does anyone have any clues what the issue is?

Thanks

Dunc

Top
  • Login or register to post comments
Mon, 07/16/2012 - 12:43
john
Offline
Joined: 01/05/2012
Groups: None

Copying over the thread from StackOverflow...

http://stackoverflow.com/questions/11361609/couchbase-net-sdk-error-when...

Given that stack trace and the code you posted, it's odd, but it appears that your key is null - DefaultKeyTransformer.Transform is the call that's breaking with a null reference exception. How do you generate idString? Also note that you don't want to use the CouchbaseClient in an instance-per-operation manner because there's an expensive handshake when you new up an instance - instead try a per-app-domain model (i.e., global static instance).

Top
  • Login or register to post comments
Tue, 07/24/2012 - 02:35
jennchino
Offline
Joined: 07/24/2012
Groups: None

Useful, keep posting.

______________________

dc comics heroes

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker