Hi Hasila,
In case the PCo agent that the PCo Connector points to is down then it would result in the error connection refused : connect while displaying the modes. Hence you could check to see if the agent is running or not.
You mentioned that while running the query with PCo Simulator you got a Java error. Could you specify the exact error that you are getting.
Thanks and Best Regards,
Ria