--I have a little problem using DeuceSTM. I spent quite a while finding the problem myself in order not to bother you. Finally, I'd be glad if you could spare a little time to look into the issue.
It's about a getter method returning null although the instance variable it returns is not null. The problem does not occur when my jars are not instrumented. The current workaround I apply is to call the getter in a loop as long as it no longer returns null. Made me think whether it's some cashing problem.
I have uploaded my little project onto my homepage:
www.objectscape.org/candide/message_getid_null.html
There you can find a more detailed description of the problem and the project files (several maven modules) including build file and everything to reproduce the problem. It may look like a lot of code and hence a lot of work, but I have a test case you only need to run to see the problem. This should make things quite effortless for you to get into the issue, I hope ;-).
My DeuceSTM application is a system that provides distributed transactional maps (much like Hazelcast), but uses DeuceSTM to implement a lock-free and deadlock-free thread-safe solution. Thanks a lot if you could have a look into the issue :-). Please, let me know in case you have any problems or need more information.
Kind regards, Oliver Plohmann
Hi Guy,
you mean:
private Map<K, V> internalMap = new FastMap<K, V>();
in class CandideMap? I changed this to:
private FastMap<K, V> internalMap = new FastMap<K, V>();
Unhappily, it still happens... That CandideMap implements Map cannot be the problem, I guess. I will try.
Cheers, Oliver
On 21.09.2012 09:01, gkor...@gmail.com wrote:
Thanks, I managed to run it. From a quick look it seems like you might have uninstrumented code. e.g. java.util.Map as reference. BTW, why don't you let Deuce instrument in runtime?
Sent from Orange email services
Guy Korland wrote:
Hi Guy,
here I am again with another little DeuceSTM issue ;-). This time it involves much less code than the last time (7 simple classes only) and is easy to reproduce. I've upload the code to my homepage: http://www.objectscape.org/candide-standalone.zip. The zip contains a little ant script named build.xml. You only need to run it and then you can see the problem:
[java] Exception in thread "Thread-4" java.lang.NullPointerException
[java] at org.objectscape.candide.standalone.CandideMap.get(CandideMap.java:116)
[java] at org.objectscape.candide.standalone.test.CandideStandaloneTest$3.run(CandideStandaloneTest.java:182)
[java] at org.objectscape.candide.standalone.test.CandideStandaloneTest$3.run(CandideStandaloneTest.java)
--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To post to this group, send email to deuce-stm-...@googlegroups.com.
To unsubscribe from this group, send email to deuce-stm-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/deuce-stm-developers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To post to this group, send email to deuce-stm-...@googlegroups.com.
To unsubscribe from this group, send email to deuce-stm-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/deuce-stm-developers?hl=en.
--
Regards,
Guy Korland