View Single Post
Old 07-26-2004, 09:12 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,544
sde is on a distinguished road
it happens in setting the products, but i have hard coded good data in there and it does the same thing.
Code:
prd.setProductID(1);
prd.setModelID("");        prd.setSerial("");
prd.setDatePurchased((Date)formatDateOut.parse("2004-01-01"));    prd.setStorePurchased("");
prd.setCityPurchased("");
prd.setStatePurchased("");
i'm thinking it is the formatDateOut, but i can't figure out why it throws an exception intermitantly even hard coded. =/ i use that same format Date method in other places in this project and it works just fine. if i comment out all those lines where i am setting the product, it is consistant and does not throw exceptions.

i'll be spending more time tomorrow on this little section of code. i'll post when i figure it out.
__________________
Mike
sde is offline   Reply With Quote