<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:27:24 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>[ODLPARENT-24] Exception thrown when running karaf for the very first time</title>
                <link>https://jira.opendaylight.org/browse/ODLPARENT-24</link>
                <project id="10149" key="ODLPARENT">odlparent</project>
                    <description>&lt;p&gt;Here is the exception that happens,&lt;/p&gt;

&lt;p&gt;MORAJA-M-301N:assembly moizr$ ./bin/karaf &lt;br/&gt;
Error installing bundle listed in startup.properties with url: wrap:mvn:javax.servlet.jsp/jsp-api/2.1 and startlevel: 30&lt;br/&gt;
Exception in thread &quot;main&quot; java.lang.NullPointerException&lt;br/&gt;
	at org.apache.karaf.main.Main.destroy(Main.java:525)&lt;br/&gt;
	at org.apache.karaf.main.Main.main(Main.java:173)&lt;/p&gt;



&lt;p&gt;To reproduce the problem,&lt;/p&gt;

&lt;p&gt;1. In the controller repo switch to the stable/lithium branch and build the controller using mvn clean install&lt;br/&gt;
2. cd ./karaf/opendaylight-karaf/target/assembly&lt;br/&gt;
3. ./bin/karaf&lt;/p&gt;

&lt;p&gt;The next time you try to launch karaf it will work. To reproduce again at this point do the following,&lt;/p&gt;

&lt;p&gt;1. stop/kill karaf&lt;br/&gt;
2. delete the data directory&lt;br/&gt;
3. ./bin/karaf&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: Macintosh&lt;/p&gt;</environment>
        <key id="22147">ODLPARENT-24</key>
            <summary>Exception thrown when running karaf for the very first time</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="vorburger">Michael Vorburger</assignee>
                                    <reporter username="moraja@cisco.com">Moiz Raja</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Sep 2015 00:44:40 +0000</created>
                <updated>Wed, 24 Jan 2018 14:27:02 +0000</updated>
                            <resolved>Wed, 7 Jun 2017 08:05:17 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="41770" author="moraja@cisco.com" created="Fri, 11 Sep 2015 00:46:59 +0000"  >&lt;p&gt;Slightly more detailed exception,&lt;/p&gt;

&lt;p&gt;Sep 10, 2015 5:40:19 PM org.apache.karaf.main.Main launch&lt;br/&gt;
INFO: Installing and starting initial bundles&lt;br/&gt;
Sep 10, 2015 5:40:19 PM org.apache.karaf.main.Main main&lt;br/&gt;
SEVERE: Could not launch framework&lt;br/&gt;
java.lang.RuntimeException: Error installing bundle listed in startup.properties with url: wrap:mvn:javax.servlet.jsp/jsp-api/2.1 and startlevel: 30&lt;br/&gt;
	at org.apache.karaf.main.Main.installAndStartBundles(Main.java:392)&lt;br/&gt;
	at org.apache.karaf.main.Main.launch(Main.java:245)&lt;br/&gt;
	at org.apache.karaf.main.Main.main(Main.java:167)&lt;br/&gt;
Caused by: java.lang.RuntimeException: Could not resolve wrap:mvn:javax.servlet.jsp/jsp-api/2.1&lt;br/&gt;
	at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)&lt;br/&gt;
	at org.apache.karaf.main.Main.installAndStartBundles(Main.java:384)&lt;br/&gt;
	... 2 more&lt;/p&gt;</comment>
                            <comment id="41771" author="moraja@cisco.com" created="Tue, 29 Sep 2015 16:11:07 +0000"  >&lt;p&gt;This seems to only happen on the controller distribution&lt;/p&gt;</comment>
                            <comment id="41772" author="rgoulding" created="Wed, 13 Apr 2016 12:48:43 +0000"  >&lt;p&gt;Hi Moiz,&lt;/p&gt;

&lt;p&gt;I still see reports of this occurring in master;  do you know if a root cause was ever found for this?  Any additional information you can provide is greatly helpful!&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
Ryan&lt;/p&gt;</comment>
                            <comment id="41773" author="vorburger" created="Tue, 6 Jun 2017 17:25:23 +0000"  >&lt;p&gt;I&apos;m just hitting something similar, with the infrautils SampleIntegrationTest which worked last week suddenly failing (both locally as well as on Jenkins) with this in infrautils/itestutils/it/target/surefire-reports/org.opendaylight.infrautils.itestutils.it.SampleIntegrationTest-output.txt:&lt;/p&gt;

