• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting NullPointerException while loading the class

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic