I had unexpected shutdown of my PC due to power failure. After I restarted my PC and opened the Netbeans (version 6.7.1), I got error
java.io.IOException : Caused: java.io.IOException: read past EOF.
Due to it I couldnot be able to auto complete the code.
For the above mentioned problem, I found a simple solution.
JUST REMOVE THE .netbeans folder in ur home directory.