简体   繁体   English

带有授权的Eclipse插件错误

[英]Eclipse Plug-In Error with Authorization

I am using the Google Calendar API and everything worked fine in an Eclipse stand-alone Java-Project . 我正在使用Google Calendar API,并且在Eclipse独立Java项目中一切正常 Now I wanted to add (the very same) code to my Eclipse Plug-in. 现在,我想将(非常相同的)代码添加到我的Eclipse插件中。 Unfortunately, I now have the problem, that the authentication with the Google API doesn't work properly anymore . 不幸的是,我现在遇到的问题是,使用Google API进行的身份验证已无法正常进行 After AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize("user"); 经过AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize("user"); the browser starts the authentication-process where I can click "Authenticate" after that the browser does something I don't know (infinite loading) and stops only if i cancle the programme. 浏览器将启动身份验证过程,在该过程中,我可以单击“身份验证”,然后浏览器会执行我不知道的操作(无限加载),并且仅在我取消程序后才停止。 In the Eclipse console, I get the following error: 在Eclipse控制台中,出现以下错误:

!MESSAGE While loading class "org.mortbay.jetty.RetryRequest", thread "Thread[349166459@qtp-300209212-1 - Acceptor0 SocketConnector@localhost:18312,5,main]" timed out waiting (5005ms) for thread "Thread[main,6,main]" to finish starting bundle "myproject.version.qualifier [896]". To avoid deadlock, thread "Thread[349166459@qtp-300209212-1 - Acceptor0 SocketConnector@localhost:18312,5,main]" is proceeding but "org.mortbay.jetty.RetryRequest" may not be fully initialized.

I don't know what this error means and what I can do. 我不知道此错误意味着什么,我可以做什么。 Thanks for your help! 谢谢你的帮助!

casaout 酒馆

PS: I have the working sample (only in a normal Eclipse project, NOT in an eclipse plug-in project) from here . PS:我从这里获得了工作示例(仅在普通的Eclipse项目中,而在eclipse插件项目中则没有)。

幸运的是,我找到了解决此问题的方法(错误?)...我刚刚创建了一个新的(片段)项目,并在该项目(而不是插件项目)中进行了授权,现在,相同的代码可以在其中工作! ...很奇怪,但是行得通...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM