| Author |
connectio null problem
|
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
|
|
this is my jsp class
this is my servlet part of code
this is my connection class
But is prints Coeection is null
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
Your code seems to be written in a way to be deliberately unhelpful! Exception stack traces contain a wealth of information about what is going wrong. Print the stack trace - you should get an idea what could be happening.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
|
|
this is the error
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
Well, though that stack trace certainly looks bad it is not comming from your connection code. Did you print the stack trace from there?
|
 |
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
|
|
|
|
 |
Swastik Dey
Ranch Hand
Joined: Jan 08, 2009
Posts: 1195
|
|
|
You probably need a stackTrace in getConnection method in MyConnection class to know the reason.
|
Swastik
|
 |
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
|
|
Thanks.
I didn't add the mysql connector jar.
|
 |
 |
|
|
subject: connectio null problem
|
|
|