Bugs item #574199, was opened at 2002-06-26 18:23
Message generated for change (Settings changed) made by ejort
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=574199&group_id=22866

Category: JBossTX
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Paul Adams (padams)
Assigned to: David Jencks (d_jencks)
Summary: JCA - rollback w/out begin

Initial Comment:
OS: Win2K

JDK: 1.4.0

Using released JBoss 3.0.0 integrated with tomcat



Real category is probably related to JCA but none

selectable.



My connector is deployed with LocalTransaction support

only. I'm running into a situation where an interaction

execution results in an exception being thrown (EIS

specific, what I was testing) and the application

server attempts to roll back a transaction that it

never started (which of course fails). This particilar

connection/interaction is being initiated from a

session EJB method that is deployed stating no

transaction support

(<trans-attribute>NotSupported</trans-attribute> in

ejb-jar.xml)..



The error occurs inside of a staful session bean

ejbCreate method.



The initial connection error that occurs:

12:32:23,952 INFO  [MyInfoEngine]

IeManagedConnection.addConnectionEventListener ( 'org.jb

[EMAIL PROTECTED]

' )

12:32:23,992 INFO  [MyInfoEngine]

IeManagedConnection.getConnection ( 'null', 'a:*****' )

12:32:23,992 INFO  [MyInfoEngine] IeConnection (

'com.infoengine.connector.IeManagedConnec

[EMAIL PROTECTED]' )

12:32:24,022 INFO  [MyInfoEngine] IeConnection: 2694 ms

to allocate a connection

12:32:24,192 INFO  [MyInfoEngine]

IeConnection.createInteraction ()

12:32:24,202 INFO  [MyInfoEngine] IeInteraction.execute

( 'wtee.ejb.session!validateUser',

 '{}' )

12:32:25,214 INFO  [MyInfoEngine]

IeManagedConnection.getLocalTransaction ()

12:32:25,324 INFO  [MyInfoEngine] IeInteraction: 1112

ms to create SOAP request

12:32:26,385 ERROR [STDERR] java.net.ConnectException:

Connection refused: connect



This exception is reported to the

ConnectionEventListener as a connection error

(ConnectionEvent.CONNECTION_ERROR_OCCURRED).



Following the output of a rather lengthy stack trace

the app server attempts to rollback a transaction that

it never began which results in an exception:



12:32:28,769 INFO  [MyInfoEngine]

IeManagedConnection.getLocalTransaction ()

12:32:28,769 INFO  [MyInfoEngine]

IeSPILocalTransaction.rollback()

12:32:28,779 INFO  [MyInfoEngine]

IeManagedConnection.cleanup ()

12:32:28,789 INFO  [MyInfoEngine] IeConnection (

'com.infoengine.connector.IeManagedConnec

[EMAIL PROTECTED]' )

12:32:28,809 INFO  [MyInfoEngine]

IeConnection.createInteraction ()

12:32:28,819 INFO  [MyInfoEngine]

IeManagedConnection.destroy ()

12:32:28,829 ERROR [STDERR]

javax.resource.ResourceException: Connection refused:

connect

The .rollback() method actually throws an exception due

to being in an invalid state (rollback without begin)

which is never output.  Almost as if the rollback was

called from within a try/catch block with an empty catch.

The javax.resource.ResourceException stacktrace is a

reprint of the previous exception output above.



despite the fact that the roll back failed a

TransactionRolledbackException is thrown when the ejb

closes the connection in a finally block.



12:32:32,154 INFO  [MyInfoEngine] IeConnection.close ()

12:32:32,174 ERROR [LogInterceptor]

TransactionRolledbackException, causedBy:

java.lang.IllegalArgumentException:

disconnect(ManagedConnection mc: com.infoengine.connec

[EMAIL PROTECTED], Object c:

[EMAIL PROTECTED]) ca

lled with unknown managed connection

        at

org.jboss.resource.connectionmanager.BaseConnectionManager2.unregisterAssociati

on(BaseConnectionManager2.java:661)

        at

org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectionEv

entListener.connectionClosed(LocalTxConnectionManager.java:381)

        at

com.infoengine.connector.IeManagedConnection.fireConnectionClosed(IeManagedConn

ection.java:281)

        at

com.infoengine.connector.IeConnection.close(IeConnection.java:79)

        at wtee.ejb.ConnectorUtils.closeCx(Unknown Source)

        at wtee.ejb.WTSessionEJB.ejbCreate(Unknown Source)

        at

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja

va:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at

org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.createSession(State

fulSessionFilePersistenceManager.java:163)

        at

org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java

:441)

        at

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja

va:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at

org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(Stateful

SessionContainer.java:756)

        at

org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:1

04)

        at

org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(Cac

hedConnectionInterceptor.java:215)

        at

org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSes

sionInstanceInterceptor.java:128)

        at

org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.ja

va:98)

        at

org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.jav

a:142)

        at

org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=574199&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to