• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Getting NullPointerException while loading the class

 
Greenhorn
Posts: 4
  • 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

 
Rancher
Posts: 600
  • 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
  • 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
 
What are you doing in my house? Get 'em tiny ad!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic