[JBoss JIRA] Created: (JBCACHE-900) org.jboss.cache.NodeNotExistsException from org.jboss.cache.TreeCache.put
by Nimrod Rivier (JIRA)
org.jboss.cache.NodeNotExistsException from org.jboss.cache.TreeCache.put
-------------------------------------------------------------------------
Key: JBCACHE-900
URL: http://jira.jboss.com/jira/browse/JBCACHE-900
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 1.3.0.SP1
Environment: Windows, Jboss 3.2.8
Reporter: Nimrod Rivier
Assigned To: Manik Surtani
While calling TreeCache.put, got the following stack trace:
org.jboss.cache.NodeNotExistsException: node /6a3c55aa96d26a9788a17ec2e33c87ae6a64e not found (gtx=null, caller=Thread[CoreFirst Analyzer. Chunk UUID is:a24d1519-7362-4a8f-a8cc-31059dcc4c57,5,ASF Session Pool Threads])
at org.jboss.cache.TreeCache._put(TreeCache.java:3947)
at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:286)
at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:50)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:146)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:187)
at org.jboss.cache.interceptors.ActivationInterceptor.invoke(ActivationInterceptor.java:52)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at org.jboss.cache.interceptors.PassivationInterceptor.invoke(PassivationInterceptor.java:68)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:321)
at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:136)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:153)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:4804)
at org.jboss.cache.TreeCache.put(TreeCache.java:3242)
at org.jboss.cache.TreeCache.put(TreeCache.java:3180)
at com.optier.corefirst.server.services.contextBuilder.contextRepository.CacheDecoratorTreeCache.putElement(CacheDecoratorTreeCache.java:72)
at com.optier.corefirst.server.services.contextBuilder.contextRepository.OutputAssociationKeysCacheAgent.put(OutputAssociationKeysCacheAgent.java:26)
at com.optier.corefirst.server.services.contextBuilder.eventHandlers.CommandInsertUnassociatedUowIntoRequest.linkInvocations(CommandInsertUnassociatedUowIntoRequest.java:98)
at com.optier.corefirst.server.services.contextBuilder.eventHandlers.CommandInsertUnassociatedUowIntoRequest.run(CommandInsertUnassociatedUowIntoRequest.java:49)
at com.optier.corefirst.server.services.contextBuilder.eventHandlers.EventHandlerNewUnassociatedUow.handleEvent(EventHandlerNewUnassociatedUow.java:21)
at com.optier.corefirst.server.services.contextBuilder.ContextBuilderEventRaiser.InvokeSynchsonousEventHandler(ContextBuilderEventRaiser.java:75)
at com.optier.corefirst.server.services.contextBuilder.ContextBuilderEventRaiser.raiseEvent(ContextBuilderEventRaiser.java:41)
at com.optier.corefirst.server.services.contextBuilder.ContextBuilder.RaiseEvent(ContextBuilder.java:43)
at com.optier.corefirst.server.services.contextBuilder.ContextBuilder.processUowWithoutRequestUuid(ContextBuilder.java:173)
at com.optier.corefirst.server.services.contextBuilder.ContextBuilder.processUow(ContextBuilder.java:121)
at com.optier.corefirst.server.services.statistics.impl.UOWsAnalyzer.analyze(UOWsAnalyzer.java:120)
at com.optier.corefirst.server.services.statistics.StatisticsAnalyzerBean.analyze(StatisticsAnalyzerBean.java:46)
at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
This problem is rare, but it occurs from time to time
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months
[JBoss JIRA] Created: (JBCACHE-911) Remove or refactor NodeFactory
by Elias Ross (JIRA)
Remove or refactor NodeFactory
------------------------------
Key: JBCACHE-911
URL: http://jira.jboss.com/jira/browse/JBCACHE-911
Project: JBoss Cache
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Elias Ross
Assigned To: Manik Surtani
I don't see any external use for this class in 2.0 and think it's quite ugly. There is no way to configure the behavior. Users shouldn't use it anyway.
Places it is called:
* NodeImpl.getOrCreateChild() -> I'm thinking that adding a "template method" to say AbstractNode
protected abstract Node createNode(Fqn child_fqn, Node parent, TreeCache x);
would be good. OptimisticNode or WorkspaceNode can obviously override this.
* TreeCache {}: Since it's configuration driven, map an "enum" to a series of "new NodeXYZ()" statements.
* OptimisticXYZInterceptor : Create factory methods in TransactionWorkspace
* DefaultStateTransferIntegrator : ??
Node target = factory.createDataNode(nodeType, name, fqn, parent, nd.getAttributes(), false, null, cache.getCacheSPI());
((DataNode) parent).addChild(name, target);
Should simply be able to call parent.addChild(name) here. There is the (small) optimization of reusing the attribute Map directly, but this is probably a premature optimization. Or, maybe just parent.put(name, nd.getAttributes()) ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months