arindam-bandyopadhyay / issue-test

0 stars 0 forks source link

NullPointerException fired when using a non XA inbound resource #43

Closed arinban closed 6 years ago

arinban commented 6 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

Original Issue:https://github.com/javaee/glassfish-genericjmsra/issues/36 Raised By:@glassfishrobot Created at:Wed Jan 14 11:13:01 IST 2009 Assigned To:@glassfishrobot

arinban commented 6 years ago

@glassfishrobot Commented on Wed Jan 14 11:13:01 IST 2009 Reported by alainfaure

arinban commented 6 years ago

@glassfishrobot Commented on Mon Sep 06 18:59:39 IST 2010 nigeldeakin said: This is a duplicate of issue 41, which has now been fixed.

arinban commented 6 years ago

@glassfishrobot Commented on Mon Sep 06 19:01:24 IST 2010 nigeldeakin said: Changing target milestone to "not determined" as issue tracker doesn't allow anything more specific.

arinban commented 6 years ago

@glassfishrobot Commented on Wed Sep 15 14:42:47 IST 2010 nigeldeakin said: Fixed in 2.1a

arinban commented 6 years ago

@glassfishrobot Commented on Wed Jan 14 11:13:01 IST 2009 Was assigned to binod

arinban commented 6 years ago

@glassfishrobot Commented on Mon Apr 24 13:03:07 IST 2017 This issue was imported from java.net JIRA GENERICJMSRA-36

arinban commented 6 years ago

@glassfishrobot Commented on Wed Sep 15 14:42:47 IST 2010 Marked as duplicate on Wednesday, September 15th 2010, 2:12:47 am

arinban commented 6 years ago

@glassfishrobot Closed the issue on Wed Sep 15 14:42:47 IST 2010