File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes java.lang.NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.lang.NullPointerException" Watch "java.lang.NullPointerException" New topic


Li Jenny
Ranch Hand

Joined: Apr 19, 2010
Posts: 57
when i submit form and call servelt to update statement..

always has this error: java.lang.NullPointerException

Nicola Garofalo
Ranch Hand

Joined: Apr 10, 2010
Posts: 308
That's a too generic question.

Put down some code and show where the exception is thrown.

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi Li, read this

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

And read this as well ⇒ TellTheDetails

[Asking smart questions] [About Bear] [Books by Bear]
David Newton

Joined: Sep 29, 2008
Posts: 12617

Because something is null and you're trying to access it in some way.
subject: java.lang.NullPointerException
It's not a secret anymore!