Hi,
I am using CategoryItemLabelGenerator for generating custom labels for bar charts. I am getting labels.
But it is giving exception when more than one user access at a time.
It is giving java.lang.NullPointerException (or) java.lang.ArrayIndexOutOfBoundsException
at generateItemLabel() method.
Can u pls tell me whats wrong.
Thanks and Regards,
sakaray_c
Concurrency problem with CategoryItemLabelGenerator
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Can you supply the complete exception text and some info about how you construct your charts? There may be a problem in that the NumberFormat and DateFormat objects used by the label generator are not thread-safe - and JFreeChart isn't doing anything to externally synchronise them.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

