我如何调试在重新定位 ClearCase 视图时出现的 java.lang.illegalStateException?

How do I debug a java.lang.illegalStateException that occurs when rebasing a ClearCase view?

背景

上周我一直在尝试为我的项目重新设置 clearcase 视图的基线,但每次尝试时我都会遇到一个奇怪的 null 异常,如下面的两个 windows 所示: 我不知道为什么会发生这种情况,需要帮助确定如何开始解决这个问题。

到目前为止,这是我尝试过的:

  1. 正在重启客户端
  2. 正在重启我的电脑
  3. 正在刷新视图并更新。
  4. 正在更新我的 eclipse 环境。

我也看到了针对类似问题的 IBM website 修复,但我的 Clearteam Explorer 版本远远超出了它规定的修复版本:

When you are trying to login with the IBM Rational ClearTeam Explorer (CTE) version 8.0.1.11 and later with the Eclipse plugin, you may receive the following error: CRMAP7009: Command "Login" failed: Error: "java.lang.IllegalStateException: null"

This behavior does not occur with CTE 8.0.1.10 with the Eclipse plugin or with the standalone CTE 8.0.1.11 client. It only occurs using the Sun JRE 6, not when using the IBM JRE 6.

我的 clearteam explorer 版本是 9.0.2:

问题

我还可以采取哪些其他措施来解决上述空指针问题?

在那种情况下,我总是尝试回到命令行,在你的情况下使用 cleartool rebase
参见“Rebase a stream on linux using cleartool" (the same idea applies on Windows), and "”。

这样,我就可以查看问题出在 ClearCase 本身还是 Eclipse ClearCase 插件上。

好吧,你会讨厌这个,但我唯一能做的就是提出问题并向你指出 IBM/HCL 支持。

  1. 这是基于网络的视图吗?快照视图?动态视图?
  2. 新视图有效吗?
  3. CTE 工作区日志中是否有任何错误? (%USERPROFILE%.Rational\CTE8\workspace.log)
  4. 这是Eclipse安装的CTE插件吗?还是 CTE“完整”客户端?这重要吗?
  5. 您是否尝试过使用命令行界面(cleartool/rcleartool 视情况而定)
  6. 调试模式下的 运行 是否告诉我们任何其他信息? (请参阅 https://www.ibm.com/support/pages/how-enable-trace-ccrc-client-and-server)请注意,在 windows 上,CTE/eclipse 将生成一个单独的控制台 window 以打印一些可能重要也可能不重要的 eclipse 诊断输出。您需要在退出会话之前捕获它。
  7. 如果这是基于网络的视图,有人检查过 WAN 服务器日志吗?

CRMAP7009 是 CTE 的“包罗万象”消息,但由于这是一条异常消息,因此应该在 SOMEWHERE 上对其进行扩展。找到邮件的其余部分就成功了一半。