Friday, August 14, 2009

Out of memory error in BPEL/ESB

Out of memory error is thrown from method.


oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "java.lang.OutOfMemoryError

at Method)


at java.util.jar.JarFile.<init>(

at java.util.jar.JarFile.<init>(

at oracle.classloader.SharedJar.doOpen(


at oracle.classloader.SharedCodeSource.ensureOpen(

at oracle.classloader.SharedCodeSource.getResourceBytes(

This is inherent bug with JDk1.4 , still open in jdk1.5 and is fixed only in Jdk 1.6. So the only option is to get rid of the old JDK and replace it with JDK1.6. JDK1.6 looks like the best bet for all the issues related to java JDK. Even though is not certified with java 1.6 its always better to use java 1.6 since this bug is only fixed in java 1.6.