linux - 使用双因素身份验证在 Linux 上尝试 "Sign in to Google"时 Eclipse 崩溃

标签 linux eclipse google-app-engine google-eclipse-plugin

首先,如果 StackOverflow 是这个问题的错误问答网站,我深表歉意,如果需要,我很乐意将其移至另一个网站...

每当我尝试在插件(eclipse 左下角的链接)中登录我的 Google 帐户时,Eclipse 就会崩溃。我可以输入我的电子邮件和密码,然后它会加载我的验证码页面(因为我使用 Google's two-factor authentication )。在我提交验证码后,eclipse 完全崩溃并从我的桌面上消失了。

有什么想法吗?

环境:全新安装以下内容:

  1. 薄荷Linux 13
  2. 我在我的 Google(应用程序)帐户上启用了双因素身份验证。
  3. eclipse 靛蓝
  4. 谷歌 eclipse 插件

更新 - 2012/06/27 这是控制台中的输出:

$ eclipse
12:26:50.336 [org.eclipse.jdt.internal.ui.text.JavaReconciler] INFO  org.mortbay.log - Logging to Logger[org.mortbay.log] via org.mortbay.log.Slf4jLog
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x00b16e62, pid=3853, tid=3077970176
#
# JRE version: 6.0_24-b24
# Java VM: OpenJDK Client VM (20.0-b12 mixed mode, sharing linux-x86 )
# Derivative: IcedTea6 1.11.1
# Distribution: Ubuntu 12.04 LTS, package 6b24-1.11.1-4ubuntu3
# Problematic frame:
# C  0x00b16e62
#
# An error report file with more information is saved as:
# /home/matt/gitrepos/OddPrints/hs_err_pid3853.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)

或者如果您真的热衷于 full log is here .

更新 - 2012/06/28

正如@jpe 所建议的,我尝试将 eclipse 配置中的默认浏览器更新为“mozilla”。这只是引发了一个错误,说它无法启动浏览器,所以要在外部启动一个浏览器供我登录。还给了我一个输入验证码的框。我这样做了,但在输入验证码后,它以错误 400 轰炸了。这是 eclipse 日志的尾部:

!ENTRY com.google.gdt.eclipse.login 4 0 2012-06-28 14:53:36.043
!MESSAGE Could not sign in. Make sure that you entered the correct verification code.
!STACK 0
com.google.api.client.http.HttpResponseException: 400 Bad Request
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:380)
    at com.google.api.client.auth.oauth2.draft10.AccessTokenRequest.executeUnparsed(AccessTokenRequest.java:457)
    at com.google.api.client.auth.oauth2.draft10.AccessTokenRequest.execute(AccessTokenRequest.java:473)
    at com.google.gdt.eclipse.login.GoogleLogin.logIn(GoogleLogin.java:376)
    at com.google.gdt.eclipse.login.GoogleLogin.logIn(GoogleLogin.java:312)
    at com.google.gdt.eclipse.login.ui.LoginTrimContribution$1.mouseUp(LoginTrimContribution.java:102)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:219)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

最佳答案

在我看来,您偶然发现了 Incompatibility between WebKit and XULRunner's sqlite Eclipse bug .错误报告中的引述:“确保不会发生此错误的唯一方法是 set the org.eclipse.swt.browser.DefaultType property。”

所以上面修复了 Eclipse 崩溃,正如问题编辑所暗示的那样。现在您似乎偶然发现了 Google App Engine 问题,也许是这个 one .人们说,如果您的计算机中的时间明显不准确,appengine 将拒绝登录。

如果您可以使用计算机上的其他方法测试您尝试从 Eclipse 登录,将会有所帮助。

关于linux - 使用双因素身份验证在 Linux 上尝试 "Sign in to Google"时 Eclipse 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11079339/

相关文章:

java - Maven 3项目间依赖与war打包

java - 在 Eclipse 中重新导入工作集

Linux/Bash - 删除每 2 次出现的 "^[[ "字符之间的文本

linux - 在 Linux 中批量拟合图像(例如 GIMP)

android - ndk-build 不断重建所有源

python - 在 appengine 中使用较少的数据存储小操作

python - GAE Python - PyCrypto - 没有名为 winrandom 的模块

google-app-engine - 在 Appengine 数据存储上查询 N 条随机记录

linux - CHMOD 设置隐藏目录

linux - 使用 grep 或 awk 搜索文本并将其打印到文件中