google-cloud-eclipse icon indicating copy to clipboard operation
google-cloud-eclipse copied to clipboard

error after upgrading eclipse

Open Rob46 opened this issue 3 years ago • 9 comments

After upgrading eclipse I am getting this error and don't know how to resolve it:

An internal error occurred during: "Initializing Java Tooling". Cannot invoke "com.google.cloud.tools.eclipse.appengine.libraries.persistence.LibraryClasspathContainerSerializer.loadContainer(org.eclipse.jdt.core.IJavaProject, org.eclipse.core.runtime.IPath)" because "this.serializer" is null

  • Cloud Tools for Eclipse version: 1.8.5.202108061424
  • Google Cloud SDK version: 366.0.0 (non-managed)
  • Eclipse version: 4.22.0.v20211124-1800
  • OS: Windows 10 10.0
  • Java version: 17

What did you do?

What did you expect to see?

What did you see instead?

Rob46 avatar Dec 11 '21 18:12 Rob46

Eclipse 2021-12 has this problem. Rolling back to Eclipse 2021-09 fixes it (obviously not ideal).

craigmit avatar Dec 12 '21 00:12 craigmit

@Rob46 and @craigmit, Thank you for reporting and adding extra info, we'll investigate more into this.

zhumin8 avatar Dec 13 '21 23:12 zhumin8

Any news or other workaround except rolling back to Eclipse 2021-09?

With this error it is impossible to even open an existing project.

vbresan avatar Jan 13 '22 08:01 vbresan

The following worked fine for me:

Eclipse Version: 2021-12 (4.22) Build id: I20211124-1800 Google Cloud Platform for Eclipse 1.8.5.202108061424 Google Cloud SDK 368.0.0

If I install Eclipse m2e - Maven support in Eclipse IDE (from the Eclipse Marketplace) then I do get the reported error that ... An internal error occurred during: "Initializing Java Tooling". Cannot invoke "com.google.cloud.tools.eclipse.appengine.libraries.persistence.LibraryClasspathContainerSerializer.loadContainer(org.eclipse.jdt.core.IJavaProject, org.eclipse.core.runtime.IPath)" because "this.serializer" is null

Shawn-in-Tokyo avatar Jan 14 '22 00:01 Shawn-in-Tokyo

Unfortunately I can not uninstall m2e as Google Cloud Platform plugin depends on it. Perhaps GCP is not compatible with the latest version of m2e?

Clipboard01

vbresan avatar Jan 14 '22 10:01 vbresan

Please use Eclipse 2021-09 while we are working on #3661. If anyone can help fixing failures in #3661, we'd greatly appreciate it.

chanseokoh avatar Jan 14 '22 15:01 chanseokoh

Unfortunately I can not uninstall m2e as Google Cloud Platform plugin depends on it. Perhaps GCP is not compatible with the latest version of m2e?

Clipboard01

Eclipse EE 2021-12 will add in M2E 1.19 which is the problem. An Eclipse install of 2021-12 and then the Google Cloud Platform for Eclipse 1.8.5. will use M2E 1.18.1.20210618-2246 which works fine.

Then you can install Git, Mylyn, Eclipse Java EE Developer Tools etc to get the EE functionality. Just don't update M2E.

Shawn-in-Tokyo avatar Jan 14 '22 19:01 Shawn-in-Tokyo

@briandealwis M2E 1.19 causing the failure while 1.18.1 is OK is an integrating report.

chanseokoh avatar Jan 14 '22 19:01 chanseokoh

I can confirm that the plugin is not working with eclipse 2022-03.

vbresan avatar Apr 19 '22 06:04 vbresan