[jbosscache-issues] [JBoss JIRA] Commented: (JBCACHE-1441) DataContainerImpl.toString() can throw UnsupportedOperationException
Manik Surtani (JIRA)
jira-events at lists.jboss.org
Thu Nov 6 13:05:12 EST 2008
[ https://jira.jboss.org/jira/browse/JBCACHE-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12437337#action_12437337 ]
Manik Surtani commented on JBCACHE-1441:
----------------------------------------
I don't understand how you could have recreated this with a standard setup. DataContainerImpl.numNodes() is *only* called if you ate *not* using MVCC, but looking at your stack you are using MVCC ("at org.jboss.cache.mvcc.NodeReference.getChildrenDirect(NodeReference.java:267) ").
This cannot happen in normal usage, so what was your EasyMock setup doing? Perhaps you didn't set DataContainerImpl.usingMvcc properly?
> DataContainerImpl.toString() can throw UnsupportedOperationException
> --------------------------------------------------------------------
>
> Key: JBCACHE-1441
> URL: https://jira.jboss.org/jira/browse/JBCACHE-1441
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.0.0.CR3
> Reporter: Elias Ross
> Assignee: Manik Surtani
> Fix For: 3.0.0.GA
>
>
> When doing some testing with EasyMock, saw this:
> Caused by: 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:450)
> at org.jboss.cache.DataContainerImpl.getNumberOfNodes(DataContainerImpl.java:427)
> at org.jboss.cache.DataContainerImpl.toString(DataContainerImpl.java:386)
> at org.jboss.cache.DataContainerImpl.toString(DataContainerImpl.java:364)
> at org.jboss.cache.invocation.CacheInvocationDelegate.toString(CacheInvocationDelegate.java:154)
--
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