<?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 SDK: AWT-EventQueue exception inside SwingUtilities.InvokeLater in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-sdk-awt-eventqueue-exception-inside/m-p/175381#M4549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ToolbarBean class is also generating and Error on my setup as well even in the4 most basic capacity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the ST from the sample project run inside eclipse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.RuntimeException: AutomationException: 0x80040112 - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.arcgis.interop.Ocx.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.arcgis.controls.ToolbarControl.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.arcgis.beans.toolbar.ToolbarBean.init(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.arcgis.beans.toolbar.ToolbarBean.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.getToolbarBean(BasicViewer.java:156)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.getJContentPane(BasicViewer.java:115)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.initialize(BasicViewer.java:88)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.&amp;lt;init&amp;gt;(BasicViewer.java:77)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.main(BasicViewer.java:144)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: AutomationException: 0x80040112 - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thought on this would be helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2013 11:43:41 GMT</pubDate>
    <dc:creator>PeterHastings</dc:creator>
    <dc:date>2013-01-09T11:43:41Z</dc:date>
    <item>
      <title>Java SDK: AWT-EventQueue exception inside SwingUtilities.InvokeLater</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-sdk-awt-eventqueue-exception-inside/m-p/175379#M4547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've just begun to test Java SDK for ArcGIS 10. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to run some basic samples to test the environment, and I've found I receive an exception when I use GUI beans inside the AWT eventqueu thread (this is from DynamicDisplayApp example):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;public static void main(String[] args) {
&amp;nbsp; initializeInterop();
&amp;nbsp; initializeArcGISLicenses();
&amp;nbsp; final DynamicDisplayApp map = new DynamicDisplayApp();
&amp;nbsp; map.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
&amp;nbsp; SwingUtilities.invokeLater(new Runnable() {
&amp;nbsp;&amp;nbsp; public void run() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.initializeUI();
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setVisible(true);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Invoking the initialization of the mapbean causes the followind exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: AutomationException: 0x80040112 - 
 at com.esri.arcgis.interop.Ocx.&amp;lt;init&amp;gt;(Unknown Source)
 at com.esri.arcgis.controls.ToolbarControl.&amp;lt;init&amp;gt;(Unknown Source)
 at com.esri.arcgis.beans.toolbar.ToolbarBean.a(Unknown Source)
 at com.esri.arcgis.beans.toolbar.ToolbarBean.&amp;lt;init&amp;gt;(Unknown Source)
 at arcgissamples.display.DynamicDisplayApp.getToolbarBean(DynamicDisplayApp.java:156)
 at arcgissamples.display.DynamicDisplayApp.getJContentPane(DynamicDisplayApp.java:113)
 at arcgissamples.display.DynamicDisplayApp.initializeUI(DynamicDisplayApp.java:91)
 at arcgissamples.display.DynamicDisplayApp.access$0(DynamicDisplayApp.java:89)
 at arcgissamples.display.DynamicDisplayApp$2.run(DynamicDisplayApp.java:143)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: AutomationException: 0x80040112 - 
 ... 17 more&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't happen if the mapbean is created not inside the invokelater methos (see RubberBandZoom exemple).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Giovanni&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 13:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-sdk-awt-eventqueue-exception-inside/m-p/175379#M4547</guid>
      <dc:creator>GiovanniAllegri</dc:creator>
      <dc:date>2010-10-21T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: AWT-EventQueue exception inside SwingUtilities.InvokeLater</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-sdk-awt-eventqueue-exception-inside/m-p/175380#M4548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to get some samples from ArcGIS running. I get the same exception in some of them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I always get the AutomationException: 0x80040112 - even in the RubberBandZoom example. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "main" java.lang.RuntimeException: AutomationException: 0x80&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;040112 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.interop.Ocx.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.controls.ToolbarControl.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.beans.toolbar.ToolbarBean.a(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.arcgis.beans.toolbar.ToolbarBean.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at arcgissamples.display.RubberBandZoom.getToolbarbean1(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at arcgissamples.display.RubberBandZoom.getJContentPane(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at arcgissamples.display.RubberBandZoom.initialize(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at arcgissamples.display.RubberBandZoom.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at arcgissamples.display.RubberBandZoom.main(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at arcgissamples.loadsample.Main.main(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: AutomationException: 0x80040112 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... 10 more&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you get a solution to this? If so, please share...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a windows 7, 64-bit machine. I am running the samples with a 32-bit jvm.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 06:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-sdk-awt-eventqueue-exception-inside/m-p/175380#M4548</guid>
      <dc:creator>kirankate</dc:creator>
      <dc:date>2011-11-01T06:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Java SDK: AWT-EventQueue exception inside SwingUtilities.InvokeLater</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-sdk-awt-eventqueue-exception-inside/m-p/175381#M4549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ToolbarBean class is also generating and Error on my setup as well even in the4 most basic capacity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the ST from the sample project run inside eclipse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.RuntimeException: AutomationException: 0x80040112 - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.arcgis.interop.Ocx.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.arcgis.controls.ToolbarControl.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.arcgis.beans.toolbar.ToolbarBean.init(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.arcgis.beans.toolbar.ToolbarBean.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.getToolbarBean(BasicViewer.java:156)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.getJContentPane(BasicViewer.java:115)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.initialize(BasicViewer.java:88)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.&amp;lt;init&amp;gt;(BasicViewer.java:77)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at BasicViewer.main(BasicViewer.java:144)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: AutomationException: 0x80040112 - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thought on this would be helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 11:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-sdk-awt-eventqueue-exception-inside/m-p/175381#M4549</guid>
      <dc:creator>PeterHastings</dc:creator>
      <dc:date>2013-01-09T11:43:41Z</dc:date>
    </item>
  </channel>
</rss>

