Bug 39187 - IBM's JDK 1.4.1's xerces masks xerces that is shipped with Eclipse
Summary: IBM's JDK 1.4.1's xerces masks xerces that is shipped with Eclipse
Status: RESOLVED DUPLICATE of bug 37696
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 38733 39277 40941 43022 43860 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-20 16:13 EDT by Jim des Rivieres CLA
Modified: 2003-10-14 15:09 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2003-06-20 16:13:04 EDT
Build I20030618

1. Create a new workspace
2. Turn off autobuild
3. Import all the Eclipse plug-ins from the I20030618 drop as
binary plug-ins
4. Replace some of these projects with ones from CVS
(in my case, I was loading the projects for the JFace, UI, and
Text plug-ins).
5. Build

Observe: There are build errors. It complains that a bunch of the
projects cannot be build (missing .classpath files). This was
reported in bug 39186, which I'm trying to workaround.

6. Delete all the binary plug-in projects from the workspace.
7. Go to the PDE > Target Platform preference.
8. Select this application
9. Select Not in workspace

Observe: All 66 plug-ins are selected.

Expectation: It should have excluded the 10 in the workspace. 

10. Manually deselect the ones that are already in workspace.
11. OK
12. Project > ReBuild All

Observe: There are build problems:

Build problems
  Errors during build.
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    java.lang.NullPointerException encountered while running 
org.eclipse.pde.internal.builders.ExtensionPointSchemaBuilder.
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    java.lang.NullPointerException encountered while running 
org.eclipse.pde.internal.builders.ExtensionPointSchemaBuilder.
Comment 1 Wassim Melhem CLA 2003-06-20 16:18:06 EDT
There is no guarantee what state the projects you checked out from CVS are in 
after the buggy CVS checkout.  could you delete those as well and try again?  
Things should be fine then.
Comment 2 Jim des Rivieres CLA 2003-06-20 16:27:26 EDT
I deleted the workspace repeated and started over. 
I turned autobuild off.
I did a checkout of the 11 projects from CVS.
Then I went to PDE > Target Env and configured the rest of the plug-ins.
ReBuild All. Same build problems.

Build problems
  Errors during build.
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    java.lang.NullPointerException encountered while running 
org.eclipse.pde.internal.builders.ExtensionPointSchemaBuilder.
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    java.lang.NullPointerException encountered while running 
org.eclipse.pde.internal.builders.ExtensionPointSchemaBuilder.
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found
    org.apache.xerces.parsers.DOMBuilderImpl: method setFeature
(Ljava/lang/String;Z)V not found

Comment 3 Dejan Glozic CLA 2003-06-20 16:31:14 EDT
This reminds me of the similar (unrelated) errors that were caused by the 
wrong Xerces somewhere on the classpath. May have nothing to do with this 
though.
Comment 4 Wassim Melhem CLA 2003-06-20 16:32:47 EDT
True, we see defects like this one when there is another xerces on the 
classpath that is masking the one shipped with Eclipse.
Comment 5 Jim des Rivieres CLA 2003-06-20 16:34:32 EDT
This kind of simple PDE usage scenario should be covered by automated test 
suites run with each build.
Comment 6 Jim des Rivieres CLA 2003-06-20 16:44:38 EDT
The same scenario fails in the same way in Eclipse 2.1.0 (I did not try 2.1.1)!
Can you verify this?
Comment 7 Jim des Rivieres CLA 2003-06-20 16:52:12 EDT
I was running I20030618 and 2.1 with ibm-sdk-n141p-win32-x86. When I switched 
to running 2.1 with ibm-jre-n131p-win32-x86, I no longer see the Build 
problems.
Comment 8 Dejan Glozic CLA 2003-06-20 16:55:55 EDT
I think that one of the JDK 1.4.1 started bundling Xerces (and apparently the 
wrong version as far as Eclipse is concerned :-).
Comment 9 Wassim Melhem CLA 2003-06-22 19:32:05 EDT
Lowering severity...
The choice of a level 1.4 JDK is becoming a problem, as some are bundling 
xerces which is masking the xerces shipped with Eclipse.
This is a product issue rather than a PDE bug.
Comment 10 Wassim Melhem CLA 2003-06-22 23:58:43 EDT
Moving to Platform Core...
Comment 11 Wassim Melhem CLA 2003-06-23 00:01:27 EDT
*** Bug 38733 has been marked as a duplicate of this bug. ***
Comment 12 Wassim Melhem CLA 2003-06-24 22:32:05 EDT
*** Bug 39277 has been marked as a duplicate of this bug. ***
Comment 13 Wassim Melhem CLA 2003-08-08 16:35:58 EDT
*** Bug 40941 has been marked as a duplicate of this bug. ***
Comment 14 Jochen Wiedmann CLA 2003-08-08 16:51:09 EDT
A question: I noticed that Xerces is hard coded as XML parser into Eclipse. As
far as I could see, the reason was the use of Xerces specific features to get
extended information on the location of XML elements.

In my opinion the best approach would be to sit solely on top of JAXP 1.1. In
the particular case I've seen (Bug 40941) this is definitely possible. (See for
example the DOM parser in JaxMe 2,
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/jaxme/JaxMe2/src/net/sf/jaxme/generator/util/DOMBuilder.java
that is used to attach location info to a DOM tree.) Perhaps a similar approach
works in other cases too?
Comment 15 Rafael Chaves CLA 2003-09-12 16:01:53 EDT
*** Bug 43022 has been marked as a duplicate of this bug. ***
Comment 16 John Arthorne CLA 2003-09-29 17:54:09 EDT
*** Bug 43860 has been marked as a duplicate of this bug. ***
Comment 17 DJ Houghton CLA 2003-10-14 14:54:21 EDT

*** This bug has been marked as a duplicate of 37696 ***
Comment 18 Luc Bourlier CLA 2003-10-14 15:09:11 EDT
workaround for this problem:
rename xml.jar to xml.jar.old in jre/lib

This works fine if you don't need the xml parser in other Java application.