Eclipse 'Unhandled loop exception' on Team > Commit - eclipse

I recently started using git with the egit plugin in eclipse, and I thought I had everything working. I cloned a remote repository to my machine, then made a change to a file, and went to commit the change via selecting the file in the project, and going to Team > Commit.... As soon as I do, I get the following error:
Unhandled event loop exception
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1826)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:687)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:96)
...
(output abbreviated)
I am fully willing to accept that this is a bug of sorts (even though I thought this was working earlier today), but I am hoping someone may have encountered this problem once before.
Any insights? Even if it is only who I should file the bug against? I can provide any additional details. I should also point out that things work fine if I commit through the git repository view.

The problem is that the particular git workflow is creating a SWT Browser component that is having trouble loading on your particular OS + Windowing system + mozilla library version combination. There is a bit of black magic that has to go on to make sure you get the right configuration to allow the SWT browser to work with your embedded mozilla renderer. You can get detailed information on the SWT FAQ page here.
Also there are many other posts on this site that talk about how to resolve the dreaded "NO MORE HANDLES" problem here.

Related

How do I debug a java.lang.illegalStateException that occurs when rebasing a ClearCase view?

Background
I have been trying for the last week to rebase a clearcase view for my project, but every time I try I get a weird null exception depicted in the two windows below:
I do not know why this is occurring and need help determining how to even begin fixing this issue.
So far here is what I have tried:
Restarting the client
Restarting my computer
Refreshing the view and updating.
Updating my eclipse environment.
I have also seen a fix on the IBM website for a similar issue, but my version of Clearteam explorer is well beyond the version it prescribes for a fix:
When you are trying to login with the IBM Rational ClearTeam
Explorer (CTE) version 8.0.1.11 and later with the Eclipse
plugin, you may receive the following error: CRMAP7009: Command
"Login" failed: Error: "java.lang.IllegalStateException: null"
This behavior does not occur with CTE 8.0.1.10 with the Eclipse
plugin or with the standalone CTE 8.0.1.11 client.
It only occurs using the Sun JRE 6, not when using the IBM JRE
6.
My clearteam explorer version is 9.0.2:
Question
What are other possible actions I can take to fix the null pointer issue mentioned above?
OK, you're going to hate this, but the only thing I can do is ask questions and point you to IBM/HCL support.
Is this a web-based view? A snapshot view? A Dynamic view?
Does a new view work?
Are there any errors in the CTE workspace log? (%USERPROFILE%.Rational\CTE8\workspace.log)
Is this the CTE plugin installed into Eclipse? Or the CTE "full" client? And does it matter?
Have you tried this using the command line interface (cleartool/rcleartool as appropriate)
Does running in debug mode tell us anything additional? (See https://www.ibm.com/support/pages/how-enable-trace-ccrc-client-and-server) Note that on windows, CTE/eclipse will spawn a separate console window to print some eclipse diagnostic output that may or may not be important. You'll want to capture that before exiting the session.
If this is a web-based view, has anyone checked the WAN server logs?
CRMAP7009 is a "catch all" message for CTE, but since that is an exception message, it should be expanded upon SOMEWHERE. Half the battle is finding the rest of the message.
In those case, I always try and fall back to command line, using in your case cleartool rebase.
See "Rebase a stream on linux using cleartool" (the same idea applies on Windows), and "How to rebase in ClearCase on latest baselines?".
That way, I can see if the issue is with ClearCase itself or with the Eclipse ClearCase plugin.

Eclipse Repositories fail "Unable to read repository at"

I generally don't use Eclipse, so perhaps I'm doing something wrong, but I've spent several hours going over this and can't find a problem.
I needed a plugin for Eclipse (PigEditor or PigPen) and attempted to install it via repository, this failed with the error below. When it wouldn't install, I downloaded the .zip version, extracted the archive, found the folder containing features and plugins directory and tried installing it. This also failed. I also tried a PigPen .jar and it wasn't picked up at all when placing it into the plugins folder.
I noticed along the way that I received a bunch of error messages where it looked like Eclipse was trying to fetch dependencies. For example...
Error
Unable to read repository at http://download.eclipse.org/eclipse/updates/4.3.
java.io.IOException: http://download.eclipse.org/eclipse/updates/4.3 is not a valid repository location.
That -should- be a valid repository location, it's listed about halfway down here. This unable to read repository is the same error that I got when trying to install the previous plugin from repository.
I then went to the Preferences -> Available Software Sites and tried all of the default installed repositories. There were 2 checked (the one listed above, and http://download.eclipse.org/releases/kepler) and 2 unchecked (http://download.eclipse.org/egit/updates and http://www.eclipse.org/modeling/updates). I hit reload on any of those and receive the same error message as above.
I can access websites from the internal browser. I've also tried changing my Network Connections preference to "Direct".
Really all I care about is getting a working Pig plugin, so I'll accept that as an answer. I'm getting the feeling though that my failure to get any repositories is a symptom of a bigger problem (and I really want to know what's going on), so if you have troubleshooting steps I'm willing to try anything.
Sites I'm trying to get the Pig editor from:
https://wiki.apache.org/pig/PigPen
http://romainr.github.io/PigEditor/
https://github.com/romainr/PigEditor
Solution :
Open up .exe eclipse file from command promtp followed by command -vmargs -Djava.net.preferIPv4Stack=true
or
changed in eclipse.init file.

Github failed to sync branch

I'm using W7 64 bi , and just got an error from the github client app. It says:
failed to sync branch. you might need to open a shell and debug the state of this repo.
What do I do now ?
I know this will sound crazy, but try restarting your computer.
This happend to me yesterday; I was getting this error, and upon checking: \AppData\Local\GitHub\TheLog.txt
I found messages like:
AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin\sh.exe:
*** Couldn't reserve space for cygwin's heap, Win32 error 0
The problem comes around to GitHub for Windows updating itself (in particular the cygwin-ized PortableGit) in the background while I was using it. Ultimately, some cygwin dlls from the previous PortableGit dlls were still loaded in memory causing errors when trying to execute the new (updated) PortableGit commands.
Restarting cleared out all the previously loaded cygwin dlls.
You might have a more complex problem than my answer can solve, but -- for anyone else who comes across this question -- some basic solutions can be found in this video. In short, status.github.com, git status, and gitstatus are your friends. See what they tell you and then continue your sleuthing with that new information in mind. You can use these tools using Git Shell that comes with the Github Windows client.
I'll note that my own problem stemmed from trying to sync a file that was too large: I only found this by using the Git Shell, which gave me the error when I tried git sync. I'm currently looking for ways to remove the file in question in previous commits so I can sync my repo appropriately. The guide I am currently following can be found here, and if it seems to be taking me in the right direction (it was actually recommended in the Git Shell error message!)
I had this error before, and I fixed it by reinserting the credentials for my github account. Turns out that github logged me out for some reason

How can I fix this Android SDK build problem in Eclipse?

I am using Eclipse for Android dev and everything was going fine until I tried to incorporate the facebook SDK. Now when I tried to back it out, there appears to be an artifact left behind that Eclipse tries to link the FB library?!?
[2010-11-17 18:50:22 - Library Project] Unable to set linked path var '_android_com.facebook.android' for library /Users/mobibob/Projects/workspace/facebook-android-sdk/facebook: Path variable name cannot contain character: ..
Any clue where this command / reference is in the build configuration? I have scoured it as best that I can, but I still get the same error.
Problem solved ... as it turns out, it was not so much the Facebook SDK but something that I did in the process of configuring the library reference. I am not entirely certain of how I misconfigured, but I was tweaking the various "path" settings such that, once when the automatic build tried to build my project, an import for android.R was added to my source module. This superseded com.myproject.R and would not resolve the values for resource references.
There were other problems with path order and setting that I modified during the troubleshooting that made it worse. Recreating the project without Facebook was the first step to discovery and fixing.
Either way, the lesson I learned is that the build error messages can misdirect one to the configuration when the problem is in the source code.

SVN "Share project was failed"

I get this error :
Share project was failed.
svn: Error writing entries file for
'C:\workspace2\Test'
svn: Entry '' has inconsistent
repository root and url
But we get this error only on a particular PC. Also if we move the workspace in a network drive, everything works fine.
We are using FDT(eclipse based IDE).
We are totaly new to SVN...
I am looking for any advice who will helping us solving the problem
UPDATE:
Without any particular change the problem is gone ?!
Can you reproduced the issue with the latest Eclipse (Galileo 3.5.1)?
And what Subversion Eclipse plugin are you using? (Subversive or Subclipse?)
There was a bug with Subversive with path including a special character (like ~).
In your case, check the 'C:\workspace2\Test' has no special character in it, like a space at the very end. ('C:\workspace2\Test')