Select to view content in your preferred language

Advanced Java PrintSOE on ARCGIS Server .NET --Can't connect to server

2048
26
06-03-2011 06:24 PM
RuiboHan1
Deactivated User
I was following Step 2 on http://gis.pch.etat.lu/flexViewerPrint/quickstart.html

At the setp of
soemanager.bat -a [server name] [domain name] [username] [password] PCHarcgisSOE.jar

I used the username and password to Arcgis server .net, which is ArcGISWebServices and mypassword, but got the error of
" AutomationException occured while connecting to server localhost.
Please check if username and pwd are correct or are members of agsadmin group.
AutomationException: null
Disconnecting from ArcGIS Server "null"....Done"

I am sure the username and pwd are correct and can also use them to log on the arcgis server manager, anyone has the same problem? Please help,  Tom?  Thanks in advance.
Tags (2)
0 Kudos
26 Replies
TomSchuller
Frequent Contributor
Hy,
could you check if your user "ArcGISWebServices" is in the "agsadmin" group?

You have to take a user which is in the "agsadmin" group.


Tom
0 Kudos
RuiboHan1
Deactivated User
Hy,
could you check if your user "ArcGISWebServices" is in the "agsadmin" group?

You have to take a user which is in the "agsadmin" group.


Tom


Thanks for the reply, Tom.
Yes, it is in the "agsadmin" group, and I also tested with another user in this group,but got the same error.
0 Kudos
TomSchuller
Frequent Contributor
Hy,
are you using the latest version?
download latest JAVA code
download latest FLEX code
from http://www.arcgis.com/home/item.html?id=6809086326ea4c76bf026a32bb9dd698

Could you post your soemanager command line with all the parameters?

Tom
0 Kudos
RuiboHan1
Deactivated User
Yes, I used 30/05/2011 version. Besides, I tested the live demo http://gis.pch.etat.lu/flexViewerPrint/
, and got the error "An error occurs during print" after click the print button.

Here is my command lines:
cd C:\Program Files (x86)\ArcGIS\Server10.0\java\tools\soemanager
set PATH="C:\Program Files (x86)\ArcGIS\Server10.0\java\jre\bin";%PATH%
soemanager.bat -a localhost localhost [username] [password] PCHarcgisSOE.jar

then got the AutomationException error.

Thanks,
Ruibo
0 Kudos
TomSchuller
Frequent Contributor
Hy,
the command is correct.
On which ServicePack level are you (none,SP1 or SP2)?

Could you try with an other Java SOE?

Tom
0 Kudos
RuiboHan1
Deactivated User
ArcGIS Server .net 10 sp2
Win 7 ultimate x64 sp1

Are you suggesting using the old version of PCHarcgisSOE.jar there? I tried that and still get the same error. I have a feeling that it was stuck at the username and pwd check stage, instead of the java soe installation.

Are there any speical java modules I have to install in advance? I installed everything as instructed by ArcGIS server installation file.
my current java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode)
0 Kudos
TomSchuller
Frequent Contributor
Hy,
no I meant a complete other Java SOE.
So we could find out if it's related to my SOE or a server/user configuration.

We are now on SP2 on AGS-Java.
The PrintSOE is running on AGS-Java server v10, v10sp1 and v10sp2.

I don't have the possibility to test on AGS-.net.
I know that people on AGS-.net v10 and v10sp1 have running the PrintSOE successfully.

Tom
0 Kudos
RuiboHan1
Deactivated User
Sorry, I don't know much about Java SOE,  where can I find a different SOE? Thanks, Ruibo
0 Kudos
JimWard
Deactivated User
Ruibo, Tom, did either of you ever find a resolution to this problem? I am having an identical issue, have tried different users (members of agsadmin), and been spinning my wheels with this. I keep trying different options for server names, domains, users, etc.
Same error.
The tool looks like a perfect solution to my map printing/export needs. Would love to implement this!
Any help you could offer would be great!
Thanks
Jim
0 Kudos