I ran into this issue the other day and thought I would post this . I was upgrading my IDM server from 6.0sp2 to 6.0sp4 and noticed that when I was doing a test connection for my AD resource I saw the following error.
The error you will see is "AD: ==> java.io.EOFException:\\n"
I went to the debug/Gateway.JSP and tried to check the version. I got the same error message.
Once you see this, if you look at the gateway trace from the command line by running gateway where ever you have your gateway.exe file.
03/02/2009 10.28.38.515000  (../../../../src/wps/agent/connect/RASecureConnection.cpp,287): ReceivePrivate:
TERMINATING CONNECTION: incoming sequence number -1141250322 does not match receive count 0
03/02/2009 10.28.38.515000  (../../../../src/wps/agent/connect/client_handler.cpp,350): ReceivePrivate() mesage refused 1
To fix this issue:
1. Open registry (ie. regedit)
2. Locate gateway entry (ie. Software\\\\Waveset\\\\Lighthouse\\\\Gateway)
3. If you see "ServerSignature" key, delete it by right clicking on the key and select "Delete"
This default key is used to encrypt the communication between IdM and the gateway.
This will fix your issue in most cases
On certain occasions you might have to also do:
Remove the key on the IDM side from the resource itself using these instructions:
1. First please go to the debug URL
2. List objects of type "Resource"
3. Take a back-up of one of the resources in question that uses the GW. We only need to test with one of them to see if this change makes it work. No need to worry about the other one(s) at this point.
4. After taking a back-up, click on the "edit" link for the resource in question.
5. Scroll down to the very bottom of the text box and delete the entry that looks like this. All 3 or 4 lines need to be removed.
<ObjectRef type='EncryptionKey' id='#ID#1ADD6A42FBB66F6A:15E0C2B:11A70463869:-7B40' name='GatewayEncryptionKey'/>
6. Then save it and try the test connection again for the resource to see if it's successful.
I hope you find this little tidbit useful as it doesn't happen often but when you install and uninstall as much as I do it seems to happen more.