One idea that occurs to me about this is, I am using the *same* instance of
InitialContext for the entire loading process of this compound EJB. I.e. at
the start of my compound EJB's ejbLoad, I get an InitialContext, and I use
that for all operations within that ejbLoad (i.e. I use it for JNDI lookups
necessary to load the EJBs aggregated by the compound EJB).
Could it be that using a single InitialContext for so many operations is
somehow overloading the ContextSwitch? (which appears to associate
transactions with entity contexts).
Joe
-----Original Message-----
From: Joe Gittings [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 9:59 AM
To: [EMAIL PROTECTED]
Subject: New "XAStart without XAEnd" problems in 2.2.4
Hi,
First, many thanks to the Jonas team for sorting out the memory leakage
problem so quickly.
I'm upgrading to 2.2.4 right now. Everything seems to work fine, except
that when I load one of my beans (a large, compound bean), I'm getting a
whole load of "Cannot enlist
XAResource:javax.transaction.RollbackException" errors. I wasn't getting
these with 2.1.1. And I haven't changed any code or the deployment
descriptors since I used 2.1.1 (although I have of course redeployed under
2.2.4). The compound bean does actually load ok, however it's not really
acceptable to have all these stack traces being dumped to stderr each time.
There are lots of these errors when I load up one compound object. The
errors relate to calls made during the loading process on EJBs that the
compound bean loads up. Specifically, I'm loading a TaxonFacade EJB, during
which a number of BibliographyEntry EJBs are loaded, and setReadOnly is
called on each BibliographyEntryEJB. The first error looks like this:
XAResource ---> rollback: XA START without XA END
Cannot enlist XAResource:javax.transaction.RollbackException
Connection will not be enlisted in a transaction
getICtx IT: registerSynchronization:
javax.transaction.RollbackException
at
org.objectweb.jonas_tm.SubCoordinator.addSynchronization(SubCoordinat
or.java:352)
at
org.objectweb.jonas_tm.TransactionImpl.registerSynchronization(Transa
ctionImpl.java:340)
at
org.objectweb.jonas_ejb.container.ContextSwitch.getICtx(ContextSwitch
.java:171)
at
org.objectweb.jonas_ejb.container.JBeanEntity.getContext(JBeanEntity.
java:149)
at
org.objectweb.jonas_ejb.container.JBeanEntity.preinvoke(JBeanEntity.j
ava:276)
at
uk.org.rbgkew.sepasal.ejb.data.dictionaryrecord.JOnASBibliographyEntr
yRemote.setReadOnly(generated\uk\org\rbgkew\sepasal\ejb\data\dictionaryr
ecord\JO
nASBibliographyEntryRemote.java:544)
at uk.org.rbgkew.sepasal.ejb.data.taxon.TaxonFacadeBean.loadAndS
ortRefer
encedBibliographyEntries(TaxonFacadeBean.java:340)
at
uk.org.rbgkew.sepasal.ejb.data.taxon.TaxonFacadeBean.ejbLoad_Inner(Ta
xonFacadeBean.java:209)
at
uk.org.rbgkew.sepasal.ejb.data.taxon.TaxonFacadeBean.ejbLoad(TaxonFac
adeBean.java:142)
at
org.objectweb.jonas_ejb.container.EntityContextImpl.activate(EntityCo
ntextImpl.java:352)
at
org.objectweb.jonas_ejb.container.ContextSwitch.getICtx(ContextSwitch
.java:177)
at
org.objectweb.jonas_ejb.container.JBeanEntity.getContext(JBeanEntity.
java:149)
at
org.objectweb.jonas_ejb.container.JBeanEntity.preinvoke(JBeanEntity.j
ava:276)
at
uk.org.rbgkew.sepasal.ejb.data.taxon.JOnASTaxonFacadeRemote.getImplem
entation(generated\uk\org\rbgkew\sepasal\ejb\data\taxon\JOnASTaxonFacade
Remote.j
ava:43)
at
uk.org.rbgkew.sepasal.ejb.data.taxon.JOnASTaxonFacadeRemote_Skel.send
(generated\uk\org\rbgkew\sepasal\ejb\data\taxon\JOnASTaxonFacadeRemote_S
kel.java
:64)
at
org.objectweb.david.libs.protocols.giop.GIOPProtocol$ServerSession_Lo
w.send(GIOPProtocol.java:620)
Any ideas what the problem is?
Joe
=====================================================================
Joe Gittings, Royal Botanic Gardens, Kew
Hanover House, Kew, Richmond, Surrey TW9 3AB
[EMAIL PROTECTED]
+44 20 8332 5712
fax: +44 20 8332 5736
The SEPASAL database is now live at http://www.rbgkew.org.uk/ceb/sepasal/
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".