Upgrade to 2024-06 unable to read workspace [message #1867050] |
Thu, 13 June 2024 03:14 |
Mike Benson Messages: 2 Registered: November 2021 |
Junior Member |
|
|
I tried to do an inplace upgrade to 2024-06, on Windows. I got a prompt box that the workspace was created under an older version of Eclipse, and selected to upgrade the workspace.
Eclipse now will not start, but I do not understand where the error is coming from. Can anyone help?
It seems org.eclipse.core is unable to read the project locations. There are two possible problems with the path, that I can see:
1. The user home directory is missing a backslash (C:\Users\Kambe appears in the log as /C:/UsersKambe)
2. There are two spaces on the end of the path (which aren't there in the path in the file system), which appears to be the origin of the illegal character exception.
This is the start of the log (C:\Users\Kambe\workspace\.metdata\.log)
!SESSION 2024-06-13 11:43:57.961 -----------------------------------------------
eclipse.buildId=4.32.0.I20240601-0610
java.version=21.0.3
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_AU
Command-line arguments: -os win32 -ws win32 -arch x86_64
This is a continuation of log file C:\Users\Kambe\workspace\.metadata\.bak_0.log
Created Time: 2024-06-13 11:44:15.480
!ENTRY org.eclipse.core.resources 4 567 2024-06-13 11:44:15.482
!MESSAGE Could not read the project location for 'asn1crypto'.
!STACK 0
java.lang.IllegalArgumentException: Illegal character in path at index 48: file:/C:/UsersKambe/workspace/CodeGit/asn1crypto
at java.base/java.net.URI.create(URI.java:932)
at org.eclipse.core.internal.resources.LocalMetaArea.readPrivateDescription(LocalMetaArea.java:367)
at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:969)
at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:934)
at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:790)
at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1616)
at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2618)
at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:2319)
at org.eclipse.core.resources.ResourcesPlugin$WorkspaceInitCustomizer.addingService(ResourcesPlugin.java:571)
at org.eclipse.core.resources.ResourcesPlugin$WorkspaceInitCustomizer.addingService(ResourcesPlugin.java:1)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:947)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:257)
at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:324)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:267)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:545)
at org.eclipse.osgi.internal.framework.BundleContextImpl$2.run(BundleContextImpl.java:833)
at org.eclipse.osgi.internal.framework.BundleContextImpl$2.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:825)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:775)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1057)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:387)
at org.eclipse.osgi.container.Module.doStart(Module.java:639)
at org.eclipse.osgi.container.Module.start(Module.java:498)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:528)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:620)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:348)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:414)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:41)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:516)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:434)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:174)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:153)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
Caused by: java.net.URISyntaxException: Illegal character in path at index 48: file:/C:/UsersKambe/workspace/CodeGit/asn1crypto
at java.base/java.net.URI$Parser.fail(URI.java:2995)
at java.base/java.net.URI$Parser.checkChars(URI.java:3166)
at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3248)
at java.base/java.net.URI$Parser.parse(URI.java:3196)
at java.base/java.net.URI.<init>(URI.java:645)
at java.base/java.net.URI.create(URI.java:930)
... 46 more
-
Attachment: .log
(Size: 724.80KB, Downloaded 30 times)
[Updated on: Thu, 13 June 2024 03:20] Report message to a moderator
|
|
|
Re: Upgrade to 2024-06 unable to read workspace [message #1867053 is a reply to message #1867050] |
Thu, 13 June 2024 07:07 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Yes, the URI has a trailing space and of course a space is not allowed in a URI and in fact a trailing space is not allowed in a file system file name either.
The question is, from where do these values come?
When I debug through such logic it comes up with this path as the location for a project's metadata:
D:/Users/merks/platform-sdk-4.31/runtime-workspace-swt-api/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.location
Then it reads the data from the .location file and comes back with this:
URI//file:/D:/Users/merks/platform-sdk-4.31/runtime-workspace-swt-api/.metadata/.plugins/org.eclipse.egit.core/.org.eclipse.egit.core.cmp
In your case that value must be a bad value.
So probably deleting that .location file of that project will help get the workspace up and running again.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.07659 seconds