Featured Post

The great debacle of healthcare.gov

This is the first time in history when the president of the United States of America, or probably for any head of state around the world,...

Wednesday, September 16, 2009

A Dictionary of unusual Java Exceptions

Exception # 1:
The transaction service encountered an error on an xa_recover operation. The resource was com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl@510051. The error code was XAER_RMERR. The exception stack trace follows: javax.transaction.xa.XAException

The XA transaction manager tries to recover for an early server crash either in application server or database server side or could be both but the user id that has been used to connect to the database doesn't have the permission to access certain tables.

provide access to the BA_PENDING_TRANSACTIONS table for the particular database user in question

Exception # 2:
Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested 32776 bytes for Chunk::new. Out of swap space?

Websphere Application Server 6.1.17 goes OutOfMemory with the above error trace on the console

This is bug in JVM JIT compilation and the fix is not confirmed yet. The work around is to use below configuration:
-XX:+UseDefaultStackSize -Xss256K
http://www.ibm.com/developerworks/websphere/library/techarticles/0407_woolf/0407_woolf.html- Distributed transaction in WAS (Exception # 1)
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4916142 - OutOfMemory Error (Exception # 2)

No comments: