This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Derick, Vector also has another remove method. Did you try that?
Object remove(int index) boolean remove(Object o)
You can remove the same way you removed the rec number object from the map. Moreover, you can only add objects to Vector. I think you are trying to add a primitive type to the Vector in your locking method.
Just curious, why are you using 2 collection classes for your locking design?