The warships appeared two days before a general election in Japan , whose results could greatly influence relations between Asia 's two great powers , and weeks before China is scheduled to start producing gas in the area , against strong Japanese protests .