which is not executing on my mysql server database. giving exception like this : "org.apache.jasper.JasperException root cause : java.lang.NullPointerException"
How can i create table in my MySql database on remote server. Connection is getting establised properly.How can i eliminate this Exception.Code is successfully running on my local machine and Localhost database server.
The message says the root cause is a NullPointerException (NPE). Some people say the NPE is the commonest and most annoying mistake in Java. This is obviously discussed often on JavaRanch. The first thing to do is to get more details (as David has told you). Find where that occurs and put lots of informative code in the catch block, including exc.printStackTrace(); (where "exc" is what you wrote in the () after catch). Follow the stack trace back to where you might have something which is null.
Do a search and you get useful old posts like this, this, this, and there will be lots more. Read those threads; what you are interested in is not what happened, but how we suggested they sort out their NPEs. You need to do the same.
Joined: Jul 13, 2008
thank you very much sir, Just there is minor mistake in my code in my connection object, exception gets resolved successfully. code is working properly.
Joined: Oct 13, 2005
Originally posted by kashinath lagdive: thank you . . . code is working properly.
Well done [ July 21, 2008: Message edited by: Campbell Ritchie ]