Select to view content in your preferred language

Connect ArcSDE from JAVA REST

408
1
12-28-2021 07:53 AM
waseemgondal
New Contributor

I used the below code to the SDE direct connection from java (Used Arcsde 9.0 maven dependency)

String instance = "1234";//
String server="host";

if (conn == null) {
try {
conn = new SeConnection(server, instance, database, userName, password);
}

I got the below error

ArcSDE Error Number : -10 Error Description : NETWORK I/O OPERATION FAILED

Could you pls advice...!

0 Kudos
1 Reply
Kishore
Frequent Contributor

@waseemgondal - This look like pure network communication issue. before connecting to the database, make sure following from the machine where your JAVA code is executing:

1. Database client is installed

2. Open the port communication

3. Telnet and verify the connection between database and your code hosted machine.

4. Test the database connection in CMD or in database client environments

 

Regards,
Kishore
0 Kudos