The sudden cancellation of Japanese events in Shanghai have sparked criticism and fanned nationalist sentiment.