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

Bug 272414

Summary: parse exception on mirrors list
Product: z_Archived Reporter: David Williams <david_williams>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 230924    
Bug Blocks:    

Description David Williams CLA 2009-04-15 19:04:58 EDT
I've just seen the exception pasted below. I think the root cause is you want to use "format=xml" instead of "responseType=xml"?  I was just checking I had the latest galileo builder installed. 


!MESSAGE Error processing mirrors URL: http://www.eclipse.org/downloads/download.php?file=/tools/buckminster/tools-3.5/&protocol=http&countryCode=us&timeZone=-5&responseType=xml
!STACK 0
org.xml.sax.SAXParseException: The reference to entity "lang" must end with the ';' delimiter.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.computeMirrors(MirrorSelector.java:135)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.initMirrors(MirrorSelector.java:196)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.selectMirror(MirrorSelector.java:246)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.getMirrorLocation(MirrorSelector.java:174)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getMirror(SimpleArtifactRepository.java:492)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:448)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:516)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:195)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:170)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:154)
	at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:95)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:505)
	at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:64)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Thomas Hallgren CLA 2009-04-15 19:15:37 EDT
That's true. But I'm not adding the responseType=xml. Very odd indeed. I wonder where that URL Is found and how it's generated. The entries in our repositories does not have a countryCode, a timeXone, or a responseType. Someone else adds that at some point.
Comment 2 Thomas Hallgren CLA 2009-04-15 19:49:18 EDT
I submitted a patch to p2 and I also added a format=xml entry to all our mirrorsURL declarations so it should work again now.  
Comment 3 Thomas Hallgren CLA 2009-04-16 09:15:26 EDT
Marking this as fixed since we now declare a format=xml in our mirrorsURL and hence, no longer are sensitive to the 230924 bug.