eclipse 服务器发送意外返回值(405 Method Not Allowed)以响应 OPTIONS 请求
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8231171/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request
提问by Irene
I have a project on Google Code, and I am using SVN.
我有一个关于 Google Code 的项目,我正在使用 SVN。
Everything was working fine with that project in Eclipse.
在 Eclipse 中,该项目一切正常。
But today I created new project in Google Code. And when trying to add my project from Eclipse to the Google repository which I created it gives an error.
但是今天我在 Google Code 中创建了新项目。当尝试将我的项目从 Eclipse 添加到我创建的 Google 存储库时,会出现错误。
The error in the Eclipse console is:
Eclipse 控制台中的错误是:
svn: Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request for 'https://code.google.com/............'
svn:服务器发送了意外的返回值(405 Method Not Allowed)以响应“ https://code.google.com/……”的OPTIONS 请求
Eclipse shows this when committing:
Eclipse 在提交时显示:
org.apache.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/a5a68afd-6b33-2247-9d70-58e42b6f6f4b'
org.apache.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/a5a68afd-6b33-2247-9d70-58e42b6f6f4b'
回答by Xorsat
Verify that the Google Code URL has the HTTPSprotocol and if you are using Subclipse, change to the svnkit library.
验证 Google 代码 URL 是否具有HTTPS协议,如果您使用的是 Subclipse,请更改为svnkit 库。
回答by masarapmabuhay
I was able to solve this issue by doing what Xorsat said, i.e. check if the Google Code URL is using HTTPS. However, I did not have to change anything regarding the svnkit library; I'm using the default settings of Subclipse, where I installed both Subclipse and the SVNKit plugins in Eclipse.
我能够通过执行 Xorsat 所说的操作来解决这个问题,即检查 Google 代码 URL 是否使用HTTPS。但是,我不必更改有关svnkit 库的任何内容;我正在使用Subclipse的默认设置,我在 Eclipse 中安装了 Subclipse 和 SVNKit 插件。
How do I check if I'm using HTTPS?
如何检查我是否使用HTTPS?
- Right click the project
- Go to Properties→ Subversion
- 右键单击项目
- 转到属性→ Subversion
Your URLand Repository Rootshould be using https.
您的URL和Repository Root应该使用https。
If you're not using https, you must import the project from Google Code again. How?
如果您不使用https,则必须再次从 Google Code 导入项目。如何?
- In Eclipse 4.2 (Juno), menu File→ Import...
- SVN → Checkout Projects from SVN, press Next
- Check Create a new repository location, press Next
- In the URL field, copy-paste the URLfrom Google Code; make sure it's using https.
- Select the trunk directory, press Next >
- Unless you're sure what you're doing, keep to the default settings, press Next >
- Press Finish.
- 在 Eclipse 4.2 (Juno) 中,菜单文件→导入...
- SVN → Checkout Projects from SVN,按Next
- 选中Create a new repository location,按Next
- 在 URL 字段中,从 Google Code 中复制粘贴URL;确保它使用https。
- 选择中继目录,按 Next >
- 除非您确定自己在做什么,否则请保持默认设置,按 Next >
- 按Finish。
You should now be able to Team→ Commit...your project! Take note, it'll ask you for your username and googlecode.com password (generated in Google Code Project -> Source).
您现在应该可以团队→提交...您的项目!请注意,它会询问您的用户名和 googlecode.com 密码(在 Google Code Project -> Source 中生成)。
I hope this helps!
我希望这有帮助!
回答by Jabda
For anyone that navigates to this page. I got this error and it turned out that the username for the repository was case sensitive in Eclipse. Typing in the exact correct username solved the issue for me. Hope it helps someone else
对于导航到此页面的任何人。我收到此错误,结果发现存储库的用户名在 Eclipse 中区分大小写。输入完全正确的用户名为我解决了这个问题。希望它能帮助别人
回答by Ismail Sahin
Here is a solution: http://www.svnforum.org/threads/35661-Problems-committing-(405-Method-not-allowed)
这是一个解决方案:http: //www.svnforum.org/threads/35661-Problems-committing-(405-Method-not-allowed)
I tried to drag and drop my file using the repository browser instead of importing the file and it worked for me. By the way I was using TortoiseSVN.
我尝试使用存储库浏览器拖放我的文件而不是导入文件,它对我有用。顺便说一下,我使用的是TortoiseSVN。
回答by nanosoft
For me NONE of the previous worked and will not work ever now. The reason is that Google has deprecated Google Code and will discontinue this service.
对我来说,以前没有任何工作,现在也不会工作。原因是谷歌已经弃用了谷歌代码并将停止这项服务。
It has marked all the projects as "Read ONLY". So you see now why no commits can be made as a repository is READ-ONLY and archived. Go to the Google Code and browse your repository/project, and it will show below message:
它已将所有项目标记为“只读”。因此,您现在明白为什么不能进行提交,因为存储库是只读且已存档的。转到 Google Code 并浏览您的存储库/项目,它将显示以下消息:
READ-ONLY: This project has been archived. For more information see this post.
只读:此项目已存档。有关更多信息,请参阅此帖子。
回答by camelCaseCoder
I faced this issue only to find that my organization's local SVN server was unreachable. May be helpful to some one.
我遇到这个问题只是发现我组织的本地 SVN 服务器无法访问。可能对某人有帮助。