Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 161285 - Agent Controller does not appear to be available (IWAT0016E) when FIRST connecting to an Agent Controller with security enabled.
Summary: Agent Controller does not appear to be available (IWAT0016E) when FIRST conne...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Kevin P O'Leary CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 125103
  Show dependency tree
 
Reported: 2006-10-17 13:21 EDT by Paul Slauenwhite CLA
Modified: 2016-05-05 11:02 EDT (History)
1 user (show)

See Also:


Attachments
Service log (Linux x86) (2.24 KB, application/x-zip-compressed)
2006-10-18 17:22 EDT, Paul Slauenwhite CLA
no flags Details
.log (Windows XP) (27.04 KB, application/octet-stream)
2006-10-18 17:23 EDT, Paul Slauenwhite CLA
no flags Details
security fix (41.12 KB, application/octet-stream)
2006-10-27 13:45 EDT, Kevin P O'Leary CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slauenwhite CLA 2006-10-17 13:21:21 EDT
Agent Controller does not appear to be available (IWAT0016E) when FIRST connecting to an Agent Controller with security enabled.

Using the TPTP-4.3.0-200610160100 build, connecting to an Agent Controller (e.g. test execution, test connection, etc.) with security enabled for the first time (e.g. no security certificates for the target host), the Agent Controller does not appear to be available:

IWAT0016E The Agent Controller is not available on host cindyjin.Make sure that:
* the Agent Controller is installed.
* the Agent Controller is configured to communicate with your machine.
* you have the correct host name and port number for the Agent Controller.

Connecting for the second and subsequent times works.

Note: The error message is not well formatted (e.g. space(s) after the period).
Comment 1 Paul Slauenwhite CLA 2006-10-17 14:35:50 EDT
Increasing severity since blocking Test project test cases.
Comment 2 Karla Callaghan CLA 2006-10-18 02:48:39 EDT
Is this really happening on All platforms?

