Solved

Java DBCP "java.lang.NullPointerException"

Posted on 2010-08-20
10
335 Views
Last Modified: 2013-12-29
When i compile the test.java it return

Failed to finalize JDBC task:
java.lang.NullPointerException
      at Test.main(Test.java:38)

i need experts help. thanks


Test.java
ConnectionManager.java
Configuration.java
NewFile.xml
0
Comment
Question by:aaronyeo22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 2
10 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 33488616
Check your log
0
 
LVL 92

Expert Comment

by:objects
ID: 33489153
you never initialise your ConnectionManager
add this before you try and get a connection

ConnectionManager manager = new ConnectionManager(new Configuration());
0
 

Author Comment

by:aaronyeo22
ID: 33491245
where to check my log. CHEJ


conn = ConnectionManager.ds.getConnection(); Savant
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:CEHJ
ID: 33491456
>>where to check my log. CHEJ

Wherever your logging system is configured to print (impossible to tell from here)
0
 

Author Comment

by:aaronyeo22
ID: 33492219
i used window 7. So what to do now

thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 33492507
>>i used window 7.

That's not relevant
0
 

Author Comment

by:aaronyeo22
ID: 33492579
So, what should i do now. I really need to solve this problem.


thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 33492675
The first thing you should do is to find out about your logging, as i mentioned. What errors are you getting now?
0
 

Author Comment

by:aaronyeo22
ID: 33492919
is it the CBS log file
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 33493265
did you try my suggestion, that should fix your error
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jsp login check 12 67
Eclipse for Java EE development 2 68
DTD and JAVA versions 1 57
listing all the respondents to a twitter feed - Java 5 48
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question