<?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: Java errors while running web_api_show_package in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110991#M5602</link>
    <description>&lt;P&gt;Because we don't have access to it. It is a big company with some strict and weird policies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 05:15:02 GMT</pubDate>
    <dc:creator>EvgenyAU</dc:creator>
    <dc:date>2021-02-17T05:15:02Z</dc:date>
    <item>
      <title>Java errors while running web_api_show_package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110864#M5583</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run remotely Policy Visualization api from my Win10 station to export policies from MDM R80.30 to HTML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the latest jar version from Github, receiving Java errors:&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.NullPointerException&lt;BR /&gt;at com.checkpoint.mgmt_api.objects.PolicyPackage.toJson(PolicyPackage.java:79)&lt;BR /&gt;at com.checkpoint.mgmt_api.objects.IndexView.toJson(IndexView.java:64)&lt;BR /&gt;at com.checkpoint.mgmt_api.examples.ShowPackageTool.buildIndexHtmlPage(ShowPackageTool.java:1606)&lt;BR /&gt;at com.checkpoint.mgmt_api.examples.ShowPackageTool.main(ShowPackageTool.java:184)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried both Oracle and 3d party Java with no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Evgeny&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 06:38:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110864#M5583</guid>
      <dc:creator>EvgenyAU</dc:creator>
      <dc:date>2021-02-16T06:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java errors while running web_api_show_package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110990#M5601</link>
      <description>&lt;P&gt;Why not run this directly from the management server?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 05:12:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110990#M5601</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-02-17T05:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Java errors while running web_api_show_package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110991#M5602</link>
      <description>&lt;P&gt;Because we don't have access to it. It is a big company with some strict and weird policies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 05:15:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110991#M5602</guid>
      <dc:creator>EvgenyAU</dc:creator>
      <dc:date>2021-02-17T05:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Java errors while running web_api_show_package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110994#M5604</link>
      <description>&lt;P&gt;Did you follow the build instructions in the GitHub?&lt;BR /&gt;It has a few dependencies (including a specific library of ours).&lt;BR /&gt;Also tagging&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/42080"&gt;@chkp-royl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 05:56:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110994#M5604</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-02-17T05:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Java errors while running web_api_show_package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110996#M5605</link>
      <description>&lt;P&gt;No, I am using ready-to-use jar artifact mentioned in README. Do you reckon it makes any difference?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 06:04:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/110996#M5605</guid>
      <dc:creator>EvgenyAU</dc:creator>
      <dc:date>2021-02-17T06:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Java errors while running web_api_show_package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/111022#M5607</link>
      <description>&lt;P&gt;Hi Evgeny,&lt;/P&gt;
&lt;P&gt;This exception may happen if the policy package doesn't have NAT layer. If so, try to execute tool again with parameter&amp;nbsp;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN class="pl-v"&gt;show&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN class="pl-v"&gt;nat&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN class="pl-v"&gt;policy false&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="pl-v"&gt;We will fix that issue in the next version of the tool.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="pl-v"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="pl-v"&gt;Roy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 09:23:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/111022#M5607</guid>
      <dc:creator>chkp-royl</dc:creator>
      <dc:date>2021-02-17T09:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Java errors while running web_api_show_package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/111024#M5608</link>
      <description>&lt;P&gt;It does have NAT layer.&lt;/P&gt;&lt;P&gt;But I managed to create tarball by running it remotely on MDM server rather than on CMA using the full command:&lt;/P&gt;&lt;P&gt;java -jar web_api_show_package-jar-with-dependencies.jar -c -m ADDRESS -d DOMAIN_NAME -k POLICY_NAME --show-threat-policy false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 09:37:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Java-errors-while-running-web-api-show-package/m-p/111024#M5608</guid>
      <dc:creator>EvgenyAU</dc:creator>
      <dc:date>2021-02-17T09:37:41Z</dc:date>
    </item>
  </channel>
</rss>

