• 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

JAI Exception running a JDK1.4 code in JDK1.3

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am facing a situation here with the implementation of JAI which simply refuses to get resolved. I am desperately hoping someone out here can provide some helpful insight into this problem.
My application, which utilizes the JAI API works without any problems in Websphere when the JDK version used is 1.4. However, since the application is to be finally deployed on a cliebt server which is currently using JDK1.3, I had to do the same with my local application. And ever since I've done that I'm repeatedly facing the following exception:


The code which generates the above exception is:


The third line above is the one which throws the exception.

Currently in the JDK1.3 based application, if i make any change to code and then restart the server it seems to work fine, but as soon as it has run once it always generates the error on successive calls unless the server is restarted. Migrating or restarting the client server is out of the question.
Hope someone can rescue me from this predicament.

Thanks!
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a known bug that is fixed for jdk 1.4 and higher. I haven't tried, but the fix in your case appears to be to keep a reference to JAI alive to prevent it from being garbage collected.
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic