arindam-bandyopadhyay / issue-test

0 stars 0 forks source link

Impossible to use inbound as non XA #41

Closed arinban closed 6 years ago

arinban commented 6 years ago

I want to use the adaptor in non XA mode to feed my MDB since in 90% of the messages processed it is the only resource. So I set-up "SupportsXA false". I got an exception because my bean is CMT ( Required</trans- attribute>). This should not happen since it should be possible to have ONE non-XA resource in a global transaction (all other ones being XA).

This Exception is due to a check done in AbstractConsumer:

public void validate() throws ResourceException { if (this.transacted && !this.spec.getSupportsXA())

{ String msg = sm.getString("provider_cannot_support_transaction"); throw new ResourceException(msg); }

Anyway, I changed the transaction management to <trans- attribute>NotSupported. Now the bean is initalising properly but when a message is processed I got a null pointer exception:

[#|2009-01-05T15:25:08.306+0000|WARNING|sun-appserver- ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=13;| 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)

This is due to the following code: private void runOnceStdNoXA() throws Exception { if (msg != null) { // Optionally wrap for ack() call /*

It looks like the "coord" object is not initialised, which seems to be due to the fact now the bean is not CMT...

When I use the adapter in the outbound way as non-XA there is no problem to get it part of a global transaction...

Environment

Operating System: All Platform: All

Affected Versions

[current]

arinban commented 6 years ago

Original Issue:https://github.com/javaee/glassfish-genericjmsra/issues/34 Raised By:@glassfishrobot Created at:Mon Jan 05 13:36:56 IST 2009 Assigned To:@glassfishrobot

arinban commented 6 years ago

@glassfishrobot Commented on Mon Jan 05 13:36:56 IST 2009 Reported by alainfaure

arinban commented 6 years ago

@glassfishrobot Commented on Mon Jan 05 14:19:25 IST 2009 alainfaure said: forwarded to you

arinban commented 6 years ago

@glassfishrobot Commented on Mon Sep 06 19:05:43 IST 2010 nigeldeakin said: The bug reported here is a duplicate of issue 41 and has now been fixed.

arinban commented 6 years ago

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

arinban commented 6 years ago

@glassfishrobot Commented on Mon Jan 05 13:36:56 IST 2009 Was assigned to rampsarathy

arinban commented 6 years ago

@glassfishrobot Commented on Mon Apr 24 13:02:59 IST 2017 This issue was imported from java.net JIRA GENERICJMSRA-34

arinban commented 6 years ago

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

arinban commented 6 years ago

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