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

Bug 188375

Summary: [Europa] Digest could not be parsed / very slow response time
Product: z_Archived Reporter: Nick Boldt <nboldt>
Component: DDAssignee: Platform-Update-Inbox <platform-update-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: bjorn.freeman-benson, dgaff.eclipse, marrink, ted
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Nick Boldt CLA 2007-05-22 12:36:03 EDT
This might be a new bug but it might be related to 187396. Apologies if it's a dupe.

Trying to verify RC1 for bug 187410, I now get this when trying to 'search for new features...'

Steps:

1. Start Eclipse 3.3RC1 SDK.
2. 'Search for new features' using the Europa Discovery Site

!SESSION 2007-05-22 12:19:50.547 -----------------------------------------------
eclipse.buildId=I20070517-1700
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20060504 (JIT enabled)
J9VM - 20060501_06428_lHdSMR
JIT  - 20060428_1800_r8
GC   - 20060501_AA
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -startup /home/nickb/eclipse/rc1clean/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070516.jar
Command-line arguments:  -os linux -ws gtk -arch x86 -startup /home/nickb/eclipse/rc1clean/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070516.jar -data /tmp/workspace-clean-rc1 -consolelog

!ENTRY org.eclipse.update.core 4 0 2007-05-22 12:20:31.302
!MESSAGE Digest could not be parsed:The entity name must immediately follow the '&' in the entity reference.

3. If I then expand the twisty next to Models and Model Development, Eclipse freezes for a very long time (at least a few minutes). Smaller categories eventually resolve (Other Tools, Charting and Reporting) but also hang for a surprisingly long time.

Can anyone else reproduce this, or should I just reboot? ;-)
Comment 1 Dejan Glozic CLA 2007-05-22 12:58:01 EDT
The message implies that digest contains invalid characters (probably a name or description that contains '&' and is not escaped).
Comment 2 Nick Boldt CLA 2007-05-22 13:12:43 EDT
(In reply to comment #1)
> The message implies that digest contains invalid characters (probably a name or
> description that contains '&' and is not escaped).

Agreed. I considered opening this against Community > Cross-Project but no one really works those so I thought I'd dump it here. ;-) CC'ing Bjorn.

Comment 3 Bjorn Freeman-Benson CLA 2007-05-22 14:40:42 EDT
Re: 2
With a little investigation (i.e., I opened the digest.xml inside the digest.zip and used IE as an XP parser) I discovered that the error is from the DSDP-DD project. Specifically, the feature:

<feature label="IPExact Editor & Checker" provider-name="Eclipse.org" id="org.eclipse.dd.ipxact" version="0.2.0.v20070521" > 

Notice the "&" instead of "&amp;" or better yet "and".
Comment 4 Bjorn Freeman-Benson CLA 2007-05-22 14:53:57 EDT
(In reply to comment #3)
I meant to say "as an XML parser".

(In reply to comment #0)

> 3. If I then expand the twisty next to Models and Model Development, Eclipse
> freezes for a very long time (at least a few minutes). Smaller categories
> eventually resolve (Other Tools, Charting and Reporting) but also hang for a
> surprisingly long time.

Yes, I can confirm this - it takes a long time although it eventually expands.
If the DSDP-DD guys will fix their feature files, I will respin the Europa RC0 build in order to fix the digest.xml
Comment 5 Ted Williams CLA 2007-05-22 15:42:29 EDT
Fixed. 
1) s/\&/and/ 
2) bumped DSDP-DD versions from 0521 to 0522
Comment 6 Nick Boldt CLA 2007-05-22 16:29:28 EDT
(In reply to comment #4)
> > hang for a surprisingly long time.
> Yes, I can confirm this - it takes a long time although it eventually expands.

Thanks, Bjorn. FWIW, I also got a long response time when doing the same thing with this Update site: http://download.eclipse.org/modeling/emf/updates/site-eclipsecon.xml

Not as long, but again, slower than expected. This time I was using Windows XP Pro, not my usual Linux desktop. 

Comment 7 Nick Boldt CLA 2007-05-28 19:43:30 EDT
This appears to be fixed in RC1. Should we close this or wait to see if it breaks again? ;-)
Comment 8 Maurice Marrink CLA 2007-08-15 04:13:29 EDT
Running on vista and before on xp, i always get the following error in the log : Digest could not be parsed:Element type "includes" must be followed by either attribute specifications, ">" or "/>". 
I have setup eclipse to check for updates on startup, and that is when the error is generated.

eclipse.buildId=I20070621-1340
java.version=1.6.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_NL
Command-line arguments:  -os win32 -ws win32 -arch x86
Comment 9 Bjorn Freeman-Benson CLA 2007-08-20 10:39:16 EDT
I tried this on XP using the current Europa update site and I did not receive any errors in the Error Log. If you are still seeing this bug, please provide more details including the base Platform version (are you still running 3.3RC1?) and the mirrors you are using to download from.