Red Hat Bugzilla – Full Text Bug Listing
|Summary:||eclipse with ADT: Class org.eclipse.wst.xml.core.internal.document.DocumentImpl does not implement the requested interface org.w3c.dom.Document|
|Product:||[Fedora] Fedora||Reporter:||John Ruemker <jruemker>|
|Component:||eclipse||Assignee:||Krzysztof Daniel <kdaniel>|
|Status:||CLOSED CURRENTRELEASE||QA Contact:||Fedora Extras Quality Assurance <extras-qa>|
|Version:||18||CC:||akurtako, andjrobins, drindt, farrellj, gert.vervoort, jerboaa, kdaniel, mathstuf, mbenitez, overholt, rgrunber, samuel-rhbugs, swagiaal|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2013-01-11 19:05:53 EST||Type:||Bug|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description John Ruemker 2012-11-11 11:08:46 EST
Description of problem: Creating a new bug in response to https://bugzilla.redhat.com/show_bug.cgi?id=851335#c33: >> This bug needs to be forked because there is still a remaining issue: >> Class org.eclipse.wst.xml.core.internal.document.DocumentImpl does not implement the requested interface org.w3c.dom.Document Version-Release number of selected component (if applicable): eclipse-platform-4.2.1-1.fc18.x86_64 How reproducible: Easily reproduceable Steps to Reproduce: 1. Install ADT in eclipse 2. Create android project 3. Save files Actual results: Error dialog with details: >> An internal error occurred during: "Running Android Lint". >> Class org.eclipse.wst.xml.core.internal.document.DocumentImpl does not implement the requested interface org.w3c.dom.Document Expected results: No errors Additional info:
Comment 1 Ben Boeckel 2012-12-06 02:20:17 EST
Comment 2 Krzysztof Daniel 2012-12-06 02:49:57 EST
I have tested with latest Eclipse (4.2.1-21.fc18.x86_64) and it works fine for me. Could you try to reproduce the issue?
Comment 3 Ben Boeckel 2012-12-06 02:58:08 EST
I'm using eclipse-platform-4.2.1-21.fc19.x86_64 . Up-to-date as of today.
Comment 4 Krzysztof Daniel 2012-12-06 03:01:13 EST
and which version of xerces-j2?
Comment 5 Ben Boeckel 2012-12-06 03:08:33 EST
Comment 6 Daniel Rindt 2012-12-10 06:45:29 EST
Installed eclipse-platform-4.2.1-21.fc18.x86_64 and i am unnable to create a android project. The other already mentiones misbehaviour still persisting.
Comment 7 Daniel Rindt 2012-12-10 07:07:31 EST
Is there yet a known workaround?
Comment 8 Fedora Update System 2012-12-12 03:59:36 EST
xerces-j2-2.11.0-10.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/FEDORA-2012-20169/xerces-j2-2.11.0-10.fc18
Comment 9 John Ruemker 2012-12-13 15:17:02 EST
Even with the xerces-j2-2.11.0-10.fc18 from Comment #8, Android does not seem to be loading the ADT plugin. I've cleared out my workspace and ~/.eclipse, start eclipse, use Help->Install New Software... to install the plugin, it installs with no errors and prompts me to restart, and after I do, none of the ADT features are available. Can't create an android project, there is no Android section under Preferences, and if I import an existing project none of it shows up properly like it used to. xerces-j2-2.11.0-10.fc18.noarch eclipse-equinox-osgi-4.2.1-21.fc18.x86_64 eclipse-ecf-core-3.5.6-3.fc18.noarch eclipse-pde-4.2.1-21.fc18.x86_64 eclipse-jdt-4.2.1-21.fc18.x86_64 eclipse-emf-core-2.8.1-3.fc18.noarch eclipse-swt-4.2.1-21.fc18.x86_64 eclipse-platform-4.2.1-21.fc18.x86_64 icu4j-eclipse-22.214.171.124-12.fc18.noarch Running the downloaded version from eclipse.org works fine. I can't say this is specifically related to this bugzilla, but given the ADT plugin doesn't even load for me to confirm the new xerces-j2 package fixes the originally reported issue, I decided to post here. -John
Comment 10 Fedora Update System 2012-12-17 04:31:18 EST
xerces-j2-2.11.0-11.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/xerces-j2-2.11.0-11.fc18
Comment 11 John Ruemker 2012-12-17 09:53:10 EST
FWIW, same issue from comment #9 still exists with the new xerces-j2 package. $ rpm -qa | grep -e eclipse -e xerces eclipse-emf-core-2.8.1-3.fc18.noarch eclipse-jdt-4.2.1-21.fc18.x86_64 eclipse-equinox-osgi-4.2.1-21.fc18.x86_64 eclipse-ecf-core-3.5.6-3.fc18.noarch eclipse-pde-4.2.1-21.fc18.x86_64 icu4j-eclipse-126.96.36.199-12.fc18.noarch eclipse-platform-4.2.1-21.fc18.x86_64 xerces-j2-2.11.0-11.fc18.noarch eclipse-swt-4.2.1-21.fc18.x86_64 Also note I don't get any errors in the terminal I run eclipse from. If there is a log somewhere that might shed some more light on what's happening, or anything else you'd like me to do to gather more info, just let me know. Thanks, John
Comment 12 Fedora Update System 2012-12-17 13:29:55 EST
Package xerces-j2-2.11.0-11.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing xerces-j2-2.11.0-11.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20513/xerces-j2-2.11.0-11.fc18 then log in and leave karma (feedback).
Comment 13 Krzysztof Daniel 2012-12-17 14:05:06 EST
(In reply to comment #11) > FWIW, same issue from comment #9 still exists with the new xerces-j2 package. John, just to double check - do you run eclipse with -clean or delete the ~/.eclipse folder?
Comment 14 John Ruemker 2012-12-17 14:06:03 EST
I've been deleting ~/.eclipse.
Comment 15 Krzysztof Daniel 2012-12-17 14:35:23 EST
John, I need you to: 1. upload your bundles.info file that is in the /usr/lib64/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/ 2. upload your bundles.info file that is created after start in ~/.eclipse (deep buried in org.eclipse.equinox.simpleconfigurator folder). Run eclipse using the command: eclipse -debug -consolelog and eclipse -clean -debug -consolelog and gather output.
Comment 16 John Ruemker 2012-12-17 15:03:50 EST
Created attachment 665090 [details] /usr/lib64/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
Comment 17 John Ruemker 2012-12-17 15:10:01 EST
Created attachment 665093 [details] ~/.eclipse/org.eclipse.platform_4.2.0_793567567/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
Comment 18 John Ruemker 2012-12-17 15:12:20 EST
Created attachment 665094 [details] eclipse -debug -consolelog
Comment 19 John Ruemker 2012-12-17 15:13:49 EST
Created attachment 665095 [details] eclipse -clean -debug -consolelog
Comment 20 John Ruemker 2012-12-17 15:25:07 EST
Data uploaded. The debug output does show some warnings about missing bundles. Not sure if that's something I've missed installing, or if they're relevant to the problem at hand though. -John
Comment 21 Samuel Sieb 2012-12-17 18:47:04 EST
With xerces-j2-2.11.0-11.fc18, Android lint works for me.
Comment 22 Krzysztof Daniel 2012-12-18 08:28:54 EST
John, It looks like this is the most significant error: !SUBENTRY 2 org.eclipse.equinox.jsp.jasper 2 0 2012-12-17 14:49:48.742 !MESSAGE Missing imported package org.apache.jasper.servlet_[0.0.0,6.0.0). The package org.apache.jasper.servlet is provided by the glassfish-jsp package. Could you check if you have it installed, if yes, than in which version (it must be the same version that was used to build eclipse - glassfish-jsp-2.2.5-* you check where eclipse points by ls -l /usr/lib64/eclipse/plugins | grep org.glassfish.web.javax.servlet.jsp
Comment 23 John Ruemker 2012-12-18 09:30:53 EST
That was indeed the cause of my latest troubles :/ When I had first run into the problem this bug was opened for, I had updated to the rawhide eclipse to test if it was any better, and I guess that pulled in a later glassfish-jsp, which I never reverted. After fixing that, the ADT plugin does now load. That said, the original issue still exists for me. I can import my android project without issue, but as soon as I pull up any of my layout resource files, I get an error dialog with 2 errors: 1) The one initially reported in this bug: There was a problem adding adapter factories Class org.eclipse.wst.xml.core.internal.document.DocumentImpl does not implement the requested interface org.w3c.dom.Document 2) A NullPointerException: An error has occurred. See error log for more details. java.lang.NullPointerException $ rpm -qa | grep -e eclipse -e xerces-j2 -e glassfish-jsp eclipse-equinox-osgi-4.2.1-21.fc18.x86_64 eclipse-ecf-core-3.5.6-3.fc18.noarch eclipse-pde-4.2.1-21.fc18.x86_64 eclipse-emf-core-2.8.1-3.fc18.noarch eclipse-jdt-4.2.1-21.fc18.x86_64 eclipse-platform-4.2.1-21.fc18.x86_64 glassfish-jsp-2.2.5-2.fc18.noarch eclipse-swt-4.2.1-21.fc18.x86_64 icu4j-eclipse-188.8.131.52-12.fc18.noarch glassfish-jsp-api-2.2.1-4.fc18.noarch xerces-j2-2.11.0-11.fc18.noarch $ ls ~/.eclipse ls: cannot access /home/jruemker/.eclipse: No such file or directory $ ls ~/workspace/eclipse ls: cannot access /home/jruemker/workspace/eclipse: No such file or directory $ eclipse -debug -consolelog [...] I'll attach the debug output. -John
Comment 24 John Ruemker 2012-12-18 09:32:16 EST
Created attachment 665537 [details] eclipse -debug -consolelog
Comment 25 Krzysztof Daniel 2012-12-19 02:45:48 EST
John, I think we are finally there - install eclipse-dtp, reinstall ADT and verify it works. The problem is that xerces-j2 must be installed into the eclipse - that's the details I have missed because I always install the full Eclipse stack - so it was working for me. I'm afraid that this fix cannot be made permament - introducing a new dependency to Eclipse platform is not welcome :-(. Once you confirm it works for you - I'll write a blog post. I'm afraid that the only solution here is to package ADT into Fedora.
Comment 26 John Ruemker 2012-12-19 09:49:09 EST
Success! Everything's working after that. Sorry for all the troubles; I see now that its probably better to install the "Fedora Eclipse" group rather than just "yum install eclipse" so that it pulls in all of the important packages. Thanks so much for all your help. -John
Comment 27 Andrew Overholt 2012-12-19 10:43:37 EST
(In reply to comment #25) > I think we are finally there - install eclipse-dtp, reinstall ADT and verify > it works. Awesome! This has been a long time coming. Thanks for the hard work and perseverance, Chris and others.
Comment 28 Jason Farrell 2013-01-11 12:28:31 EST
Thanks! After installing eclipse-dtp I'm back up and running with ADT. The mistake I made was installing just eclipse with basic deps, instead of yum installing the @eclipse group which includes eclipse-dtp and others by default.
Comment 29 Fedora Update System 2013-01-11 19:05:56 EST
xerces-j2-2.11.0-11.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.