This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while trying to get the image in java

 
Guna sekar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

While i tried to get the image from java code i m getting the following error;

java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:405)
at com.penske.dao.context.DataSourceContext.getDataSource(Unknown Source)
at com.penske.dao.context.DataSourceContext.getConnection(Unknown Source)
at com.penske.dao.context.DataSourceContext.getNamedResource(Unknown Source)
at com.penske.dao.factory.JDBCDefaultDao.run(Unknown Source)

Please provide the solution for this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic