<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:02:06 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>[INFRAUTILS-36] showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 (NoSuchElementException) at acquireServiceStatusDetailed(DiagStatusServiceMBeanImpl.java:119)</title>
                <link>https://jira.opendaylight.org/browse/INFRAUTILS-36</link>
                <project id="10129" key="INFRAUTILS">infrautils</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=jluhrsen&quot; class=&quot;user-hover&quot; rel=&quot;jluhrsen&quot;&gt;jluhrsen&lt;/a&gt; raised this on &lt;a href=&quot;https://lists.opendaylight.org/pipermail/infrautils-dev/2018-May/000689.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/infrautils-dev/2018-May/000689.html&lt;/a&gt; :&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;karaf@root()&amp;gt; feature:install odl-openflowplugin-flow-services-rest odl-infrautils-diagstatus odl-infrautils-ready
karaf@root()&amp;gt; showSvcStatus
Timestamp: Tue May 01 16:19:56 PDT 2018
Status retrieval JMX Operation failed for node 127.0.0.1~ karaf@root()&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and this log:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2018-05-01T16:19:56,330 | ERROR | pipe-showSvcStatus | DiagStatusCommand                | 250 - org.opendaylight.infrautils.diagstatus-shell - 1.4.0.SNAPSHOT | Exception while reaching Host 127.0.0.1
javax.management.RuntimeMBeanException: java.util.NoSuchElementException: No value present
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839) [?:?]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852) [?:?]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821) [?:?]
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [?:?]
        at org.opendaylight.infrautils.diagstatus.MBeanUtils.invokeMBeanFunction(MBeanUtils.java:134) [248:org.opendaylight.infrautils.diagstatus-api:1.4.0.SNAPSHOT]
        at org.opendaylight.infrautils.diagstatus.shell.DiagStatusCommand.getLocalStatusSummary(DiagStatusCommand.java:71) [250:org.opendaylight.infrautils.diagstatus-shell:1.4.0.SNAPSHOT]
        at org.opendaylight.infrautils.diagstatus.shell.DiagStatusCommand.execute(DiagStatusCommand.java:49) [250:org.opendaylight.infrautils.diagstatus-shell:1.4.0.SNAPSHOT]
        at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:34) [49:org.apache.karaf.shell.core:4.1.5]
        at Proxyb09c3b98_2f98_4a06_b5dd_f9bfb4b3d6de.execute(Unknown Source) [?:?]
        at org.apache.karaf.shell.compat.CommandTracker.execute(CommandTracker.java:120) [49:org.apache.karaf.shell.core:4.1.5]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [49:org.apache.karaf.shell.core:4.1.5]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [49:org.apache.karaf.shell.core:4.1.5]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) [49:org.apache.karaf.shell.core:4.1.5]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) [49:org.apache.karaf.shell.core:4.1.5]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) [49:org.apache.karaf.shell.core:4.1.5]
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) [49:org.apache.karaf.shell.core:4.1.5]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [49:org.apache.karaf.shell.core:4.1.5]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [49:org.apache.karaf.shell.core:4.1.5]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.run(ThreadPoolExecutor.java:624) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.util.NoSuchElementException: No value present
        at java.util.Optional.get(Optional.java:135) ~[?:?]
        at org.opendaylight.infrautils.diagstatus.internal.DiagStatusServiceMBeanImpl.acquireServiceStatusDetailed(DiagStatusServiceMBeanImpl.java:119) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) ~[?:?]
        at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) ~[?:?]
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) ~[?:?]
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) ~[?:?]
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) ~[?:?]
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) ~[?:?]
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) ~[?:?]
        at javax.management.StandardMBean.invoke(StandardMBean.java:405) ~[?:?]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) ~[?:?]
        ... 19 more&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="29892">INFRAUTILS-36</key>
            <summary>showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 (NoSuchElementException) at acquireServiceStatusDetailed(DiagStatusServiceMBeanImpl.java:119)</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="10002">Duplicate</resolution>
                                        <assignee username="vorburger">Michael Vorburger</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 May 2018 10:12:42 +0000</created>
                <updated>Wed, 2 May 2018 21:55:10 +0000</updated>
                            <resolved>Wed, 2 May 2018 10:54:06 +0000</resolved>
                                    <version>Fluorine</version>
                                    <fixVersion>Fluorine</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="62708" author="vorburger" created="Wed, 2 May 2018 10:51:44 +0000"  >&lt;p&gt;&amp;gt; at org.opendaylight.infrautils.diagstatus.internal.DiagStatusServiceMBeanImpl.acquireServiceStatusDetailed(DiagStatusServiceMBeanImpl.java:119) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;?:?&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;I was a bit puzzled by this because line 119 in DiagStatusServiceMBeanImpl has no &lt;tt&gt;Optional.get()&lt;/tt&gt;, until I remember that &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=jluhrsen&quot; class=&quot;user-hover&quot; rel=&quot;jluhrsen&quot;&gt;jluhrsen&lt;/a&gt; was working on &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-31&quot; title=&quot;diagstatus including cause of failures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-31&quot;&gt;&lt;del&gt;INFRAUTILS-31&lt;/del&gt;&lt;/a&gt; and looking at &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/70220/4/diagstatus/impl/src/main/java/org/opendaylight/infrautils/diagstatus/internal/DiagStatusServiceMBeanImpl.java&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/70220/4/diagstatus/impl/src/main/java/org/opendaylight/infrautils/diagstatus/internal/DiagStatusServiceMBeanImpl.java&lt;/a&gt; saw that his added this there:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;.append(status.getErrorCause().get())&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;which is causing this. So this is a mistake on that change, which is not present. I&apos;ll therefore put a review comment on that change and close this issue.&lt;/p&gt;

&lt;p&gt;Staring at this code, and this comment from &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=jluhrsen&quot; class=&quot;user-hover&quot; rel=&quot;jluhrsen&quot;&gt;jluhrsen&lt;/a&gt;, has however prompted me to question something in that code:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Something might be wrong in my environment that is blocking localhost/127.0.0.1&lt;br/&gt;
from working here?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;and I&apos;ll follow-up on that in &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-37&quot; title=&quot;diagstatus CLI should not to use JMX to obtain information from local node to avoid ConnectException on 127.0.0.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-37&quot;&gt;&lt;del&gt;INFRAUTILS-37&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="62731" author="jluhrsen" created="Wed, 2 May 2018 21:55:10 +0000"  >&lt;p&gt;I updated &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-38&quot; title=&quot;showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 due to rmi.ConnectException: Connection refused to host: 127.0.0.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-38&quot;&gt;&lt;del&gt;INFRAUTILS-38&lt;/del&gt;&lt;/a&gt; and 37 with what I learned, and now back to this as it&apos;s still a problem to figure out.&lt;/p&gt;

&lt;p&gt;I tried to see if I could replicate the problem with a unit test and I thought I was close with &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/71675/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; but I realize&lt;br/&gt;
that the new UT code was still failing with or without the .get(), so I doubt it now.&lt;/p&gt;

&lt;p&gt;Anyway, I can help/debug, but I think I&apos;m limited with what I can do on my own from there. Looking for&lt;br/&gt;
guidance. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="29465">INFRAUTILS-31</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03e3j:</customfieldvalue>

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