It would probably be easier to understand the problem if you could reduce your code to
its simplest form that still has the current problem. I don't know which variable(s) that is
the offending one(s), nor the exact type and I cannot try to run it on my own, I could
offer the follow links though. :-)
HowToAskQuestionsOnJavaRanch
smart-questions