<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:54:32 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[CONTROLLER-1045] Bundle update in karaf leads to frozen class exception of registered listener class</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1045</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Robert Varga asked me to fill for this. Refer: &lt;a href=&quot;https://lists.opendaylight.org/pipermail/controller-dev/2014-November/007428.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/controller-dev/2014-November/007428.html&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Steps to Reproduce (code attached):&lt;br/&gt;
1.) In Activator register a Listener&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Registration this.myLoggingEventListenerRegistration = notificationService.registerNotificationListener(new MyLoggingEventListener());&lt;/li&gt;
	&lt;li&gt;MyLoggingEventListener implements SalFlowListener&lt;br/&gt;
2.) mvn clean install on project while bundle:watch * in karaf shell to update the bundle&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Actual Results:&lt;/p&gt;

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

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

&lt;p&gt;I used the ofplugin distribution for this test&lt;br/&gt;
(&lt;a href=&quot;https://git.opendaylight.org/gerrit/p/openflowplugin.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/p/openflowplugin.git&lt;/a&gt;, did checkout&lt;br/&gt;
stable/helium and a mvn clean install) but i also get the same error&lt;br/&gt;
when i use the karaf distribution from integration repo and deploy my&lt;br/&gt;
bundle via the deploy folder. &lt;/p&gt;

&lt;p&gt;Expected Results:&lt;br/&gt;
For testing it would be nice if i do not have to resart my karaf distribution if i use notifications.&lt;/p&gt;

&lt;p&gt;Build Date &amp;amp; Hardware&lt;br/&gt;
Fresh git clone of repos, Build 2014-11-25 on Ubuntu 14.04.1 LTS&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25599">CONTROLLER-1045</key>
            <summary>Bundle update in karaf leads to frozen class exception of registered listener class</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ma.willems@googlemail.com">Mario Willems</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Nov 2014 11:35:35 +0000</created>
                <updated>Tue, 25 Jul 2023 08:24:20 +0000</updated>
                            <resolved>Tue, 12 May 2015 14:10:41 +0000</resolved>
                                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="49875" author="ma.willems@googlemail.com" created="Tue, 25 Nov 2014 11:35:35 +0000"  >&lt;p&gt;Attachment bug.txt has been added with description: Exception, activator and listener class&lt;/p&gt;</comment>
                            <comment id="49873" author="rovarga" created="Tue, 25 Nov 2014 11:50:19 +0000"  >&lt;p&gt;Preliminary target, will be updated once we find the root cause.&lt;/p&gt;</comment>
                            <comment id="49874" author="tony.tkacik@gmail.com" created="Tue, 12 May 2015 14:10:41 +0000"  >&lt;p&gt;Offending code was removed and replaced with java.lang.invoke implementation instead, which does not relly on class names but class identities.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/18820/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/18820/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13469" name="bug.txt" size="7606" author="ma.willems@googlemail.com" created="Tue, 25 Nov 2014 11:35:35 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2434</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=2434]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10380"><![CDATA[Lithium-M5]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02o5b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>