&lt;p&gt;Error installing bundle listed in startup.properties with url: mvn:org.osgi/org.osgi.service.event/1.3.1 and startlevel: 7&lt;br/&gt;
Exception in thread &quot;main&quot; java.lang.NullPointerException&lt;br/&gt;
	at org.apache.karaf.main.Main.destroy(Main.java:634)&lt;br/&gt;
	at org.apache.karaf.main.Main.main(Main.java:183)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;main&amp;#93;&lt;/span&gt; INFO org.ops4j.pax.exam.spi.reactors.ReactorManager - suite finished&lt;/p&gt;

&lt;p&gt;and indeed under infrautils/itestutils/it/target/paxexam/.../system/org there is no osgi/ sub-directory - should there be?&lt;/p&gt;

&lt;p&gt;Did we just break this by Or did we just break this when merging &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/58053/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/58053/&lt;/a&gt; ?&lt;/p&gt;</comment>
                            <comment id="41774" author="vorburger" created="Tue, 6 Jun 2017 17:27:33 +0000"  >&lt;p&gt;see also &lt;a href=&quot;https://issues.apache.org/jira/browse/KARAF-3374&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://issues.apache.org/jira/browse/KARAF-3374&lt;/a&gt; for the Karaf issue which may in the future provide a better error message than the slightly confusing NullPointerException (but which won&apos;t fix the root cause which seems to be in our assembly).&lt;/p&gt;</comment>
                            <comment id="41775" author="vorburger" created="Tue, 6 Jun 2017 18:08:56 +0000"  >&lt;p&gt;&amp;gt; under system/org there is no osgi/ sub-directory - should there be?&lt;/p&gt;

&lt;p&gt;The real question is what needs org.osgi.service.event, and why that does not transitively pull it along... We can see controller.blueprint/pom.xml having a &amp;lt;dependency&amp;gt; to it, so is it missing in a controller feature?&lt;/p&gt;

&lt;p&gt;But as just raised in &lt;a href=&quot;https://lists.opendaylight.org/pipermail/odlparent-dev/2017-June/001051.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/odlparent-dev/2017-June/001051.html&lt;/a&gt;, this currently happens even in odlparent and infrautils without controller in the picture:&lt;/p&gt;

&lt;p&gt;odlparent/karaf/opendaylight-karaf4-empty/target/assembly/bin/karaf&lt;br/&gt;
Apache Karaf starting up. Press Enter to open the shell now...&lt;br/&gt;
Error installing bundle listed in startup.properties with url:&lt;br/&gt;
mvn:org.osgi/org.osgi.service.event/1.3.1 and startlevel: 7&lt;br/&gt;
Exception in thread &quot;main&quot; java.lang.NullPointerException&lt;br/&gt;
    at org.apache.karaf.main.Main.destroy(Main.java:634)&lt;br/&gt;
    at org.apache.karaf.main.Main.main(Main.java:183)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/58362/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/58362/&lt;/a&gt; fixes this (above), but I&apos;m not 100% it&apos;s the right (or the best) fix .. I&apos;m not clear what actually needs org.osgi.service.event in an empty basic Karaf, and why the Karaf core features that we depend on do not transitively pull this along - something seems off, that we have to do the kind of small work-around I&apos;m proposing in c/58362.&lt;/p&gt;</comment>
                            <comment id="41776" author="rovarga" created="Tue, 6 Jun 2017 18:12:32 +0000"  >&lt;p&gt;The fix should work. Controller&apos;s blueprint extension cannot just pull it in, as pax-logging has an optional dependency on it &amp;#8211; leading to a complete container refresh when it pulled in.&lt;/p&gt;

&lt;p&gt;On the console this manifests by karaf printing the banner the second time.&lt;/p&gt;</comment>
                            <comment id="41777" author="vorburger" created="Tue, 6 Jun 2017 18:41:18 +0000"  >&lt;p&gt;&amp;gt; The fix should work.&lt;/p&gt;

&lt;p&gt;Confirming; FYI, I&apos;ve now locally verified that merging c/58362 would fix both odlparent/karaf/opendaylight-karaf4-empty/target/assembly/bin/karaf as well as e.g. infrautils/itestutils/it (SampleIntegrationTest).&lt;/p&gt;

&lt;p&gt;&amp;gt; pax-logging has an optional dependency on it&lt;/p&gt;

&lt;p&gt;Oh; didn&apos;t know. So... shouldn&apos;t it (org.osgi.service.event) then have been listed in some upstream Karaf core feature, in an ideal world, so that we would never have had this problem?  (Open a bug / propose a change to Apache Karaf - or forget about it?)&lt;/p&gt;</comment>
                            <comment id="41778" author="vorburger" created="Wed, 7 Jun 2017 08:05:17 +0000"  >&lt;p&gt;Closing as RESOLVED FIXED, as c/58362 got merged.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>4290</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=4290]]></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="10325"><![CDATA[Lithium-2]]></customfieldvalue>

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

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