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

Bug 388743

Summary: Internal server error during indexing
Product: [ECD] Orion Reporter: Maciej Bendkowski <maciej.bendkowski>
Component: ServerAssignee: John Arthorne <john.arthorne>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: maciej.bendkowski
Version: unspecified   
Target Milestone: 1.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Maciej Bendkowski CLA 2012-09-04 08:47:06 EDT
I was trying to create a test clone from my github repository. It worked, but I've noticed an internal server error. Here is the stack trace:

!ENTRY org.eclipse.core.jobs 4 2 2012-09-04 14:38:59.085
!MESSAGE An internal error occurred during: "Indexing".
!STACK 0
java.lang.NullPointerException
	at java.net.URI$Parser.parse(URI.java:3014)
	at java.net.URI.<init>(URI.java:589)
	at java.net.URI.create(URI.java:851)
	at org.eclipse.orion.internal.server.servlets.workspace.WebProject.getContentLocation(WebProject.java:130)
	at org.eclipse.orion.internal.server.servlets.workspace.WebProject.getProjectStore(WebProject.java:138)
	at org.eclipse.orion.internal.server.search.Indexer.indexProject(Indexer.java:135)
	at org.eclipse.orion.internal.server.search.Indexer.indexWorkspace(Indexer.java:123)
	at org.eclipse.orion.internal.server.search.Indexer.run(Indexer.java:244)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 John Arthorne CLA 2012-09-04 14:34:23 EDT
This suggests you have a project with no id in one of your workspaces. Can you please attach the three files under workspace/.metadata/.plugins/org.eclipse.orion.server.core/.settings. I could add a null check, but a project with null id is invalid and will likely cause other problems.
Comment 2 Maciej Bendkowski CLA 2012-09-05 05:04:00 EDT
(In reply to comment #1)
> This suggests you have a project with no id in one of your workspaces. Can
> you please attach the three files under
> workspace/.metadata/.plugins/org.eclipse.orion.server.core/.settings.

Unfortunately it wouldn't help. This bug happened while my work on automated git authentication. I was creating lots of orion.client clones in order to test the authentication process. After the clones were created I deleted them immediately.
I've noticed the server error after I've finished my tests. 
 
> I could add a null check, but a project with null id is invalid and will
> likely cause other problems.

I failed to reproduce the error. It's possible I could have tried to delete the clone operation before providing credentials and somehow ended with a repository without an Id.
Comment 3 John Arthorne CLA 2012-09-13 16:07:50 EDT
Can't reproduce.