JDK-4691095 : javadoc prints unhelpful error message "foo.jar: Body tag missing from HTML"
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2002-05-24
  • Updated: 2014-05-05
  • Resolved: 2002-10-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
Description

Name: rmT116609			Date: 05/23/2002


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


DESCRIPTION OF THE PROBLEM :

When running javadoc in a large autobuild process, I see a number of messages like:
  server.jar: Body tag missing from HTML
  1 error
While it is clear that javadoc is complaining about something having to do with server.jar, the error message gives no clue what the problem is or how to fix it.  The evidence actually suggests that there isn't really a problem in the jar file, but that the error message is erroneously emitted.

Bug 1: This bug report is complaining that the actual error message printed is not specific enough to indicate where the problem is.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The minimal examples may be found at:
http://www.alpine.bbn.com/~mthome/javadocbug.jar
grab the the above file and unpack it into a clean directory
of your choosing.  It contains some .java files and some
.jar files used in the various "steps to reproduce" sections.
% cd /tmp/foo
% jar xf /tmp/javadocbug.jar
% mkdir api
# test 1
% javadoc -classpath server.jar -quiet -d api -sourcepath
src org.cougaar


EXPECTED VERSUS ACTUAL BEHAVIOR :
Actual:
Loading source files for package org.cougaar...
Constructing Javadoc information...
server.jar: Body tag missing from HTML
1 error

Expected:
1. clean javadoc run (in this case)
2. if there IS a real error found in a jar file, then the message should indicate which entry in the jar file is causing the problem.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
server.jar: Body tag missing from HTML

This bug can be reproduced always.

(Review ID: 146956) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis mantis-b05
14-06-2004

PUBLIC COMMENTS The tool only displayed the name of the JAR file when it printed an error message about a bad package.html file inside the JAR file. This bug has been fixed. Now, there are more detailed messages like: /home/jh104163/badPackageFileInJar.jar/pkg/package.html: Body tag missing from HTML
10-06-2004

EVALUATION This bug has been fixed. The tool now prints a more detailed error message. ###@###.### 2002-09-21
21-09-2002