well if the two blacks are on the switch that means the white is passing though the switch box w/ out be connected to anything correct? So the light should be at the end of the circuit. Make sure the white is connected to the silver screw and the black to the brass colored screw. If all connections are tight put a new switch in.