Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

mks java api connection error

$
0
0

Hello

 

I am trying to connect to Mks using the mks java api and encounter the Connection refused: connect error.

I am using the following code

{

    IntegrationPointFactory ipf = IntegrationPointFactory.getInstance();
CmdRunner cmdRunner;
Response resp = null;try{cmdRunner = ipf.createLocalIntegrationPoint(4, 10)
.getCommonSession().createCmdRunner(); 
Command cmd = new Command(Command.SI, "about");
resp = cmdRunner.execute(cmd);}catch (APIException e) {System.
out.println("Error " + e.getMessage());resp = e.getResponse(); }

}

to connect at mks client (I am using MKS Integrity Client 2009) and I encounter  the following error

{

  Connection refused: connect

}

How can I improove the above code in order to successfully connect to mks and skyp the error ?

 

Best regards,


Viewing all articles
Browse latest Browse all 3432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>