I guess the Japanese just had bad timing.
Actually, yeah.
They were supposed to have presented the DoW just before the attack began. Decoding apparently took way longer than expected (our decoders by some accounts finished before the Japanese embassy staff did) and so forth.