Spent three hours to solve the problem.
"How to make the log file to show exact line number the exception thrown instead of Unknown source?"
The exact line number the exception thrown (It is what I want)
Caused by: java.lang.NullPointerException
at com.vaadin.ui.collection.Testing.isValidFormSubmit(Testing.java:315)....
It informs you there is an exception, please guess where the exception is. (Kill me)
Caused by: java.lang.NullPointerException
at com.vaadin.ui.collection.Testing.isValidFormSubmit(Unknown Source)....
It is only add debug="true" in your javac tag of your build.xml file if you are using ant script to compile your project.