The case of a naval officer imprisoned in Japan is turning into a flashpoint in bilateral relations.