aaronyeo22
asked on
Java DBCP "java.lang.NullPointerException"
When i compile the test.java it return
Failed to finalize JDBC task:
java.lang.NullPointerExcep tion
at Test.main(Test.java:38)
i need experts help. thanks
Test.java
ConnectionManager.java
Configuration.java
NewFile.xml
Failed to finalize JDBC task:
java.lang.NullPointerExcep
at Test.main(Test.java:38)
i need experts help. thanks
Test.java
ConnectionManager.java
Configuration.java
NewFile.xml
Check your log
you never initialise your ConnectionManager
add this before you try and get a connection
ConnectionManager manager = new ConnectionManager(new Configuration());
add this before you try and get a connection
ConnectionManager manager = new ConnectionManager(new Configuration());
ASKER
where to check my log. CHEJ
conn = ConnectionManager.ds.getCo nnection() ; Savant
conn = ConnectionManager.ds.getCo
>>where to check my log. CHEJ
Wherever your logging system is configured to print (impossible to tell from here)
Wherever your logging system is configured to print (impossible to tell from here)
ASKER
i used window 7. So what to do now
thanks
thanks
>>i used window 7.
That's not relevant
That's not relevant
ASKER
So, what should i do now. I really need to solve this problem.
thanks
thanks
The first thing you should do is to find out about your logging, as i mentioned. What errors are you getting now?
ASKER
is it the CBS log file
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.