Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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