Solved

Java DBCP "java.lang.NullPointerException"

Posted on 2010-08-20
10
330 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

746 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

12 Experts available now in Live!

Get 1:1 Help Now