Announcement Announcement Module
No announcement yet.
problem in wiring voldemort into my project Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem in wiring voldemort into my project

    I'm integrating voldemort into my project. If I instantiate the voldemort factory in a non-spring way, it is working great. however when i wire the factory using spring, i'm getting the error "[ istableBeanFactory]Destroying singletons in istableBeanFactory...[ leBeanAdapter] Invoking destroy() on bean with name 'exporter'.........[org.springframework.jmx.export.MBeanExporter] Unregistering JMX-exposed beans on shutdown". All my singletons are getting destroyed and my voldemort stuff breaks. i don't see any problem in the xml file. I have marked my log at TRACE level. I feel spring should log the error in more meaningful manner so that the users can determine the problem with out pulling too much hair. Here is my application-context-cache.xml where I've configured voldemort.

    Any help would be greatly appreciated.

    <?xml version="1.0" encoding="UTF-8" ?>
    <beans xmlns="" xmlns:xsi=""
        <bean id="storeClientFactory" class="voldemort.client.HttpStoreClientFactory">
                <bean class="voldemort.client.ClientConfig" id="config">
                    <property name="bootstrapUrls" value=""/>
    package edu.apollogrp.d2ec.cacheLayer;
    import edu.apollogrp.d2ec.dao.EnrollmentGroupDAO;
    import edu.apollogrp.d2ec.dao.hibernate.exception.PersistenceException;
    import edu.apollogrp.d2ec.util.Preferences;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.beans.factory.annotation.Qualifier;
    import org.springframework.scheduling.annotation.Scheduled;
    import org.springframework.stereotype.Component;
    import org.springframework.stereotype.Service;
    import voldemort.client.*;
    import voldemort.versioning.Versioned;
    import java.util.Date;
    import java.util.Map;
     * author: Maddy Lakshmanan (mxlakshm)
     * date: Jun 26, 2009 12:53:40 PM
        public class RankCacheLogicImpl implements RankCacheLogic {
        private static final Log logger = LogFactory.getLog(RankCacheLogicImpl.class);
        StoreClient<String, Long> client = null;
        StoreClientFactory storeClientFactory;
        public RankCacheLogicImpl() {
    //        String bootstrapUrl = "";
    //        StoreClientFactory storeClientFactory = new HttpStoreClientFactory(new ClientConfig().setBootstrapUrls(bootstrapUrl));
            // create a client that executes operations on a single store
            client = storeClientFactory.getStoreClient("test");
        public void setStoreClientFactory(StoreClientFactory storeClientFactory) {
            this.storeClientFactory = storeClientFactory;
    Last edited by luvfort; May 18th, 2010, 03:50 PM.

  • #2
    Any resolution luvfort? Please share if so.


    • #3
      Isnt the problem...

      That you use storeClientFactory in the constructor of RankCacheLogicImpl while the property gets set AFTER the constructor? Guaranteed nullpointer I reckon.