[Opensymphony-oscache] Hanging when creating cache in WebSphere 5.1.1

Fredrik Gustavsson <[email protected]> Sat, 06 Aug 2005 08:57:37 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <3790616.1123336759052.JavaMail.os-j2ee@opensymphony01.contegix.com>
I use the code to create a cache in my java application. It is created once per servlet.
[code]
cacheadmin = new GeneralCacheAdministrator();

The code to update the cache that hangs is:

		String strCacheKey = getCacheKey(pstrCompType, pstrGroups, intId);
		int intTimeout = gTools.getConfig().getInt("IO", "cachetimeout", 3600);
		
		try {
			IOTemplate tpl = (IOTemplate) gca.getFromCache(strCacheKey, intTimeout);
			
			log.debug("Object " + tpl.getId() + " fetched from cache.");
			
			return( new IOEnvelope(tpl, fs) );
		} catch( NeedsRefreshException nre ) {
                       // Load object into tpls

				log.debug("Object " + tpls.getId() + " refreshed in cache.");

				gca.putInCache(strCacheKey, (IOTemplate)tpls, aGroups);
			} catch (MsgException msge) {
				fs.set(FunctionStatus.STATUS_MSGINFO, msge.getMessage());
				fs.setMsg(msge);
				gca.cancelUpdate(strCacheKey);
			} catch (Exception e) {

				gca.cancelUpdate(strCacheKey);
				/* IOB-0025-32 */
				throw (new MsgException("IOB", 24, 1, e
						.getMessage()));
			}

[/code]

The log file stops after the cache is created and the CPU load is 100%. The configuration parameters I use are:

cache.capacity=100

The rest is default. I have tried multiple configurations.

Which other libraries can cause this to hang on websphere? It works on Tomcat on another computer except for disk caching that will write the file and then hang.

I use the latest released version and the tried the latest version from CVS.

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=5168&messageID=12272#12272