<?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 Java Runtime 10.2.4 Local Server Fails unless VPN is Active in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/java-runtime-10-2-4-local-server-fails-unless-vpn/m-p/752737#M2238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem\bug in my Serial GPS application. Rather than creating a huge tile package for offline use I opted to use&amp;nbsp;an .mpk.&amp;nbsp;Interestingly, The Local Server&amp;nbsp;will not work unless I am connected to the internet. More specifically, the local server coming off of port 50000 only works when I am testing the application within the corporate firewall or if I am outside of the firewall with a VPN connection. Most of the code is just esri stock for this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;Here is a portion of the code but I don't think that is the problem, security issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;startServerButton&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.addActionListener(&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: small;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; ActionListener() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #646464; font-size: small;"&gt;@Override&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;public&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; actionPerformed(ActionEvent &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;e&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LocalServer.&lt;EM&gt;getInstance&lt;/EM&gt;().initializeAsync();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;try&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;EM&gt;writeToTextArea&lt;/EM&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"Starting local server."&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;dynamicLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; ArcGISLocalDynamicMapServiceLayer(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"C://csx_mpk//csx_offline_features_mpk.mpk"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;map&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;.getLayers().add(3, &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;dynamicLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;catch&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; (Exception &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;ex&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;ex&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.printStackTrace();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2016 22:26:16 GMT</pubDate>
    <dc:creator>thomasbales</dc:creator>
    <dc:date>2016-11-09T22:26:16Z</dc:date>
    <item>
      <title>Java Runtime 10.2.4 Local Server Fails unless VPN is Active</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/java-runtime-10-2-4-local-server-fails-unless-vpn/m-p/752737#M2238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem\bug in my Serial GPS application. Rather than creating a huge tile package for offline use I opted to use&amp;nbsp;an .mpk.&amp;nbsp;Interestingly, The Local Server&amp;nbsp;will not work unless I am connected to the internet. More specifically, the local server coming off of port 50000 only works when I am testing the application within the corporate firewall or if I am outside of the firewall with a VPN connection. Most of the code is just esri stock for this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;Here is a portion of the code but I don't think that is the problem, security issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;startServerButton&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.addActionListener(&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: small;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; ActionListener() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #646464; font-size: small;"&gt;@Override&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;public&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; actionPerformed(ActionEvent &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;e&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LocalServer.&lt;EM&gt;getInstance&lt;/EM&gt;().initializeAsync();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;try&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;EM&gt;writeToTextArea&lt;/EM&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"Starting local server."&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;dynamicLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; ArcGISLocalDynamicMapServiceLayer(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"C://csx_mpk//csx_offline_features_mpk.mpk"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;map&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;.getLayers().add(3, &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;dynamicLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;catch&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; (Exception &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;ex&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;ex&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.printStackTrace();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 22:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/java-runtime-10-2-4-local-server-fails-unless-vpn/m-p/752737#M2238</guid>
      <dc:creator>thomasbales</dc:creator>
      <dc:date>2016-11-09T22:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Java Runtime 10.2.4 Local Server Fails unless VPN is Active</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/java-runtime-10-2-4-local-server-fails-unless-vpn/m-p/752738#M2239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it. When I created my .mpk I had it pointing at my SQL database so when I was outside of the firewall the local server could not see it. Once I was&amp;nbsp;behind the firewall&amp;nbsp;or had a VPN connection running the application was fine. The solution, create a local GDB and then create the .mpk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 19:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/java-runtime-10-2-4-local-server-fails-unless-vpn/m-p/752738#M2239</guid>
      <dc:creator>thomasbales</dc:creator>
      <dc:date>2016-11-17T19:10:41Z</dc:date>
    </item>
  </channel>
</rss>

