What can be the exact cause of this below err?
java.lang.NullPointerException
at MVC.Example1.doGet(Example1.java:30)
at MVC.Example1.doPost(Example1.java:56)
--------------------
Thanks,
It would be difficult to answer your question without seeing your code. It seems that the reference variable is not initialized properly, but you have tried to access the methods associated with the reference. For example,
the above code snippet will throw NPE since str is not initialized.