Skip navigation
Currently Being Moderated

Cannot connect to Policy Server

Sep 29, 2006 7:03 AM

Hi -

I've just started using Policy Server and am trying to connect to it using the SDK.

I've got a very small amount of source code which I took from the API documentation which should literally create the properties & then calls EDCFactory.connect.

When I try and connect I keep getting the error message:

------

Exception connecting to the Server -- An error occured while performing this operation(error code bin: 1, hex: 0x1)

------

I've seen a couple of other people getting this error on this list but haven't really found a solution.

I have imported a new config.xml file to set WebServicesEnabled to true (but not restarted the server - do I need to?), and I've created an external user that I'm using to connect to the policy server (I have also tried with the administrator).

I'm running the client that's connecting on my local machine, and trying to connect to the policy server machine. I can enter the /edcws/services/EDCPolicyService?wsdl url into a web browser from my local machine and I get an xml response, so I presume that the server is contactable.

Can anyone point me in the right direction as to how to debug this issue?
 
Replies
  • Currently Being Moderated
    Sep 29, 2006 8:35 AM   in reply to (A_Sharma)
    Can you call e.printStackTrace() on the exception and send the full exception trace, which will have much more information.

    Thanks,

    -Bill
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 2, 2006 9:40 AM   in reply to (A_Sharma)
    Hi Anil,

    The "invalid timestamp" error occurs when the client and server machine's times are out of sync. That would also explain why you see the problem on one machine and not another. Try setting the clocks of the client to server to be in sync and that should resolve the issue. You may also want to use NTP to keep the clocks in sync.

    Hope this helps,

    -Bill
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)