Java DBCP "java.lang.NullPointerException"

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
aaronyeo22Asked:
Who is Participating?
 
objectsCommented:
did you try my suggestion, that should fix your error
0
 
CEHJCommented:
Check your log
0
 
objectsCommented:
you never initialise your ConnectionManager
add this before you try and get a connection

ConnectionManager manager = new ConnectionManager(new Configuration());
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
aaronyeo22Author Commented:
where to check my log. CHEJ


conn = ConnectionManager.ds.getConnection(); Savant
0
 
CEHJCommented:
>>where to check my log. CHEJ

Wherever your logging system is configured to print (impossible to tell from here)
0
 
aaronyeo22Author Commented:
i used window 7. So what to do now

thanks
0
 
CEHJCommented:
>>i used window 7.

That's not relevant
0
 
aaronyeo22Author Commented:
So, what should i do now. I really need to solve this problem.


thanks
0
 
CEHJCommented:
The first thing you should do is to find out about your logging, as i mentioned. What errors are you getting now?
0
 
aaronyeo22Author Commented:
is it the CBS log file
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.