java.lang.IllegalStateException: Shutdown in progress in XMemcachedClient.shutdown -


i getting exception in xmemcached related code. can me fix expcetion? thank advanced!

exception in thread "thread-9" java.lang.illegalstateexception: shutdown in progress @ java.lang.applicationshutdownhooks.remove(applicationshutdownhooks.java:82) @ java.lang.runtime.removeshutdownhook(runtime.java:239) @ com.google.code.yanf4j.core.impl.abstractcontroller.stop(abstractcontroller.java:476) @ net.rubyeye.xmemcached.xmemcachedclient.shutdown(xmemcachedclient.java:2482) @ net.rubyeye.xmemcached.xmemcachedclient$1.run(xmemcachedclient.java:650) ... more

    memcachedclient client = lowcardinalitymemcachedclientsingleton.getprimaryclient();     try {         if(client.isshutdown() != true){             client.shutdown();         } else{             logger.debug("client shutdown");         }     } catch (ioexception e) {          logger.debug("shutdown memcachedclient fail", e);     }      long starttime = system.currenttimemillis();     long total = 0;     logger.debug("about run wait loop");      while(client.isshutdown() == false ||              total < 4000){         long stoptime = system.currenttimemillis();          total = stoptime - starttime;         if(total > 12000){             logger.debug("breaking because waiting more 12 seconds");             break;                   }     }       logger.debug("exiting");     system.exit(0); } 

that xmencache defect. have contacted author , fixed in next newest release.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -