• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Database Connection Pooling java.lang.NullPointerException. Help please

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Pros and Noobs

I am stuck with the Database Connection Pooling problem.
I have created and tested a Database Pooling successfully.
But recently I have faced a problem saying


Could anyone help me to solve the problem please. Before I post this, I have tried to find the answer in the Internet and coderanch but the solution didn't work for mine.
www.coderanch.com/t/.../Connection-Pooling-null-pointer-exception
https://coderanch.com/t/474377/Tomcat/Tomcat-Connection-Pooling

Context.xml
I put the context.xml in the C:\Users\Bio\.netbeans\6.9\apache-tomcat-6.0.26_base\conf folder.


ProfileController.java
In ProfileController.java, I open and close the Database Connection once.
The first connection I use it to retrieve the profile information in line 83.
The second connection I use it to retrieve the user's profile comments in line 99


Thank you guys.

God Bless
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic