GeronimoConnectionEventListener throws AssertionError
-----------------------------------------------------

                 Key: OPENEJB-1234
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1234
             Project: OpenEJB
          Issue Type: Bug
          Components: connectors
    Affects Versions: (trunk/openejb3)
            Reporter: Laird Nelson


I have built a resource adapter for Drools.  I am unit testing it using 
OpenEJB's @LocalClient annotation and its ability in 3.1.3-SNAPSHOT to 
auto-discover resource adapters by looking for META-INF/ra.xml, and thus its 
ability to auto-deploy resource adapters in memory.

The resource adapter appears to deploy correctly, and I can correctly inject 
its connection factory into my @LocalClient using the 
@Resource(name="java:openejb/Resource/classes") annotation.

When I call the connection factory's "get me a connection" method, it 
internally calls through to the Geronimo-by-way-of-OpenEJB-supplied 
ConnectionManager's allocateConnection() method.  This causes various 
connection pool related things to happen.

In the middle of all of this, the GeronimoConnectionEventListener throws an 
AssertionError.  The stack is below:

java.lang.AssertionError
        at 
org.apache.geronimo.connector.outbound.GeronimoConnectionEventListener.addConnectionInfo(GeronimoConnectionEventListener.java:121)
        at 
org.apache.geronimo.connector.outbound.ManagedConnectionInfo.addConnectionHandle(ManagedConnectionInfo.java:117)
        at 
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:50)
        at 
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
        at 
org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
        at 
org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:87)
        at 
com.foobar.drools.jca.StatelessKnowledgeSessionUserConnectionFactory.newStatelessKnowledgeSession(StatelessKnowledgeSessionUserConnectionFactory.java:229)

I am happy to provide more information; let me know what's needed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to