Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-561

Multiple contexts with the same Scope are not handled properly -- causing tck failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.1
    • None
    • None

    Description

      Running container tests (not standalone), I'm seeing the following failure in Geronimo:

      Expected an exception in test method org.jboss.jsr299.tck.tests.context.ContextTest.testGetContextWithTooManyActiveContextsFails()">
      <![CDATA[org.testng.TestException:
      Expected an exception in test method org.jboss.jsr299.tck.tests.context.ContextTest.testGetContextWithTooManyActiveContextsFails()
      at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74)
      at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
      ... Removed 18 stack frames]]>

      Seems BeanManagerImpl is not handling this case properly. IRC'ed with Mark. Looks like singleContextMap needs to be cleaned up after the second context is added.

      Attachments

        Activity

          People

            struberg Mark Struberg
            kevan Kevan Lee Miller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: