Team Explorer Everywhere:无法执行 HistoryAction。 java.lang.NullPointerException
Posted
技术标签:
【中文标题】Team Explorer Everywhere:无法执行 HistoryAction。 java.lang.NullPointerException【英文标题】:Team Explorer Everywhere: Could not execute HistoryAction. java.lang.NullPointerException 【发布时间】:2019-06-09 14:19:27 【问题描述】:每次我尝试从任何分支和文件执行“查看历史记录”选项时都会出错。
https://i.stack.imgur.com/lA5Jc.png
“无法执行 HistoryAction”
我尝试重新安装 TEE 和 Eclipse,删除插件缓存,更改 eclipse.ini 配置文件中的默认超时,重新映射和创建工作区......但是任何这些操作都有效。
这是日志:
2019-01-15 13:25:00,024 INFO [main] (com.microsoft.tfs.core.telemetry.TfsTelemetryHelper) Plugin for Eclipse v.14.134.0.201804261732
2019-01-15 13:25:00,024 INFO [main] (com.microsoft.tfs.core.telemetry.TfsTelemetryHelper) AppInsights telemetry initialized
2019-01-15 13:25:00,024 INFO [main] (com.microsoft.tfs.core.telemetry.TfsTelemetryHelper) Developer Mode: false
2019-01-15 13:25:00,024 INFO [main] (com.microsoft.tfs.core.telemetry.TfsTelemetryHelper) Production Environment: true
2019-01-15 13:25:00,334 INFO [Worker-2: Connecting to Team Foundation Server] (com.microsoft.tfs.client.eclipse.project.ProjectRepositoryManager) Starting TFS repository manager
2019-01-15 13:25:00,433 INFO [Worker-3: Connecting to Server] (com.microsoft.tfs.client.common.ui.autoconnect.UIAutoConnector) Auto connecting to the previously used server: https://myClientTfsUrl.com/tfs
2019-01-15 13:25:01,526 INFO [Worker-3: Connecting to Server] (com.microsoft.tfs.client.common.ui.commands.ConnectToDefaultRepositoryCommand) Connecting to server
2019-01-15 13:25:01,636 INFO [CancellableCommandThread-41] (com.microsoft.tfs.client.common.ui.commands.ConnectToConfigurationServerCommand) Connecting to server
2019-01-15 13:25:01,638 INFO [CancellableCommandThread-41] (com.microsoft.tfs.client.common.ui.commands.ConnectToConfigurationServerCommand) Connecting to https://myClientTfsUrl.com/tfs as myTfsUser
2019-01-15 13:25:01,691 INFO [CancellableCommandThread-41] (com.microsoft.tfs.core.config.httpclient.DefaultHTTPClientFactory) HttpClient configured for https://myClientTfsUrl.com/tfs, authenticating as myTfsUser
2019-01-15 13:25:02,036 INFO [CancellableCommandThread-41] (com.microsoft.tfs.jni.loader.NativeLoader) Loaded native_auth with System.loadLibrary()
2019-01-15 13:25:02,038 INFO [CancellableCommandThread-41] (com.microsoft.tfs.jni.natives.NativeAuthMethods) Loaded GSSAPI library: libgssapi_krb5.dylib
2019-01-15 13:25:02,054 WARN [CancellableCommandThread-41] (com.microsoft.tfs.jni.natives.NativeAuthMethods) Could not get principal for kerberos 5 credentials (No credentials cache file found)
2019-01-15 13:25:02,055 WARN [CancellableCommandThread-41] (com.microsoft.tfs.jni.natives.NativeAuthMethods) Could not get principal for kerberos 5 credentials (No credentials cache file found)
2019-01-15 13:25:02,290 INFO [CancellableCommandThread-41] (com.microsoft.tfs.client.common.ui.commands.GetDefaultProjectCollectionCommand) Opening default Team Project Collection
2019-01-15 13:25:02,342 INFO [Build Status Manager] (com.microsoft.tfs.client.common.server.cache.buildstatus.BuildStatusManager$BuildStatusManagerRefreshWorker) Starting build status refresh worker
2019-01-15 13:25:02,392 INFO [CancellableCommandThread-41] (com.microsoft.tfs.client.common.ui.commands.GetDefaultWorkspaceCommand) Opening workspace for myTfsUrl.com
2019-01-15 13:25:03,170 INFO [CancellableCommandThread-41] (com.microsoft.tfs.jni.loader.NativeLoader) Loaded native_filesystem with System.loadLibrary()
2019-01-15 13:25:03,194 INFO [Worker-6: Querying Team Projects] (com.microsoft.tfs.client.common.commands.QueryTeamProjectsCommand) Querying Team Projects
2019-01-15 13:25:03,195 INFO [Worker-0: Querying Team Projects] (com.microsoft.tfs.client.common.commands.QueryTeamProjectsCommand) Querying Team Projects
2019-01-15 13:25:03,196 INFO [Worker-4: Querying Team Projects] (com.microsoft.tfs.client.common.commands.QueryTeamProjectsCommand) Querying Team Projects
2019-01-15 13:25:03,362 INFO [Worker-6: Querying Team Projects] (com.microsoft.tfs.core.clients.framework.configuration.internal.TFSEntitySessionFactory) Creating catalog-based configuration entity session for https://myClientTfsUrl.com/tfs/something/
2019-01-15 13:25:03,792 INFO [Worker-7: Querying Teams] (com.microsoft.tfs.client.common.commands.QueryTeamsCommand) Querying Teams
2019-01-15 13:25:07,960 INFO [Worker-8: Querying Teams] (com.microsoft.tfs.client.common.commands.QueryTeamsCommand) Querying Teams
2019-01-15 13:25:08,060 INFO [Worker-11: Querying Teams] (com.microsoft.tfs.client.common.commands.QueryTeamsCommand) Querying Teams
2019-01-15 13:25:09,719 INFO [Worker-4: Initializing TFVC Source Control Explorer] (com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor$VersionControlEditorInitializeCommand) Initializing TFVC Source Control Explorer
2019-01-15 13:25:22,096 ERROR [main] (com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.actions.HistoryAction) Error running HistoryAction
java.lang.NullPointerException
at com.microsoft.tfs.client.common.ui.tasks.vc.ViewHistoryTask.run(ViewHistoryTask.java:61)
at com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.actions.HistoryAction.doRun(HistoryAction.java:40)
at com.microsoft.tfs.client.common.ui.framework.action.ExtendedAction.run(ExtendedAction.java:58)
at com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.actions.TeamViewerAction.runWithEvent(TeamViewerAction.java:166)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:240)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:568)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4319)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4143)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3760)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
2019-01-15 13:25:38,437 ERROR [main] (com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.actions.HistoryAction) Error running HistoryAction
java.lang.NullPointerException
at com.microsoft.tfs.client.common.ui.tasks.vc.ViewHistoryTask.run(ViewHistoryTask.java:61)
at com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.actions.HistoryAction.doRun(HistoryAction.java:40)
at com.microsoft.tfs.client.common.ui.framework.action.ExtendedAction.run(ExtendedAction.java:58)
at com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.actions.TeamViewerAction.runWithEvent(TeamViewerAction.java:166)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:240)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:568)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4319)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4143)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3760)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
【问题讨论】:
看起来像 Microsoftcom.microsoft.tfs.client.common.ui.tasks.vc.ViewHistoryTask
类中的错误。可能只有 Microsoft 可以告诉您有关此的任何信息。
我的同事可以用他的 Mac 执行此操作而不会出错,所以我认为问题不在于 com.microsoft.tfs.client.common.ui.tasks.vc.ViewHistoryTask
您的同事使用的是早期版本的 Eclipse 吗?
【参考方案1】:
我需要查看您的platform.log
才能确定,但我怀疑您也遇到了bug 290,这是由于删除了已弃用的 SWT 小部件而导致的。根本原因是HistoryTreeControl
使用了TableTreeViewer
,该TableTreeViewer
已被弃用,最终removed in Eclipse 4.10。
遗憾的是,目前,我鼓励您降级 Eclipse、对 that issue 投票、在网络上查看历史记录或这些选项的某种组合。
【讨论】:
我已将 Eclipse 从版本 4.10.0 降级到 4.7.2,现在 Team Explorer Everywhere 工作正常。非常感谢!!!以上是关于Team Explorer Everywhere:无法执行 HistoryAction。 java.lang.NullPointerException的主要内容,如果未能解决你的问题,请参考以下文章
使用 Team Explorer Everywhere 2010 SP1 从 Eclipse 连接到 TFS 2010:拒绝访问
VS 2017 Team Explorer - 没有可用的存储库