Hi, i have the following part of code that works fine, however i keep getting an exception message printed on the console i don't know why, here is the piece of code.
try{
myObject.getCollection().remove(aCollectionObject); ... (excepiton line)
}catch(Exception e){
myObject = myObjectDAO.getObjectCollectionsEagerly(myObject.getId());
myObject .getCollection().remove(aCollectionObject);
}
note that i don't want to change the way of working of the program, and it works 100% fine except that i get the fuckin exception message even if i have a try catch, and the message points exactly to to the line (exception line).
i tried to change Exception to RuntimeException but no change.
any suggestion. ... note that i can't load the object eagerly from the begining i have a situation where the first part in the try code works fine.
|