Summary: | Prolog error message in console | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | David Audel <david_audel> |
Component: | Ant | Assignee: | Darin Swanson <Darin_Swanson> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert, Darin_Swanson, dj.houghton |
Version: | 3.0 | ||
Target Milestone: | 3.1 M2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
David Audel
2004-06-21 06:50:34 EDT
I can not reproduce the problem. DJ - what is your JRE ? java version "1.4.1" J9 - VM for the Java(TM) platform (build 2.1) IBM J9SE VM (build 2.1, J2RE 1.4.1 IBM J9 build 20040510 (JIT enabled)) I also get this error when doing a full build on this workspace. Note I just got these messages again while doing a full build on a rather large workspace with a bunch of other plug-ins installed. I turned on builder debug information and it looks like it is inside an ExternalTools builder when the message is being printed out. VM version is: IBM J9SE VM (build 2.1, J2RE 1.4.2 IBM J9 build 20040610 (jit enabled)) I can provide (via email) the XML file which was being run. (javadoc generation I believe) This error message only appears when using the IBM VM. It's coming from the XML parsing implementation included with the IBM JRE. Is there something different that we should be doing with our XML so we don't get this error. The words "Fatal Error" sound bad. I presume that there are no adverse side effects? DJ can you just provide the xml that comes before the declaration of the project in the buildfile? This is the interesting part. DJ can you indicate which builder or provide the XML that is causing the problem. Oops...sorry for the delay. The strange thing is that there wasn't anything before the <project> declaration in the file. (well, except for <?xml version="1.0" encoding="UTF-8"?>) I talked to the owner of the project and there were set-up steps that I had to do with that particular project. When looking at the steps, it included using the SUN JDK among other things.... When running on IBM VM (J9) and building my workspace I get lots of: [Fatal Error] :1:68: XML document structures must start and end within the same entity. [Fatal Error] :1:1: Content is not allowed in prolog. Needs more investigation but I really doubt there is anything we can do...we do not provide the XML parser. The question is whether we have fatal errors in our files or whether this is an IBM VM bug. Some plugin that is parsing XML is not adding an error handler. See bug 18350. Now the trick is to find the guilty plugin...Ant adds more error handlers than I know what to do with :-) The error handler allows other components to handle the error. Why would that component ignore a fatal error? Bug 18350 says that they sometimes parse invalid xml and hence it's OK to swallow error in such cases. This should not be the case when building my workspace that has no errors at all (PDE plugin.xml checking enabled). We should find out which files cause these errors. Agree. A test case would be great. It always happens to me when I rebuild org.eclipse.ant.core. But this can't be the only one since I have many entries in the console. This problem surfaces as the BuilderUtil class is passing malformed XML to the debug launch configuration framework. I have made the required changes to the BuilderUtil class and have logged bug 73397 to cover all the other cases in debug land where this problem could crop up. Reordered how the BuilderUtils deals with the config handle. Please verify Jared. DarinS, the way I read the code, we'll still get this output for projects created during the 3.0 cycle (up to RC1). Since we were told to support this case, we should probably further re-order the code to only do the parsing as the last attempt. Same fix applied for 3.0 "interim format" builders. Please verify change to BuilderUtils, DarinS. Verified. |