Link to home
Start Free TrialLog in
Avatar of aaronyeo22
aaronyeo22Flag for Malaysia

asked on

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Check your log
you never initialise your ConnectionManager
add this before you try and get a connection

ConnectionManager manager = new ConnectionManager(new Configuration());
Avatar of aaronyeo22

ASKER

where to check my log. CHEJ


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

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

thanks
>>i used window 7.

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


thanks
The first thing you should do is to find out about your logging, as i mentioned. What errors are you getting now?
is it the CBS log file
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial