try writing out all the starting materials/reagents/catalysts/solvents/etc in your reaction. then make a 2-column list: one column of all potential nucleophiles, and one column of all potential electrophiles. then take each nucleophile and check it against each electrophile to see if a reaction is likely to occur. if it is (and the product isn't aspirin) then it's a side reaction leading to a byproduct.