The DCOM connection to the remote object has been disconnected (waitForResponse2)

2042
2
11-29-2010 05:45 AM
alikaidi
New Contributor
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

EOFException : The DCOM connection to the remote object has been disconnected (waitForResponse2)

This error can be throwed when i try to create an queryFilter:

  IQueryFilter queryFilter = (IQueryFilter) serverContext
    .createObject(QueryFilter.getClsid());

and before it worked fine.

I think it's an regression in 9.3.1, i need your help if you ever had this kind of problem.
0 Kudos
2 Replies
fenggao
New Contributor
i meet the same problem .the code is:
ServerConnection serverConn=null;
  IServerContext serverContext=null;
  int i=0;
  try
  {
   
   for(i=0;i<20000;i++)
   {
    serverConn=AOUtil.getGISConn("172.18.51.55", "Administrator", "ypgis");
    if(serverConn!=null)
    {
     System.out.println("got serverConn");
    }
    IServerObjectManager som=serverConn.getServerObjectManager();
    if(som!=null)
    {
     System.out.println("got som");
    }
    serverContext=som.createServerContext("hbpower","MapServer");
    if(serverContext!=null)
    {
     System.out.println("got serverContext");
    }
    AOUtil.releaseServerContext(serverContext);
//    serverConn.release();
    System.out.println("released serverContext");
   }
  }
  catch (Exception e)
  {
   System.out.println(i+"times--arcgis get IServerObjectManager error�?\n");
  }

error occured on serverConn.getServerObjectManager();
error :The DCOM connection to the remote object has been disconnected (waitForResponse2)
who can solve the problem?
0 Kudos
zhouning
New Contributor
I got the same problem!Does anybody have a solution?
0 Kudos