<?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>question NPE in servicesResource.deployClientConfigCommand in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NPE-in-servicesResource-deployClientConfigCommand/m-p/60455#M68732</link>
    <description>&lt;P&gt;Working with&amp;nbsp;&lt;SPAN&gt;Cloudera Express 5.12.0 (#120 built by jenkins on 20170706-1633 git: 34cb1d666e5618595de85d00a25a02eac120feb4), CDH 5.8.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my Java client, when I do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ServicesResource servicesResource = clustersResource.getServicesResource(clusterName);&lt;BR /&gt;ApiCommand command = servicesResource.deployClientConfigCommand(serviceName, null);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Exception in thread "main" java.lang.NullPointerException&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:201)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.sun.proxy.$Proxy36.deployClientConfigCommand(Unknown Source)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.splicemachine.cmclient.ClouderaManagerClient.main(ClouderaManagerClient.java:166)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Same exception if I explicitly use ServicesResourcesV17.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Any workaround?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; -- Oleg&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2017 21:13:11 GMT</pubDate>
    <dc:creator>omazurov</dc:creator>
    <dc:date>2017-09-29T21:13:11Z</dc:date>
    <item>
      <title>NPE in servicesResource.deployClientConfigCommand</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NPE-in-servicesResource-deployClientConfigCommand/m-p/60455#M68732</link>
      <description>&lt;P&gt;Working with&amp;nbsp;&lt;SPAN&gt;Cloudera Express 5.12.0 (#120 built by jenkins on 20170706-1633 git: 34cb1d666e5618595de85d00a25a02eac120feb4), CDH 5.8.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my Java client, when I do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ServicesResource servicesResource = clustersResource.getServicesResource(clusterName);&lt;BR /&gt;ApiCommand command = servicesResource.deployClientConfigCommand(serviceName, null);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Exception in thread "main" java.lang.NullPointerException&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:201)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.sun.proxy.$Proxy36.deployClientConfigCommand(Unknown Source)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;at com.splicemachine.cmclient.ClouderaManagerClient.main(ClouderaManagerClient.java:166)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Same exception if I explicitly use ServicesResourcesV17.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Any workaround?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; -- Oleg&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 21:13:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NPE-in-servicesResource-deployClientConfigCommand/m-p/60455#M68732</guid>
      <dc:creator>omazurov</dc:creator>
      <dc:date>2017-09-29T21:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in servicesResource.deployClientConfigCommand</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NPE-in-servicesResource-deployClientConfigCommand/m-p/63360#M68733</link>
      <description>&lt;P&gt;Documentation is probably wrong and null can't be passed as the second parameter (for V17 at least).&lt;/P&gt;&lt;P&gt;Pass an empty ApiRoleNameList().&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:40:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NPE-in-servicesResource-deployClientConfigCommand/m-p/63360#M68733</guid>
      <dc:creator>omazurov</dc:creator>
      <dc:date>2018-01-05T21:40:52Z</dc:date>
    </item>
  </channel>
</rss>

