Solved

Java DBCP "java.lang.NullPointerException"

Posted on 2010-08-20
10
331 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

895 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now