Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Java DBCP "java.lang.NullPointerException"

Posted on 2010-08-20
10
Medium Priority
?
339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
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 2000 total points
ID: 33493265
did you try my suggestion, that should fix your error
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn different types of Android Layout and some basics of an Android App.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

715 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