Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1045

Bundle update in karaf leads to frozen class exception of registered listener class

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • mdsal
    • None
    • Operating System: All
      Platform: All

    • 2434

    Description

      Robert Varga asked me to fill for this. Refer: https://lists.opendaylight.org/pipermail/controller-dev/2014-November/007428.html

      I get a frozen class RuntimeExeception (full exeption attached) if i
      do a bundle update in karaf. The problem only occurs if i had
      registered a notificationListener in my application.

      Steps to Reproduce (code attached):
      1.) In Activator register a Listener

      • Registration this.myLoggingEventListenerRegistration = notificationService.registerNotificationListener(new MyLoggingEventListener());
      • MyLoggingEventListener implements SalFlowListener
        2.) mvn clean install on project while bundle:watch * in karaf shell to update the bundle

      Actual Results:

      The first time i start my bundle in helium karaf-shell everything works
      as aspected. I get the flowAdded notification, even if i stop karaf via
      logout, delete the data folder and restart karaf, my bundle works for
      the first time.

      But if i change something in myapp (add log message) and do a mvn clean
      install while bundle:watch in karaf, i get a java.lang.RuntimeException:
      java.lang.RuntimeException:
      org.opendaylight.openflowplugin.mytest.MyLoggingEventListener$$Broker$ListenerInvoker:
      frozen class (cannot edit).

      I used the ofplugin distribution for this test
      (https://git.opendaylight.org/gerrit/p/openflowplugin.git, did checkout
      stable/helium and a mvn clean install) but i also get the same error
      when i use the karaf distribution from integration repo and deploy my
      bundle via the deploy folder.

      Expected Results:
      For testing it would be nice if i do not have to resart my karaf distribution if i use notifications.

      Build Date & Hardware
      Fresh git clone of repos, Build 2014-11-25 on Ubuntu 14.04.1 LTS

      Attachments

        1. bug.txt
          7 kB
          Mario Willems
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            ma.willems@googlemail.com Mario Willems
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: