Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 492846

Summary: Got 500 (Unexpected token .) errors when reloading a page in orion.eclipse.org.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: NodeAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Carolyn_MacLeod, curtis.windatt.public, mamacdon, Michael_Rennie
Version: 12.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/73963
https://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=fe0301a6c9d093931784143c25a59f6174d98d57
Whiteboard:

Description libing wang CLA 2016-05-02 15:30:22 EDT
When I reload the edit page in orion.eclipse.org, I got the following errors in the browser's debug tool.

xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/plugins 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/cm/configurations 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/KeyBindings 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/themes 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/deploy/project 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/inlineSearchPane 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/problemsView 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/themes 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/editor/settings 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/common-nav 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/edit/outline 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/edit/outline 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/general/settings 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
xhr.js:175 GET http://libing.orion.eclipse.org:9000/prefs/user/edit/outline 500 (Unexpected token .)_xhr @ xhr.js:175PreferencesProvider.get @ preferencesPlugin.js:19_callMethod @ plugin.js:273_handleMessage @ plugin.js:326
Comment 1 libing wang CLA 2016-05-02 15:33:28 EDT
Noticed in my /.orion/prefs.json file, there is garbage at the end of the file:
.section.eslint.config.practices": true
      }
    }
  }
}

Removing the garbage from the prefs.json file fixed the issue.
Comment 2 Silenio Quarti CLA 2016-05-03 11:10:59 EDT
For