Interesting, well the label cache is responsible for collecting all the labels during a rendering run. Put in some break points and see if:
a) Is it being called twice?
b) Did it just remember the labels "from last time"? try clearing it after add/removing a layer as a fix.

Jody Garnett

On Wednesday, 10 April 2013 at 2:17 PM, Boided wrote:

Can anyone make out what the issue could be? i am stuck over this :(

View this message in context:
Sent from the geotools-gt2-users mailing list archive at

Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
GeoTools-GT2-Users mailing list