Please attach servicelog file (set logging level=DEBUG, type=Simple), as this may show the same problem reported in bug 159677.
Comment 3 Paul Slauenwhite CLA 2006-10-18 15:57:56 EDT
(In reply to comment #2)

We have seen this behavior on:

-Windows XP -> Windows XP 
-Windows XP -> Linux (x86)

Comment 4 Paul Slauenwhite CLA 2006-10-18 17:22:43 EDT
Created attachment 52274 [details]
Service log (Linux x86)
Comment 5 Paul Slauenwhite CLA 2006-10-18 17:23:11 EDT
Created attachment 52275 [details]
.log (Windows XP)
Comment 6 Karla Callaghan CLA 2006-10-24 12:58:11 EDT
Retarget to 4.4.  This is a blocker to the adoption of the new AC's backwards compatibility on Linux (125103).
Comment 7 Paul Slauenwhite CLA 2006-10-27 08:47:43 EDT
(In reply to comment #6)
> Retarget to 4.4.  This is a blocker to the adoption of the new AC's backwards
> compatibility on Linux (125103).

Karla/Kevin, we have seen this behaviour on Windows (XP -> XP) - see comment #3.  This should be fixed in 4.3 i3 
Comment 8 Kevin P O'Leary CLA 2006-10-27 11:35:11 EDT
I resolved a number of non-target specific issues when attempting to solve the linux security problems.

They dealt with some race condtions among the threads used for security. I believe they will resolve this issue on windows. 

When you say XP->XP ... I assume you mean that only the remote case is failing... I this the case? (I'm sure I have tested both cases in the past but its possible that the remote case was overlooked, since this is a case where only the first connect fails)

Comment 9 Paul Slauenwhite CLA 2006-10-27 11:52:34 EDT
(In reply to comment #8)

Yes, we have seen this behavior in the remote case between Windows XP -> Windows XP.
Comment 10 Kevin P O'Leary CLA 2006-10-27 12:47:31 EDT
I have been unable to get this to fail for the 1009 build. 
The test case I am using is remote profile using secure AC.

I am not doubting that you are seeing a failure... this just make verifying
my fixes problematic.
Comment 11 Paul Slauenwhite CLA 2006-10-27 13:04:22 EDT
Have you tried just the simple case - test connection?  It seemed to be consistent in the TPTP-4.3.0-200610160100 build.
Comment 12 Kevin P O'Leary CLA 2006-10-27 13:08:37 EDT

I did try "Test Connection" ... I did see a case where the very first connection seemed to fail... but I tried this with a number of new AC executable runs and I was not able to duplicate the failure. 
Comment 13 Kevin P O'Leary CLA 2006-10-27 13:45:38 EDT
Created attachment 52872 [details]
security fix


This attachment contains a zip file... the zip files contains 1 dll that I beleive will fix the security bug you are seeing.

Extract into AC/bin (WinXP only)
Comment 14 Paul Slauenwhite CLA 2006-10-27 15:11:04 EDT
(In reply to comment #13)
> Created an attachment (id=52872) [edit]
> security fix
> This attachment contains a zip file... the zip files contains 1 dll that I
> beleive will fix the security bug you are seeing.
> Extract into AC/bin (WinXP only)

So the IWAT0016E error message does not appear in the local scenario (Windows XP), however, I get the following exception when testing a connection using a fresh workspace:

java.lang.NullPointerException
	at org.eclipse.hyades.internal.execution.security.User.login(User.java:113)
	at org.eclipse.hyades.internal.execution.local.control.NodeImpl.authenticateUser(NodeImpl.java:512)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.authenticateUser(BaseConnectUtil.java:631)
	at org.eclipse.hyades.security.internal.util.ConnectUtilUI.promptAuthentication(ConnectUtilUI.java:146)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.promptAuthentication(BaseConnectUtil.java:256)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:240)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:538)
	at org.eclipse.hyades.security.internal.util.BaseConnectUtil.connect(BaseConnectUtil.java:199)
	at org.eclipse.hyades.trace.ui.HyadesUtil.testConnection(HyadesUtil.java:599)
	at org.eclipse.hyades.trace.ui.internal.core.TraceHostUI$1.run(TraceHostUI.java:576)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.hyades.trace.ui.internal.core.TraceHostUI.testConnection(TraceHostUI.java:502)
	at org.eclipse.hyades.trace.ui.internal.core.TraceHostUI.widgetSelected(TraceHostUI.java:743)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
	at org.eclipse.jface.window.Window.open(Window.java:796)
	at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)

Testing the connection again with the same user name and password works.

Comment 15 Paul Slauenwhite CLA 2006-10-27 15:12:26 EDT
(In reply to comment #14)

BTW, I was using the TPTP-4.3.0-200610240100 driver with the Agent Controller patched with your DLL.
Comment 16 Kevin P O'Leary CLA 2006-10-27 15:54:35 EDT
yes... I see that exception in my log file as well... I have done a number
of test connects... but yet only see a single exception... this must be from
the failure that I noted.

are you seeing consistent first connect failure?
Comment 17 Karla Callaghan CLA 2006-10-27 17:02:24 EDT
Resetting target to 4.3i3 as this issue is found on Windows.

Kevin - this bug is not on the list I sent for approval to the PMC list. Once a fix is found/confirmed we'll ask for approval.
Comment 18 Paul Slauenwhite CLA 2006-10-30 18:00:55 EST
(In reply to comment #16)
> yes... I see that exception in my log file as well... I have done a number
> of test connects... but yet only see a single exception... this must be from
> the failure that I noted.
> are you seeing consistent first connect failure?

Yes.
Comment 19 Kevin P O'Leary CLA 2006-10-31 11:39:14 EST
The fix I was suggesting for this bug is platform independent. 
For linux it removes the seg-fault, but there are still some new AC issues when security is enabled. When I use my fix I get by the seg-fault but threads produced quickly consume 100% of the CPU. Using the IBM jdk this causes a heap stack overflow. Jrockit does not have the heap overflow but the java threads seem to consuming an awful large amount of cycles considering they should nly being doing an accept on a socket. Again, we still have new AC security issues, I'm just trying to update the bug with what I have seen. This needs further investigation!

For windows I have only seen security fail once. (In many attempts)
Comment 20 Kevin P O'Leary CLA 2006-11-03 11:48:57 EST
Closing bug... I have not been able to reproduce this since I updated my fix.
Paul said to close the bug and he will verify the build and reopen if he has any issues.
Comment 21 Paul Slauenwhite CLA 2006-11-13 14:55:36 EST
Verified in TPTP-4.3.0-200611070100.

Closing.