File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting NullPointerException while loading the class

 
Sabir Zaman
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a application class and I am getting NullPointerException at java.util.zip.Inflater.reset(Inflater.java:301) while loading the class using Class.forname. For details, please see the below stacktrace.

I am using WAS v51. If anything wrong with my application class then I should have encounter some ClassNotFoundException / InstantiationException. But here the scenario is different. Can anyone please suggest what could be the issue here? I have no idea on this.

Please let me know, if anyone has any queries.

Thanks,
Sabir

 
John de Michele
Rancher
Posts: 600
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sabir:

It would be helpful if you posted the code that was actually calling Inflater's reset() method. Off the top of my head, I'm guessing it's because you're passing it a reference that hasn't been initialized.

John.
 
Sabir Zaman
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John de Michele wrote:Sabir:

It would be helpful if you posted the code that was actually calling Inflater's reset() method. Off the top of my head, I'm guessing it's because you're passing it a reference that hasn't been initialized.

John.


John,

Thanks for your reply.

We are not invoking Inflater's reset() method from our application code directly. The reset method is being invoked inside the Class.forname() method invocation chain. Please see the method call chain.

Thanks,
Sabir
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic