Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • 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!
 
Joe Ess
Bartender
Posts: 9300
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic