This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 60785

And read this as well ⇒ TellTheDetails

[Asking smart questions] [Bear's FrontMan] [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.
I agree. Here's the link:
subject: java.lang.NullPointerException
Similar Threads
java.rmi.RemoteException: EJB Exception: ; nested exception is:
T- Shirt Quotes
struts exception
Opening a Serial Port
What would cause this error???