<?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: JVM no longer stops properly when an ArcGISLocalTiledLayer is added into a JMap. in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90005#M252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue still indeed exists in 10.2.4. I posted about it in &lt;A _jive_internal="true" href="https://community.esri.com/message/530918#530918"&gt;FXMap.dispose() doesn't seem to work&lt;/A&gt;, not as nice write-up as Jerome imho.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an ETA on the next release of the Java Runtime, Quartz?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 07:09:07 GMT</pubDate>
    <dc:creator>KacperBoström</dc:creator>
    <dc:date>2015-08-05T07:09:07Z</dc:date>
    <item>
      <title>JVM no longer stops properly when an ArcGISLocalTiledLayer is added into a JMap.</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90003#M250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experiencing the following problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As soon as I add an ArcGISLocalTiledLayer to display a map in my JMap, my application doesn't want to stop if I don't call myself "System.exit()".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- JavaFx application, using a SwingNode to display the JMap.&lt;/P&gt;&lt;P&gt;- Windows XP 32bits&lt;/P&gt;&lt;P&gt;- Eclipse Luna&lt;/P&gt;&lt;P&gt;- ArcGIS Runtime for Java 10.2.3&lt;/P&gt;&lt;P&gt;- JDK 1.8u45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Before launching sample code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Add the ARCGISRUNTIMESDKJAVA_10_2_3 environment parameter&lt;/P&gt;&lt;P&gt;- Update the constant "URL_BASEMAP" (line 23) to a valid map path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample code: &lt;/STRONG&gt;see attachment "&lt;STRONG&gt;&lt;SPAN class="defaultSkin"&gt;&lt;SPAN class="j-attachment-name-chop"&gt;SwingFxAppMinimalCode.java&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Personal analyse:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- When commenting the line 122, the JVM stops properly. &lt;/P&gt;&lt;P&gt;In this case, when running the application, threads are: (see attachment "&lt;STRONG&gt;debug - without map.png&lt;/STRONG&gt;")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Without commenting the line 122, we see the map displayed on the screen. In this case, when running the application, threads are: (see attachment "&lt;STRONG&gt;debug - with map.png&lt;/STRONG&gt;").&lt;/P&gt;&lt;P&gt;We can see there are 3 new threads as soon as the layer is added to the JMap:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "Thread-8",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "pool-2-thread-1" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "pool-2-thread-2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you close the JavaFx primary stage, the JVM won't stop. Remaining running threads are: (see attachment "&lt;STRONG&gt;debug - with map - after closing stage.png&lt;/STRONG&gt;")&lt;/P&gt;&lt;P&gt;We can see 2 out of 3 of the new threads are still running:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "pool-2-thread-1" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "pool-2-thread-2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could it be a pool of worker-threads not disposed properly when disposing of the JMap - which would prevent the JVM to stop properly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help/analyse is welcome, thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre BEULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;English translation by Pierre BEULE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 11:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90003#M250</guid>
      <dc:creator>jeromegaboriau</dc:creator>
      <dc:date>2015-07-16T11:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: JVM no longer stops properly when an ArcGISLocalTiledLayer is added into a JMap.</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90004#M251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerome. Great write-up and example of what you are experiencing. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off, just an FYI...10.2.3 was not tested or supported with JavaFX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, using 10.2.4, which does have "beta" support for JavaFX, I can reproduce the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll look into it more, but its probably a known issue for this current release. At the next major release (called Quartz), we'll have this worked out, I'm sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 00:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90004#M251</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2015-08-05T00:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: JVM no longer stops properly when an ArcGISLocalTiledLayer is added into a JMap.</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90005#M252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue still indeed exists in 10.2.4. I posted about it in &lt;A _jive_internal="true" href="https://community.esri.com/message/530918#530918"&gt;FXMap.dispose() doesn't seem to work&lt;/A&gt;, not as nice write-up as Jerome imho.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an ETA on the next release of the Java Runtime, Quartz?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 07:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90005#M252</guid>
      <dc:creator>KacperBoström</dc:creator>
      <dc:date>2015-08-05T07:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: JVM no longer stops properly when an ArcGISLocalTiledLayer is added into a JMap.</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90006#M253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad you asked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quartz Beta 1 - August 31 2015&lt;/P&gt;&lt;P&gt;Quartz Beta 2 - End of 2015&lt;/P&gt;&lt;P&gt;Quartz Final - Late Q1 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Dates subject to change)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:30:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90006#M253</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2015-08-05T17:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: JVM no longer stops properly when an ArcGISLocalTiledLayer is added into a JMap.</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90007#M254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot to both of you for your answers.&lt;/P&gt;&lt;P&gt;I guess I will wait for the Quartz release to be available to remove my System.exit() call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre BEULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 08:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jvm-no-longer-stops-properly-when-an/m-p/90007#M254</guid>
      <dc:creator>jeromegaboriau</dc:creator>
      <dc:date>2015-09-09T08:47:28Z</dc:date>
    </item>
  </channel>
</rss>

