Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Character corruption in the content.xml(Eclipse-plugin update site)
Character corruption in the content.xml [message #816714] Fri, 09 March 2012 07:17 Go to next message
Shigekazu Takei is currently offline Shigekazu TakeiFriend
Messages: 2
Registered: March 2012
Junior Member
I have a problem with Eclipse-plugin update site.
Does anyone have the same problem or some advises??


The problem is partial character corruption in the content.xml when connecting to remote update site on Jenkins.



1, Building Eclipse-plugin with maven-tycho-plugin
on Jenkins 1.451 running at a remote server.

2, Set files to lastSuccessfulBuild/artifact

3, Try to install the built plugin by "Install New Software",
indicating the update site like this:

ex) ----/lastSuccessfulBuild/artifact/project_repository/target/site/

4, Eclipse can't resolve the repository,
because the contents in cache/content...jar get corrupted.



java.io.IOException: Element type "touchpoint" must be followed by either attribute specifications, ">" or "/>".
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO$Parser.parse(MetadataRepositoryIO.java:215)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO.read(MetadataRepositoryIO.java:63)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:107)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
at org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob.doLoad(LoadMetadataRepositoryJob.java:117)
at org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob.runModal(LoadMetadataRepositoryJob.java:102)
at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler$2.runModal(PreloadingRepositoryHandler.java:82)
at org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob.java:177)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



In case I get the content.jar from browser, the content.xml does not have character corruption.
Additionally, when I tried same procedure on local Jenkins, the update site works.


I doubt some jenkins settings now, but can't figure out what setting affects this problem...
I would like to ask how to resolve this problem.



Thank you in advance!!
Re: Character corruption in the content.xml [message #822457 is a reply to message #816714] Fri, 16 March 2012 16:49 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
Try downloading the content.jar locally and point p2 to it to see if it can read it properly. If it can then there is an issue with the way the files are being served.

hth,

Pascal
=-=-=
Consulting, training, bug fixing - pascal (at) rapicault.net
Re: Character corruption in the content.xml [message #826759 is a reply to message #822457] Thu, 22 March 2012 13:24 Go to previous message
Shigekazu Takei is currently offline Shigekazu TakeiFriend
Messages: 2
Registered: March 2012
Junior Member
To Pascal,

Thank you for your reply and sorry for the late reply.

> Try downloading the content.jar locally and point p2 to it to see if it can read it properly.
> If it can then there is an issue with the way the files are being served.

I downloaded the content.jar to local from the server(update-site) causing problem, and tried to point p2 to that jar. And, It succeeded.

I also tried to test the update-site with CacheManager.createCache() in org.eclipse.equinox.p2.repository package using JUnit.

It failed.The renamed content___.jar was collapsed.

CacheManager create temporary jar file in "downloading" folder, and even that jar in the downloading folder was also collapsed.

I tested FileReader.readInto() in org.eclipse.equinox.p2.transport.ecf.
With the URL of the update-site, the downloaded jar was intact.

With some setting of the server and using CacheManager, The jar is collapsed.

Hmm, I keep on testing..
Previous Topic:Processing of installation export file (p2f)?
Next Topic:Cannot complete the install because of a conflicting dependency.
Goto Forum:
  


Current Time: Sat Dec 07 22:19:19 GMT 2024

Powered by FUDForum. Page generated in 0.03189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top