wood burning stoves*
The moose likes Java in General and the fly likes Getting NullPointerException while loading the class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Getting NullPointerException while loading the class" Watch "Getting NullPointerException while loading the class" New topic
Author

Getting NullPointerException while loading the class

Sabir Zaman
Greenhorn

Joined: Apr 04, 2010
Posts: 4
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

Joined: Mar 09, 2009
Posts: 600
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

Joined: Apr 04, 2010
Posts: 4
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting NullPointerException while loading the class