ari-ban / glassfish-genericjmsra

0 stars 0 forks source link

NullPointerException fired when using a non XA inbound resource #36

Closed arinban closed 14 years ago

arinban commented 15 years ago

I am using the connector in synchronous mode to feed MDB components. For performances reasons we can't use XA from our provider (oracleAQ), so I set-up the inbound pool as non-XA. I also set up the bean so transactions are managed by the bean. The application starts properly and the inbound connection pool is successfully created but when the first message is read from the queue I get a NullPointerException :

java.lang.NullPointerException at com.sun.genericra.inbound.sync.SyncDeliveryHelper.runOnceStdNoXA(SyncDeliveryHelper.java:435) at com.sun.genericra.inbound.sync.SyncDeliveryHelper.deliver(SyncDeliveryHelper.java:211) at com.sun.genericra.inbound.sync.SyncDeliveryHelper.deliver(SyncDeliveryHelper.java:194) at com.sun.genericra.inbound.sync.SyncWorker.run(SyncWorker.java:125) at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:45) at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)

Looking to the code it is because the code call msgDelivered() on coord object while coord object has never been initialised.

private void runOnceStdNoXA() throws Exception { if (msg != null) { // Optionally wrap for ack() call /*

arinban commented 6 years ago
arinban commented 15 years ago

@glassfishrobot Commented Reported by alainfaure

arinban commented 14 years ago

@glassfishrobot Commented nigeldeakin said: This is a duplicate of issue 41, which has now been fixed.

arinban commented 14 years ago

@glassfishrobot Commented nigeldeakin said: Changing target milestone to "not determined" as issue tracker doesn't allow anything more specific.

arinban commented 14 years ago

@glassfishrobot Commented nigeldeakin said: Fixed in 2.1a

arinban commented 15 years ago

@glassfishrobot Commented Was assigned to binod

arinban commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GENERICJMSRA-36

arinban commented 14 years ago

@glassfishrobot Commented Marked as duplicate on Wednesday, September 15th 2010, 2:12:47 am