Solved

Java DBCP "java.lang.NullPointerException"

Posted on 2010-08-20
10
332 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JDeveloper 12c for 32 bit 4 84
javap bin 2 34
javap not working 8 45
Java Restore security prompts not working 10 13
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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…

777 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