Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356731 - After changing Documents location path in registry I can't start Workspace
Summary: After changing Documents location path in registry I can't start Workspace
Status: CLOSED DUPLICATE of bug 149121
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-05 08:58 EDT by Beooo CLA
Modified: 2011-09-06 10:23 EDT (History)
2 users (show)

See Also:


Attachments
From workspace\.metadata\.log (3.67 KB, text/plain)
2011-09-05 09:03 EDT, Beooo CLA
no flags Details
bak_0.log as requested by Remy Suen (10.39 KB, patch)
2011-09-06 03:24 EDT, Beooo CLA
no flags Details | Diff
how my workspace stopped running (700.74 KB, application/octet-stream)
2011-09-06 10:23 EDT, Beooo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Beooo CLA 2011-09-05 08:58:10 EDT
Build Identifier: I20110613-1736

We have a remote place to save our documents (like on NAS). It is mapped as Drive X: to path \\fileserver\x\<username>\(Documents)
For an Adobe Update it was invalid to have documents on virtual drive X, so i changed it in the registry to UNC:
•HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders 
•HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders 

After reboot I try to start eclipse with default workspace and it reports this:
"An error has occurred. See the log file X:\Documents\Martins Workspace\.metadata\.log."

I'll post log after submitting this. Most important line in this log is:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalStateException: startLine (66) does not match endLine (65))

Even if I change the Documentpath in the windows registry it doesn't work anymore.

Reproducible: Always

Steps to Reproduce:
1. move Windows "myDocumentes" folder to a remote folder and map it as a virtual drive (X:), 
2. use a folder inside of it as Workspace.
3. change Registrykeys to UNC Paths and reboot
4. try to reopen your workspace
Comment 1 Beooo CLA 2011-09-05 09:03:30 EDT
Created attachment 202751 [details]
From workspace\.metadata\.log
Comment 2 Remy Suen CLA 2011-09-05 10:40:56 EDT
What is in the .bak_0.log log file?
Comment 3 Beooo CLA 2011-09-06 03:24:36 EDT
Created attachment 202781 [details]
bak_0.log as requested by Remy Suen

bak_0.log as requested - but only first errors - others were repetetive so I copy&paste it out to another file.
if requested, i can attach the whole file.
Comment 4 Beooo CLA 2011-09-06 03:30:21 EDT
Comment on attachment 202781 [details]
bak_0.log as requested by Remy Suen

.metadata\.plugins\org.eclipse.pde.core\OSGi Framework

I took the .bak_0.log from there
Comment 5 Beooo CLA 2011-09-06 03:38:33 EDT
there was no .bak_0.log in workspace\.metadata
Comment 6 Beooo CLA 2011-09-06 08:15:05 EDT
sorry for wassting your time - 
I copied wrong log file - 
I close this request and open a new clean one.

right log looks like this:

!SESSION 2011-09-06 14:03:00.062 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_AT
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.core.resources 2 10035 2011-09-06 14:03:19.157
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.osgi 4 0 2011-09-06 14:03:20.574
!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (76).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
Comment 7 Beooo CLA 2011-09-06 10:21:56 EDT
I made a copy of my workspace - after that it stopped working.
Specialities: I have my workspace on a virtual drive X: connected to a network-folder. One of my Projects has a different location - instead of the virtual drive it's localy saved in a personal folder (C:\users\user\workspace\project)

I have changed on the same day the location of my personal documents, where my workspace is placed. Normally my Windows "documents" are on the virtual drive - I changed the registry to the network path.

After trying to start eclipse with deleted .snap file it wasn't showing any projects anymore.

SOLUTION:
I copied the backuped folder from local disc to the network location and it's working again.

*** This bug has been marked as a duplicate of bug 149121 ***
Comment 8 Beooo CLA 2011-09-06 10:23:05 EDT
Created attachment 202806 [details]
how my workspace stopped running