Eight airlines now fly the Dreamliner. All Nippon Airways and Japan Airlines in Japan own 24 of the 50 delivered by Boeing since November 2011. The other operators are Air India, Ethiopian Airlines, LAN Airlines of Chile, LOT of Poland, Qatar Airways and United Airlines of the United States. Orders for about 800 additional 787s are in the pipeline.

In the episode in Japan early Wednesday, the 137 passengers and crew members aboard Flight NH692 from Yamaguchi Ube Airport, in western Japan, to Tokyo used emergency slides to leave the aircraft early after battery trouble and an “unusual smell” in the cockpit prompted its pilots to land instead at Takamatsu airport, according to All Nippon. The jet’s main battery in the front of the plane was later found to have become discolored and to be seeping electrolyte fluid, All Nippon said.

Ryosei Nomura, a spokesman for All Nippon, said Wednesday that the airline was temporarily grounding all 17 of its Dreamliners for inspections, leading to the cancellation of 38 domestic and international flights. Japan Airlines also said it would ground the five Dreamliners it was operating; two other aircraft were already undergoing safety checks.

Akihiro Ota, the Japanese transportation minister, said that the emergency landing had raised concerns about the Dreamliner’s safety and that he would dispatch officials to investigate. “I see this as a serious incident which could have led to a serious accident,” Mr. Ota said in Tokyo.

All Nippon and Japan Airlines said the planes would return to the air after safety checks, although it was unclear how soon that might be. All Nippon said it would keep its Dreamliner fleet grounded Thursday, canceling 35 domestic flights and using other types of aircraft for its international routes.