Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349835 - New Remote Project gives NullPointerException (login problem?)
Summary: New Remote Project gives NullPointerException (login problem?)
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Remote Tools (show other bugs)
Version: 5.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Greg Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 11:14 EDT by Beth Tibbitts CLA
Modified: 2011-07-22 08:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Tibbitts CLA 2011-06-20 11:14:38 EDT
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3935)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3612)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
	at org.eclipse.ptp.remote.remotetools.ui.RemoteToolsUIConnectionManager.openConnectionWithProgress(RemoteToolsUIConnectionManager.java:155)
	at org.eclipse.ptp.rdt.ui.wizards.RemoteProjectContentsLocationArea.checkConnection(RemoteProjectContentsLocationArea.java:244)
	at org.eclipse.ptp.rdt.ui.wizards.RemoteProjectContentsLocationArea.access$8(RemoteProjectContentsLocationArea.java:241)
	at org.eclipse.ptp.rdt.ui.wizards.RemoteProjectContentsLocationArea$5.widgetSelected(RemoteProjectContentsLocationArea.java:443)

This is using epp-parallel RC5
PTP Version: 5.0.0.201106140904
CDT Version: 8.0.0.201106081058

This was talking to a machine that needed an ssh 2-node hop to get it. I was using port 2222 to do this. 
I think I have have inadvertently closed the command window that i did the hop command with;  and i also had some password problems
this morning so it may have been a wrong password.  Or both, together or separately.

Just one more error we should catch and tell the user something
Comment 1 Greg Watson CLA 2011-07-10 10:15:56 EDT
The trouble is that this is not where the NPE occurred, so it is impossible to know how to fix it. Do you have the stack trace of where it happened?
Comment 2 Roland Schulz CLA 2011-07-21 13:49:56 EDT
(In reply to comment #1)
> The trouble is that this is not where the NPE occurred, so it is impossible to
> know how to fix it. Do you have the stack trace of where it happened?

It seems to be the same NPE I just got when I entered the wrong Passcode:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
        at org.eclipse.swt.SWT.error(SWT.java:4282)
        at org.eclipse.swt.SWT.error(SWT.java:4197)
        at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:196)
        at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
        at org.eclipse.swt.widgets.Display.syncExec(Display.java:4683)
        at org.eclipse.ptp.remotetools.environment.generichost.core.AuthInfo$PromptSecret.prompt(AuthInfo.java:36)
        at org.eclipse.ptp.remotetools.environment.generichost.core.AuthInfo.promptPassphrase(AuthInfo.java:119)
        at org.eclipse.ptp.remotetools.internal.ssh.Connection$SSHUserInfo.promptPassphrase(Connection.java:112)
        at com.jcraft.jsch.UserAuthPublicKey.start(UserAuthPublicKey.java:120)
        at com.jcraft.jsch.Session.connect(Session.java:419)
        at com.jcraft.jsch.Session.connect(Session.java:150)
        at org.eclipse.jsch.internal.core.JSchProvider.connect(JSchProvider.java:87)
        at org.eclipse.ptp.remotetools.internal.ssh.Connection.connect(Connection.java:266)
        at org.eclipse.ptp.remotetools.environment.control.SSHTargetControl.connect(SSHTargetControl.java:188)
        at org.eclipse.ptp.remotetools.environment.control.SSHTargetControl.create(SSHTargetControl.java:90)
        at org.eclipse.ptp.remotetools.environment.generichost.core.TargetControl.create(TargetControl.java:98)
        at org.eclipse.ptp.remote.remotetools.core.RemoteToolsConnection.open(RemoteToolsConnection.java:414)
        at org.eclipse.ptp.rm.jaxb.control.JAXBResourceManagerControl.checkConnection(JAXBResourceManagerControl.java:120)
        at org.eclipse.ptp.rm.jaxb.control.JAXBResourceManagerControl.doConnect(JAXBResourceManagerControl.java:672)
        at org.eclipse.ptp.rm.jaxb.control.JAXBResourceManagerControl.doStartup(JAXBResourceManagerControl.java:523)
        at org.eclipse.ptp.rmsystem.AbstractResourceManagerControl.start(AbstractResourceManagerControl.java:158)
        at org.eclipse.ptp.rmsystem.AbstractResourceManager.doStartup(AbstractResourceManager.java:492)
        at org.eclipse.ptp.rm.lml_jaxb.core.LMLJAXBResourceManager.doStartup(LMLJAXBResourceManager.java:79)
        at org.eclipse.ptp.rmsystem.AbstractResourceManager.start(AbstractResourceManager.java:383)
        at org.eclipse.ptp.ui.actions.StartResourceManagersObjectActionDelegate$1.run(StartResourceManagersObjectActionDelegate.java:48)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Caused by: java.lang.NullPointerException
        at org.eclipse.ptp.remotetools.environment.generichost.ui.UserValidationDialog.createDialogArea(UserValidationDialog.java:125)
        at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
        at org.eclipse.ptp.remotetools.environment.generichost.ui.UserValidationDialog.create(UserValidationDialog.java:87)
        at org.eclipse.jface.window.Window.open(Window.java:790)
        at org.eclipse.ptp.remotetools.environment.generichost.core.AuthInfo$PromptSecret$1.run(AuthInfo.java:40)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
        at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
        at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
        at org.eclipse.ui.internal.progress.ProgressManager$5.run(ProgressManager.java:960)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
        at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
        at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
        at org.eclipse.ptp.ui.actions.StartResourceManagersObjectActionDelegate.run(StartResourceManagersObjectActionDelegate.java:58)
        at org.eclipse.ptp.ui.actions.AbstractResourceManagerSelectionActionDelegate.runWithEvent(AbstractResourceManagerSelectionActionDelegate.java:49)
        at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
 
It seems the KEYLOCK_ICON is missing in the EPP (I'm using the EPP updated to 5.0.1).
Comment 3 Beth Tibbitts CLA 2011-07-22 00:43:20 EDT
What is the KEYLOCK_ICON?  And where is it supposed to be?
Comment 4 Roland Schulz CLA 2011-07-22 01:00:38 EDT
(In reply to comment #3)
> What is the KEYLOCK_ICON?  And where is it supposed to be?

/org.eclipse.ptp.remotetools.environment.generichost/icons/full/wizban/keylock.gif

referenced by org.eclipse.ptp.remotetools.environment.generichost.ui.UserValidationDialog.KEYLOCK_ICON

I just checked. I really doesn't seem to be in the binary. I doubt it has something to do with the EPP.
Comment 5 Greg Watson CLA 2011-07-22 08:25:13 EDT
Fixed in ptp_5_0 and HEAD.