Eclipse MARS: Mercurial Eclipse Installation Reports "Invalid byte 1 of 1 byte UTF-8 sequence"

The exact error message ...

com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.


Plugin: org.eclipse.equinox.p2.updatesite 1.0.500.v20150423-1455
Message: Error reading update site http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable.

      

I am getting the same error on both 2.1 and 1.8 via Eclipse MarketPlace.

Error

If I install another plugin like "EMMA" it works fine.

If I choose Help> Check for Updates, I get the same error message.

Can anyone suggest a fix / workaround?

NOTES:

Install using the update URL (SNAPSHOT only, not RELEASE)

http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/snapshots

+3


source to share


4 answers


I faced the same problem.

What worked for me was that I needed to close the address to work

http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable/



You need a trailing / at the end of your update site.

Hope it works for you too.

+2


source


Go to Help -> Install New Software -> Add and Copy this " http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable/ ." to the location and then click "Add" and you will see the packages to install



+1


source


I just tested this with Eclipse 4.4.2 - which works well - and Eclipse 4.5.0 - which throws the above error. Adding a slash doesn't help me at all.

This looks like a typical repository UTF BOM issue, but it seems to be due to a change in behavior between org.eclipse.equinox.p2.updatesite/1.0.400.v20131211-1531

andorg.eclipse.equinox.p2.updatesite/1.0.500.v20150423-1455

However, there is a reason the plugin org.eclipse.equinox.p2.updatesite

is called "Legacy Site Update Support" and also because the old update sites in site.xml have been deprecated since the release of Eclipse 3.6 in 2010. Why doesn't the MercurialEclipse -in plugin publish the p2 update site outside of me.

UPDATE 2015-09-22: I just downloaded the new Eclipse SDK 4.5.0 and can no longer see this error.

0


source


I had a similar problem with Eclipse 4.5.0 which I installed on 09/14/2015 (mkalkov stated that 4.5.0, downloaded on the 22nd, did not have this problem). Adding a trailing slash doesn't fix it. I tried using snapshots and no errors came up:

http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/snapshots/

It may not be perfect as it is unstable, but easier than reinstalling Eclipse. Which I recommend you do if you have time.

0


source







All Articles