Aries
  1. Aries
  2. ARIES-854

NullpointerException in TransactionManager when felix configAdmin is used

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Transaction
    • Labels:
      None
    • Environment:

      Equinox, org.apache.felix.configadmin-1.0.4, org.apache.aries.transactionmanager-1.0.0-SNAPSHOT

      Description

      When the felix configadmin is in the OSGI container the following exception occurs:
      java.lang.NullPointerException
      at org.apache.aries.transaction.TransactionManagerService.getInt(TransactionManagerService.java:181)
      at org.apache.aries.transaction.TransactionManagerService.<init>(TransactionManagerService.java:82)
      at org.apache.aries.transaction.Activator.updated(Activator.java:55)
      at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1160)
      at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)
      at java.lang.Thread.run(Thread.java:722)

      This has to do something with a patch applied to ARIES-809

        Issue Links

          Activity

          Hide
          Balazs Zsoldos added a comment -

          After simply inserting an "if" statement checking if the "properties" member variable is null or not everything works fine again. See the patch applied.

          Show
          Balazs Zsoldos added a comment - After simply inserting an "if" statement checking if the "properties" member variable is null or not everything works fine again. See the patch applied.
          Hide
          Holly Cummins added a comment - - edited

          This issue is also causing three sample test failures in the Jenkins build, since build ARIES-1461:

          org.apache.aries.samples.blog.itests.JdbcBlogSampleWithEbaTest.test [equinox/3.5.0]
          org.apache.aries.samples.blog.itests.QuiesceBlogSampleWithEbaTest.test [equinox/3.5.0]
          org.apache.aries.samples.blog.itests.JpaBlogSampleWithEbaTest.test [equinox/3.5.0]

          Show
          Holly Cummins added a comment - - edited This issue is also causing three sample test failures in the Jenkins build, since build ARIES-1461: org.apache.aries.samples.blog.itests.JdbcBlogSampleWithEbaTest.test [equinox/3.5.0] org.apache.aries.samples.blog.itests.QuiesceBlogSampleWithEbaTest.test [equinox/3.5.0] org.apache.aries.samples.blog.itests.JpaBlogSampleWithEbaTest.test [equinox/3.5.0]
          Hide
          Holly Cummins added a comment -

          I've delivered a fix for this (under ARIES-845, inadvertently, although I've since edited the comment) to not set the properties to null if config admin passes in null properties.

          Show
          Holly Cummins added a comment - I've delivered a fix for this (under ARIES-845 , inadvertently, although I've since edited the comment) to not set the properties to null if config admin passes in null properties.
          Hide
          Holly Cummins added a comment -

          Two of the blog sample tests are still failing, but those failures are related to changes made under ARIES-832.

          Show
          Holly Cummins added a comment - Two of the blog sample tests are still failing, but those failures are related to changes made under ARIES-832 .

            People

            • Assignee:
              Holly Cummins
              Reporter:
              Balazs Zsoldos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development