gives that away.) We can't find problems if we don't see the real code!
Nothing you've shown here involves multiple threads, so nothing requires these methods to be synchronized (of course, nothing requires "list" to be a member as opposed to a local, either, so again you're not showing us the whole picture.
Maybe you're confused about where the code is going? There are a lot of variables and methods with similar names here, and maybe you're looking at the wrong ones. I know it's hard for me to find my way around. For example, you show the method
public synchronized ResultSet getSqlResultSet(String _sql) throws NpException
but it isn't called anywhere in your example code; you don't show
which is called from getDefaultSalesmanInfo(); in fact, it's the only thing called after setSqlParam(), so it's the only thing that would have a chance to report the problem you're seeing. Take a good look at getSqlResultList() and see if that doesn't clear things up...
Joined: Apr 13, 2005
author and iconoclast