I am researching using a MessageListener in JBoss to communicate via JMS to Oracle Advanced Queuing (AQ). This communication worked okay with Oracle DB version 188.8.131.52.0. However, when I ran a test retrieving 1000 large text message it caused the JBoss server to crash. I was also able to reproduce this problem using a stand-alone Java program. Here is the error message:
Exception in thread "main" java.lang.OutOfMemoryError
<<no stack trace available>>
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d447287
NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions.
Current Java thread:
at oracle.jms.AQjmsConsumer.ocideq(Native Method)
I searched metalink and found this problem was fixed in Oracle DB version Oracle 184.108.40.206.1. Thus, I upgraded from Oracle 220.127.116.11.0 to 18.104.22.168.1. I then re-ran my stand-alone Java program to verify that 1000 large text messages could be retrieved and it worked. However, my MessageListener in JBoss no longer works because it does not receive any asynchronous notifications from Oracle AQ that result in execution of the onMessage function!!
Has anyone experienced similar JMS problems using JBoss 3.0.4 and Oracle AQ/DB version 22.214.171.124.1?
The problem was a memory leak in the OCI8 driver that was fixed by switching to the thin driver.