There were fuel and oil leaks, a cracked cockpit window and a computer glitch that erroneously indicated a brake problem. Then a 787 flown by Japan's All Nippon Airways made an emergency landing after pilots learned of battery problems and detected a burning smell.