You should check the condition of the lead that comes from the alternator and goes either to the starter motor connection or directly to the battery.....look for signs of burning or chafed insulation. However, if the wire sparks directly you try to connect the alternator up, it sounds like it has an internal fault.
John
August 2009