[jbosscache-issues] [JBoss JIRA] Created: (JBCACHE-1478) java.lang.UnsupportedOperationException: Not supported in UnversionedNode

Santhosh Kumar (JIRA) jira-events at lists.jboss.org
Thu Feb 12 14:08:47 EST 2009


java.lang.UnsupportedOperationException: Not supported in UnversionedNode
-------------------------------------------------------------------------

                 Key: JBCACHE-1478
                 URL: https://jira.jboss.org/jira/browse/JBCACHE-1478
             Project: JBoss Cache
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 3.0.2.GA
         Environment: Windows XP

java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode)

JBoss Cache version: JBossCache 'Naga' 3.0.2.GA
            Reporter: Santhosh Kumar
            Assignee: Manik Surtani


Getting java.lang.UnsupportedOperationException: Not supported in UnversionedNode when toString is invoked on a CacheServer which is not created.

Here is the stack trace.

Exception in thread "main" java.lang.UnsupportedOperationException: Not supported in UnversionedNode
	at org.jboss.cache.AbstractNode.getChildrenDirect(AbstractNode.java:277)
	at org.jboss.cache.mvcc.NodeReference.getChildrenDirect(NodeReference.java:267)
	at org.jboss.cache.invocation.NodeInvocationDelegate.getChildrenDirect(NodeInvocationDelegate.java:163)
	at org.jboss.cache.DataContainerImpl.numNodes(DataContainerImpl.java:454)
	at org.jboss.cache.DataContainerImpl.getNumberOfNodes(DataContainerImpl.java:431)
	at org.jboss.cache.DataContainerImpl.toString(DataContainerImpl.java:388)
	at org.jboss.cache.DataContainerImpl.toString(DataContainerImpl.java:366)
	at org.jboss.cache.invocation.CacheInvocationDelegate.toString(CacheInvocationDelegate.java:143)
	at java.lang.String.valueOf(String.java:2615)
	at java.lang.StringBuilder.append(StringBuilder.java:116)
	at com.autodesk.it.common.cache.CacheTestCase.main(CacheTestCase.java:12)

Test Case:

import org.jboss.cache.Cache;
import org.jboss.cache.CacheFactory;
import org.jboss.cache.DefaultCacheFactory;

public class CacheTestCase {

    public static void main(String[] args) {
        CacheFactory<String, String> cacheFactory = new DefaultCacheFactory<String, String>();
        Cache<String, String> cacheServer = cacheFactory.createCache(false);

        System.out.println("Cache Server " + cacheServer);
    }
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosscache-issues mailing list