Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1234

GeronimoConnectionEventListener throws AssertionError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.7.0
    • None
    • connectors
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ljnelson Laird Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: