Error Reading Oscache
Mailing List Use Advanced Search to search the entire archive. [Opensymphony-oscache] EntryUpdateState locking problem - two non-existent gets in a row » Back to List Archive Chronological | Threaded « Previous Message Next » « Previous Thread Next » From: "Richard Taylor"
Mailing List Use Advanced Search to search the entire archive. OSCache and JSP 2.0 » Back to List Archive Chronological | Threaded « Previous Message Next » « Previous Thread Next » From: Simon
my spring-hibernate application. I would like to cache my POJO so that it will not loaded again http://springframework-user.narkive.com/PwUYjLsZ/oscache-config-problem and again from database.But due to some problem http://grepcode.com/file/repo1.maven.org/maven2/opensymphony/oscache/2.3/com/opensymphony/oscache/base/Config.java in enabling the OScache to cache my POJO. I have placed the oscache.properties file in /WEB-INF/but during start-up server says[java] 2005-11-09 20:15:00,568 ERROR [Config.java:148] : Error reading /oscache.properties in CacheAdministrator.loadProps() java.lang.NullPointerException[java] 2005-11-09 20:15:00,572 ERROR error reading [Config.java:149] : Ensure the /oscache.properties file is readable and in your classpath.[java] 2005-11-09 20:15:03,890 ERROR [Config.java:148] : Error reading /oscache.properties in CacheAdministrator.loadProps() java.lang.NullPointerException[java] 2005-11-09 20:15:03,892 ERROR [Config.java:149] : Ensure the /oscache.properties file is readable and in your classpath.[java] 2005-11-09 20:15:03,908 ERROR [Config.java:148] : error reading oscache Error reading /oscache.properties in CacheAdministrator.loadProps() java.lang.NullPointerException[java] 2005-11-09 20:15:03,909 ERROR [Config.java:149] : Ensure the /oscache.properties file is readable and in your classpath.Any input on this issue will be very helpful.RegardsSelvaThis e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictlyprohibited and may be unlawful.Visit us at http://www.cognizant.com VAN BROECK Jimmy 2005-11-10 11:55:47 UTC PermalinkRaw Message You have to place the file in the classpath.The /WEB-INF/ dir isn't part of the classpat
/ oscache / 2.3 2.4.1 2.4 2.3 / com.opensymphony.oscache.base.Config Find Usages Diff Raw Download HTML Widget oh o [] Start line: End line: Snippet Preview Snippet HTML Code Stack Overflow Questions 1/*2*Copyright(c)2002-2003byOpenSymphony3*Allrightsreserved.4*/5packagecom.opensymphony.oscache.base;67importorg.apache.commons.logging.Log;8importorg.apache.commons.logging.LogFactory;910importjava.io.InputStream;1112importjava.util.Properties; Responsible for holding the Cache configuration properties. If the default constructor is used, this class will load the properties from the cache.configuration. Author(s):Fabian Crabus Version:$Revision: 1.1 $2122publicclassConfigimplementsjava.io.Serializable{23privatestaticfinaltransientLoglog=LogFactory.getLog(Config.class); Name of the properties file. 2728privatefinalstaticStringPROPERTIES_FILENAME="/oscache.properties"; Properties map to hold the cache configuration. 3233privatePropertiesproperties=null; Create an OSCache Config that loads properties from oscache.properties. The file must be present in the root of OSCache's classpath. If the file cannot be loaded, an error will be logged and the configuration will remain empty. 4041publicConfig(){42this(null);43} Create an OSCache configuration with the specified properties. Note that it is the responsibility of the caller to provide valid properties as no error checking is done to ensure that required keys are present. If you're unsure of what keys should be present, have a look at a sample oscache.properties file. Parameters:p The properties to use for this configuration. If null, then the default properties are loaded from the oscache.properties file.5556publicConfig(Propertiesp){57if(log.isDebugEnabled()){58log.debug("Config()called");59}6061if(p==null){62loadProps();63}else{64t