Home » Archived » Orion (Archived) » Problem Loading Workspaces(Problems encountered while loading a workspace when running Orion from Eclipse)
Problem Loading Workspaces [message #777599] |
Tue, 10 January 2012 19:48  |
Joe Clark Messages: 5 Registered: January 2012 |
Junior Member |
|
|
Hi,
I've been having real trouble launching Orion 0.4M1 from Eclipse (versions 3.5 and 3.7). I suspect that asking here is a bit of a long-shot, but I'm wondering if anyone else recognises the problem. I'm working in Windows XP, and it's worth noting in advance that Orion runs standalone from orion.exe.
I've set Orion 0.4 as the target platform from Eclipse and launched (without importing any source projects into my workspace). I'm basically trying to launch vanilla Orion 0.4 from Eclipse. Orion runs OK to start: I can access the home page, log in, log out and browse the plugin registry. But when I try to browse my workspace, the Orion runtime freezes up. An undefined error is reported in the file navigation window, and Orion ceases to respond to any more HTTP requests. No exceptions are reported in my Eclipse console, and nothing appears in the workspace log.
The problem occurs on various Eclipse installations with various workspaces on my XP machine. I've managed to run Orion from Eclipse in this way without any problems on my Windows 7 machine at home. I'll also throw in that I've had Orion 0.2 running from Eclipse without any problems. My experience with Orion so far is that getting this baby to run really shouldn't be this difficult.
Digging a little deeper, it looks like everything is fine until I run a GET on localhost/workspace/A (where A is my admin user account). Issuing a get to this URL from Firefox's Poster extension locks the server and eventually times out. It seems that Orion's get handler refuses to answer my calls.
Equal parts curious and frustrated, I dug deeper. I built the org.eclipse.orion.servlets project, deployed through Eclipse, and put a breakpoint on the Workspace file handlers. Sure enough, the GET request is received and filters through a bunch of calls - and magically vanishes. The call stack goes off into low-level source and doesn't come back. None of my later breakpoints get called. I dug deeper still: it looks like there's a problem in the org.eclipse.core.filesystem package, which bubbles out while trying to get the FileInfo data for a given resource. It tries to load the class "localfile_1_0_0" from UnixFileNatives, and the Classloader vanishes into a black hole: neither returning a Class nor throwing an exception.
There's clearly something wrong with my environment, but it's not obvious to me what. It looks like there's simply a missing dependency when running from Orion, but I'm running the same bundles as I'm running from my Windows 7 machine, which works fine. There is a localfile_1_0_0 class on the target platform, but it looks like a C class which is loaded through JNI - something I have no experience of, so I may be missing something obvious there.
Does anyone recognise the problem? Can anyone shed any light on where a solution might be found? I've reached a dead-end here, and I rather suspect I can't see the wood for the trees...
Apologies for the long post, and thanks to anyone who read to the end. It's been emotional.
-Joe
|
|
| | | |
Re: Problem Loading Workspaces [message #779908 is a reply to message #777599] |
Mon, 16 January 2012 19:47   |
Joe Clark Messages: 5 Registered: January 2012 |
Junior Member |
|
|
Hi folks, just logging in with an update. I'm afraid it's not good news for me...
While I've managed to get Orion (0.3 and 0.4) up and running from Eclipse (3.5), I've been persistently struggling with errors. I've been having a hard time understanding what the problem has been, so I didn't want to log a bug. I just want to sound it out and see if my experience is familiar to anyone else.
Orion basically runs fine for a while, but after a couple of hours of work something seems to get stuck. It looks like the plug-in registry freezes and all my plug-ins stop working: I lose authorisation control, web editing, git access - everything. The best I get is a couple of static web pages. Sometimes I don't even get that much: when I try to access an Orion page, the browser just sits, waiting for a response from the server. There's no HTTP error, and nothing logged in the console.
The unresponsive server problem is rarer, and occurs across all browsers (I haven't yet tried to load a static, non-Orion HTML page under these conditions). The frozen plug-in registry seems to be locked into a certain client: Firefox 9 might stop loading correctly, but Chrome 16 will work fine. Othertimes the problem occurs the other way around, and Chrome will respond when Firefox won't.
These problems are temporary, but uncontrollable. After an hour or two of unresponsiveness, the server responds properly again - plug-ins load and HTTP requests are properly dealt with. I've yet to identify a specific case for what causes the problem, or what fixes it. Changing the target platform (between Orion 0.3 and the 0.4 integration builds), clearing caches, or even restarting the machine fails to rectify the situation. This problem never arises on Orion 0.2, strongly hinting at a problem that's formed during 0.3's development.
The only clue I have as to where the problem might be is that, like my previous problem, it's got something to do with Eclipse. These problems only arise after a long period of editing my Orion plug-in from Eclipse and restarting the server several times. I ran Orion 0.4M1 from Eclipse 3.5 this afternoon for about four hours : during that time, I started development on an Orion plug-in from inside Orion (ie, all my development has been inside the browser). There was no Eclipse development, no change in the Orion runtime files, and only a couple of server restarts. I encountered no problems during this time. I suspect the problem is caused, at least in part, by modifying Orion's client runtime from within Eclipse.
Apologies if this is vague. I seem to be hitting problem after problem while hacking (sorry, surgically enhancing) on the 0.3 and 0.4 builds, while 0.2 remains quite stable.
I'm using Windows XP from work, I'm going to experiment from my Windows 7 machine at home, see if I encounter similar difficulties. Otherwise, I'll have to revert back to 0.2 and test subsequent milestone releases and see if the problem sorts itself out.
Thanks in advance for any input,
-Joe
|
|
| | |
Goto Forum:
Current Time: Tue Nov 28 10:31:43 GMT 2023
Powered by FUDForum. Page generated in 0.02955 seconds
|