<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Receiving HTTP 500 when trying to use groups/userDefinedGroups in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/receiving-http-500-when-trying-to-use-groups-userdefinedgroups/m-p/3489453#M1203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The groupType and noAlarms parameters for these resources are not preceded with a ".", so that's why you're receiving the last two errors.&amp;nbsp; As far as the first error, we did see one issue where this service would return a 500 NullPointerException error, but we root caused that issue and fixed it all during the development of 3.0.0.&amp;nbsp; I'm not familiar with what might be causing this 500 error you are seeing now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this behavior just started happening recently?&amp;nbsp; After applying a patch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're still seeing this behavior can you please do the following: (1) login to the UI (with administrative) privileges and go to Administration &amp;gt; Logging; (2) reproduce the 500 error; (3) download the logs just after reproducing the issue; (4) contact me via email (my address is in my profile) and we can setup a secure exchange of the log bundle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 21:17:43 GMT</pubDate>
    <dc:creator>Spencer Zier</dc:creator>
    <dc:date>2016-01-05T21:17:43Z</dc:date>
    <item>
      <title>Receiving HTTP 500 when trying to use groups/userDefinedGroups</title>
      <link>https://community.cisco.com/t5/controllers/receiving-http-500-when-trying-to-use-groups-userdefinedgroups/m-p/3489452#M1202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to start by saying that I'm new to programmatic networking, but am familiar with programming principles.&amp;nbsp; We are currently running Prime 3.0.2 with the latest device pack.&amp;nbsp; I'm able to poke around the APIs and gather basic information, however, when I try to use groups/UserDefinedGroups as described in the API documentation, I receive the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request: &lt;A href="https://chapupiadm.main.tva.gov/webacs/api/v1/op/groups/userDefinedGroups" title="https://chapupiadm.main.tva.gov/webacs/api/v1/op/groups/userDefinedGroups"&gt;https://PRIME/webacs/api/v1/op/groups/userDefinedGroups&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;errorDocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;httpResponseCode&amp;gt;500&amp;lt;/httpResponseCode&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;httpMethod&amp;gt;GET&amp;lt;/httpMethod&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;exception&amp;gt;java.lang.NullPointerException&amp;lt;/exception&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;uriPath&amp;gt;op/groups/userDefinedGroups&amp;lt;/uriPath&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;queryParams&amp;gt;{}&amp;lt;/queryParams&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&amp;lt;/errorDocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After poking around this forum, I saw one reference that even though some attributes are marked as optional, at least one is required so I've tried the following, as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request: &lt;A href="https://chapupiadm.main.tva.gov/webacs/api/v1/op/groups/userDefinedGroups" title="https://chapupiadm.main.tva.gov/webacs/api/v1/op/groups/userDefinedGroups"&gt;https://PRIME/webacs/api/v1/op/groups/userDefinedGroups?.groupType=NETWORK_DEVICE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;errorDocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;httpResponseCode&amp;gt;500&amp;lt;/httpResponseCode&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;httpMethod&amp;gt;GET&amp;lt;/httpMethod&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;message&amp;gt;com.cisco.xmp.web.PresentationException: Unrecognized control query-param groupType with value NETWORK_DEVICE.-PRS-108&amp;lt;/message&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;exception&amp;gt;com.cisco.xmp.web.XMPWebApplicationException: com.cisco.xmp.web.PresentationException: Unrecognized control query-param groupType with value NETWORK_DEVICE.-PRS-108&amp;lt;/exception&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;uriPath&amp;gt;op/groups/userDefinedGroups&amp;lt;/uriPath&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;queryParams&amp;gt;{.groupType=[NETWORK_DEVICE]}&amp;lt;/queryParams&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&amp;lt;/errorDocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Request: &lt;A href="https://chapupiadm.main.tva.gov/webacs/api/v1/op/groups/userDefinedGroups?.noAlarms=true" title="https://chapupiadm.main.tva.gov/webacs/api/v1/op/groups/userDefinedGroups?.noAlarms=true"&gt;https://PRIME/webacs/api/v1/op/groups/userDefinedGroups?.noAlarms=true&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;lt;errorDocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;httpResponseCode&amp;gt;500&amp;lt;/httpResponseCode&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;httpMethod&amp;gt;GET&amp;lt;/httpMethod&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;message&amp;gt;com.cisco.xmp.web.PresentationException: Unrecognized control query-param noAlarms with value true.-PRS-108&amp;lt;/message&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;exception&amp;gt;com.cisco.xmp.web.XMPWebApplicationException: com.cisco.xmp.web.PresentationException: Unrecognized control query-param noAlarms with value true.-PRS-108&amp;lt;/exception&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;uriPath&amp;gt;op/groups/userDefinedGroups&amp;lt;/uriPath&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;queryParams&amp;gt;{.noAlarms=[true]}&amp;lt;/queryParams&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&amp;lt;/errorDocument&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Is there something I'm doing wrong is is this something with the API?&amp;nbsp; I'm trying to create location groups based on site codes contained in device hostnames (200+) so I was using this to see what the format would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Edited to remove hostname*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 15:55:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/receiving-http-500-when-trying-to-use-groups-userdefinedgroups/m-p/3489452#M1202</guid>
      <dc:creator>Doug Byrd</dc:creator>
      <dc:date>2016-01-04T15:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving HTTP 500 when trying to use groups/userDefinedGroups</title>
      <link>https://community.cisco.com/t5/controllers/receiving-http-500-when-trying-to-use-groups-userdefinedgroups/m-p/3489453#M1203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The groupType and noAlarms parameters for these resources are not preceded with a ".", so that's why you're receiving the last two errors.&amp;nbsp; As far as the first error, we did see one issue where this service would return a 500 NullPointerException error, but we root caused that issue and fixed it all during the development of 3.0.0.&amp;nbsp; I'm not familiar with what might be causing this 500 error you are seeing now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this behavior just started happening recently?&amp;nbsp; After applying a patch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're still seeing this behavior can you please do the following: (1) login to the UI (with administrative) privileges and go to Administration &amp;gt; Logging; (2) reproduce the 500 error; (3) download the logs just after reproducing the issue; (4) contact me via email (my address is in my profile) and we can setup a secure exchange of the log bundle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 21:17:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/receiving-http-500-when-trying-to-use-groups-userdefinedgroups/m-p/3489453#M1203</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2016-01-05T21:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving HTTP 500 when trying to use groups/userDefinedGroups</title>
      <link>https://community.cisco.com/t5/controllers/receiving-http-500-when-trying-to-use-groups-userdefinedgroups/m-p/3489454#M1204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spencer, thanks for the update! I tried without the "." (&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;A class="jive-link-external-small" href="https://chapupiadm.main.tva.gov/webacs/api/v1/op/groups/userDefinedGroups?.noAlarms=true" rel="nofollow" target="_blank"&gt;https://PRIME/webacs/api/v1/op/groups/userDefinedGroups?noAlarms=true&lt;/A&gt;&lt;/SPAN&gt;) and it did get me the information I was expecting.&amp;nbsp; This is a viable workaround for me, as the the alarm status is not important for this task.&amp;nbsp; However, if i leave off the "?noAlarms=true" i still get a 500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me reveal a little bit more about our environment.&amp;nbsp; I recently went through the process of upgrade from 2.1 Standard to 3.0.2 Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process we used was roundabout and probably a very bad way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Process was:&amp;nbsp;&amp;nbsp; v2.1 App Backup &amp;gt; Deploy 2.2 Std OVA &amp;gt; Restore v2.1 App &amp;gt; Inline upgrade to 3.0 &amp;gt; Inline upgrade to 3.0.2.&amp;nbsp; At this point I realized that, unbeknownst to me, we had purchased licenses for features only available in PRO (Assurance).&amp;nbsp; So, I then did an App Backup for v3.0.2 &amp;gt; Deployed 3.0 PRO OVA &amp;gt; Inline upgrade to 3.0.2 &amp;gt; App Restore v3.0.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 16:07:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/receiving-http-500-when-trying-to-use-groups-userdefinedgroups/m-p/3489454#M1204</guid>
      <dc:creator>Doug Byrd</dc:creator>
      <dc:date>2016-01-06T16:07:23Z</dc:date>
    </item>
  </channel>
</rss>

