read from storage 0 bytes but requested (more) – IntelliJ

I use maven to build most of my applications.  I usually setup a run configuration to deploy them as exploded war files.

Today when I was trying to run my application, I kept running into this error:

“Error: Read from storage 0 bytes, but requested 318 bytes”

Here are the steps I followed to resolve my issue:

  1. Click File -> Invalidate Caches
  2. Click Build -> Rebuild Project

Everything is back to normal!