<?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: The DCOM connection to the remote object has been disconnected (waitForResponse2) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-dcom-connection-to-the-remote-object-has-been/m-p/26125#M707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i meet the same problem .the code is:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ServerConnection serverConn=null;
&amp;nbsp; IServerContext serverContext=null;
&amp;nbsp; int i=0;
&amp;nbsp; try
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;20000;i++)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; serverConn=AOUtil.getGISConn("172.18.51.55", "Administrator", "ypgis");
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(serverConn!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("got serverConn");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; IServerObjectManager som=serverConn.getServerObjectManager();
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(som!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("got som");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; serverContext=som.createServerContext("hbpower","MapServer");
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(serverContext!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("got serverContext");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; AOUtil.releaseServerContext(serverContext);
//&amp;nbsp;&amp;nbsp;&amp;nbsp; serverConn.release();
&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("released serverContext");
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; catch (Exception e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; System.out.println(i+"times--arcgis get IServerObjectManager error�?\n");
&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;error occured on serverConn.getServerObjectManager();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error :The DCOM connection to the remote object has been disconnected (waitForResponse2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;who can solve the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:03:31 GMT</pubDate>
    <dc:creator>fenggao</dc:creator>
    <dc:date>2021-12-10T21:03:31Z</dc:date>
    <item>
      <title>The DCOM connection to the remote object has been disconnected (waitForResponse2)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-dcom-connection-to-the-remote-object-has-been/m-p/26124#M706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had an application developped with the java web adf 9.3 and at the start of the application i am doing a lot a treatements based on arcobject and it worked fine for me. Last week I tried to migrate my application to the web adf 9.3.1 sp 2 and the treatement executed in the application start does not work like it should and every time i got this error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EOFException : The DCOM connection to the remote object has been disconnected (waitForResponse2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This error can be throwed when i try to create an queryFilter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; IQueryFilter queryFilter = (IQueryFilter) serverContext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createObject(QueryFilter.getClsid());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and before it worked fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it's an regression in 9.3.1, i need your help if you ever had this kind of problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 13:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/the-dcom-connection-to-the-remote-object-has-been/m-p/26124#M706</guid>
      <dc:creator>alikaidi</dc:creator>
      <dc:date>2010-11-29T13:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: The DCOM connection to the remote object has been disconnected (waitForResponse2)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-dcom-connection-to-the-remote-object-has-been/m-p/26125#M707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i meet the same problem .the code is:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ServerConnection serverConn=null;
&amp;nbsp; IServerContext serverContext=null;
&amp;nbsp; int i=0;
&amp;nbsp; try
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;20000;i++)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; serverConn=AOUtil.getGISConn("172.18.51.55", "Administrator", "ypgis");
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(serverConn!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("got serverConn");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; IServerObjectManager som=serverConn.getServerObjectManager();
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(som!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("got som");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; serverContext=som.createServerContext("hbpower","MapServer");
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(serverContext!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("got serverContext");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; AOUtil.releaseServerContext(serverContext);
//&amp;nbsp;&amp;nbsp;&amp;nbsp; serverConn.release();
&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("released serverContext");
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; catch (Exception e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; System.out.println(i+"times--arcgis get IServerObjectManager error�?\n");
&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;error occured on serverConn.getServerObjectManager();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error :The DCOM connection to the remote object has been disconnected (waitForResponse2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;who can solve the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/the-dcom-connection-to-the-remote-object-has-been/m-p/26125#M707</guid>
      <dc:creator>fenggao</dc:creator>
      <dc:date>2021-12-10T21:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: The DCOM connection to the remote object has been disconnected (waitForResponse2)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-dcom-connection-to-the-remote-object-has-been/m-p/26126#M708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the same problem!Does anybody have a solution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 01:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/the-dcom-connection-to-the-remote-object-has-been/m-p/26126#M708</guid>
      <dc:creator>zhouning</dc:creator>
      <dc:date>2011-04-01T01:57:20Z</dc:date>
    </item>
  </channel>
</rss>

