I am experimenting a very annoying issue using IntelliJ.
我正在用IntelliJ做一个非常烦人的实验。
I was working on my project (a webapp deployed on a local instance of BEA weblogic application server) and suddenly my PC crash and I restarted it.
我正在开发我的项目(一个部署在BEA weblogic应用服务器本地实例上的webapp),突然我的PC崩溃了,我重新启动了它。
Coming back to my project I obtained this error:
回到我的项目,我得到了这个错误:
Cannot convert project: C:\projects\Main\MyProject\workspace.xml: Error on line 1: Content is not allowed in prolog.
不能转换项目:C:\ \主要\ MyProject \工作区项目。xml:第1行错误:prolog中不允许有内容。
and looking inside the workspace.xml file of my project it contains something like it:
并查看工作空间。我项目的xml文件包含如下内容:
nulnulnulnulnul....
So, I delete it and I restart IntelliJ (I read onlyne that I have to do in this way) so IntelliJ create it and I can open my project again inside IntelliJ but now the problem is that I can't run it (the Run and Debug icons are disabled).
所以,我删除了它,然后重新启动IntelliJ(我读的只有ne,我必须这么做),IntelliJ创建了它,我可以在IntelliJ里面再次打开我的项目,但是现在的问题是我不能运行它(运行和调试图标被禁用)。
What could be the problem? and how can I try to solve this issue?
有什么问题呢?我该如何解决这个问题呢?
Tnx
Tnx
2 个解决方案
#1
17
I experienced the same error. I deleted the workspace.xml and started 'Invalid Caches/Restart" under "File". Then I had to recreate my Run/Debug Configuration. Then everything works like before.
我也经历过同样的错误。我删除工作区。并在“文件”下启动“无效缓存/重新启动”。然后我必须重新创建运行/调试配置。然后一切都像以前一样。
#2
1
I experienced same problem.you can solve it by deleting ant.xml, then everything will be fine.
我经历过同样的问题。你可以通过删除ant来解决它。然后,一切都会好起来。
#1
17
I experienced the same error. I deleted the workspace.xml and started 'Invalid Caches/Restart" under "File". Then I had to recreate my Run/Debug Configuration. Then everything works like before.
我也经历过同样的错误。我删除工作区。并在“文件”下启动“无效缓存/重新启动”。然后我必须重新创建运行/调试配置。然后一切都像以前一样。
#2
1
I experienced same problem.you can solve it by deleting ant.xml, then everything will be fine.
我经历过同样的问题。你可以通过删除ant来解决它。然后,一切都会好起来。