Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6978886

javadoc shows stacktrace after print error resulting from disk full

    Details

    • Subcomponent:
    • Resolved In Build:
      b112
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        javadoc: error - Unable to create directory /w/jjg/work/6570730-classtree/tl/build/linux-amd64/docs/api/java/util/regex/
        com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
                at com.sun.tools.doclets.internal.toolkit.util.DirectoryManager.createDirectory(DirectoryManager.java:281)
                at com.sun.tools.doclets.internal.toolkit.util.Util.genWriter(Util.java:595)
                at com.sun.tools.doclets.formats.html.markup.HtmlWriter.<init>(HtmlWriter.java:101)
                at com.sun.tools.doclets.formats.html.markup.HtmlDocWriter.<init>(HtmlDocWriter.java:65)
                at com.sun.tools.doclets.formats.html.HtmlDocletWriter.<init>(HtmlDocletWriter.java:113)
                at com.sun.tools.doclets.formats.html.SubWriterHolderWriter.<init>(SubWriterHolderWriter.java:59)
                at com.sun.tools.doclets.formats.html.ClassWriterImpl.<init>(ClassWriterImpl.java:67)
                at com.sun.tools.doclets.formats.html.WriterFactoryImpl.getClassWriter(WriterFactoryImpl.java:68)
                at com.sun.tools.doclets.internal.toolkit.builders.BuilderFactory.getClassBuilder(BuilderFactory.java:101)
                at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:176)
                at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:183)
                at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:125)
                at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)
                at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)
                at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:281)
                at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:161)
                at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
                at com.sun.tools.javadoc.Start.begin(Start.java:167)
                at com.sun.tools.javadoc.Main.execute(Main.java:59)
                at com.sun.tools.javadoc.Main.main(Main.java:49)
        com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
                at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:183)
                at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:183)
                at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:125)
                at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)
                at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)
                at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:281)
                at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:161)
                at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
                at com.sun.tools.javadoc.Start.begin(Start.java:167)
                at com.sun.tools.javadoc.Main.execute(Main.java:59)
                at com.sun.tools.javadoc.Main.main(Main.java:49)
        make[3]: *** [/w/jjg/work/6570730-classtree/tl/build/linux-amd64/docs/api/index.html] Error 1
        Approved for deferral by RT to 8

          Activity

          Hide
          jjg Jonathan Gibbons added a comment -
          BT2:EVALUATION

          The "disk full" is a bit of a red herring -- this behavior is likely for any problems creating output files.

          Maybe there should be two types of DocletAbortException, one for exceptions which have been handled and an error message generated, and another for unexpected exceptions.
          Show
          jjg Jonathan Gibbons added a comment - BT2:EVALUATION The "disk full" is a bit of a red herring -- this behavior is likely for any problems creating output files. Maybe there should be two types of DocletAbortException, one for exceptions which have been handled and an error message generated, and another for unexpected exceptions.
          Hide
          kizune Alexander Zuev added a comment -
          Right now in the jdk8 it throws two exceptions: IOException for not been able to create parent directories and DocletAbortException for not being able to complete of the doclet generation. The full output is like
          Loading source file Test.java...
          Constructing Javadoc information...
          Standard Doclet version 1.8.0-internal
          Building tree for all the packages and classes...
          java.io.IOException: could not create parent directories
          at com.sun.tools.javac.file.RegularFileObject.ensureParentDirectoriesExist(RegularFileObject.java:199)
          at com.sun.tools.javac.file.RegularFileObject.openOutputStream(RegularFileObject.java:102)
          at com.sun.tools.doclets.internal.toolkit.util.StandardDocFileFactory$StandardDocFile.openWriter(StandardDocFileFactory.java:171)
          at com.sun.tools.doclets.formats.html.markup.HtmlWriter.<init>(HtmlWriter.java:183)
          at com.sun.tools.doclets.formats.html.markup.HtmlDocWriter.<init>(HtmlDocWriter.java:64)
          at com.sun.tools.doclets.formats.html.HtmlDocletWriter.<init>(HtmlDocletWriter.java:104)
          at com.sun.tools.doclets.formats.html.SubWriterHolderWriter.<init>(SubWriterHolderWriter.java:60)
          at com.sun.tools.doclets.formats.html.ClassWriterImpl.<init>(ClassWriterImpl.java:78)
          at com.sun.tools.doclets.formats.html.WriterFactoryImpl.getClassWriter(WriterFactoryImpl.java:93)
          at com.sun.tools.doclets.internal.toolkit.builders.BuilderFactory.getClassBuilder(BuilderFactory.java:143)
          at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:194)
          at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:195)
          at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:179)
          at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:127)
          at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:82)
          at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:80)
          at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:491)
          at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
          at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
          at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
          at com.sun.tools.javadoc.Start.begin(Start.java:219)
          at com.sun.tools.javadoc.Start.begin(Start.java:205)
          at com.sun.tools.javadoc.Main.execute(Main.java:64)
          at com.sun.tools.javadoc.Main.main(Main.java:54)
          com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
          at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:199)
          at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:195)
          at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:179)
          at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:127)
          at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:82)
          at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:80)
          at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:491)
          at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
          at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
          at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
          at com.sun.tools.javadoc.Start.begin(Start.java:219)
          at com.sun.tools.javadoc.Start.begin(Start.java:205)
          at com.sun.tools.javadoc.Main.execute(Main.java:64)
          at com.sun.tools.javadoc.Main.main(Main.java:54)

          I'm not sure of how exactly should the correct error message look like. Should we just report a problem and suppress the stack trace dump?
          Show
          kizune Alexander Zuev added a comment - Right now in the jdk8 it throws two exceptions: IOException for not been able to create parent directories and DocletAbortException for not being able to complete of the doclet generation. The full output is like Loading source file Test.java... Constructing Javadoc information... Standard Doclet version 1.8.0-internal Building tree for all the packages and classes... java.io.IOException: could not create parent directories at com.sun.tools.javac.file.RegularFileObject.ensureParentDirectoriesExist(RegularFileObject.java:199) at com.sun.tools.javac.file.RegularFileObject.openOutputStream(RegularFileObject.java:102) at com.sun.tools.doclets.internal.toolkit.util.StandardDocFileFactory$StandardDocFile.openWriter(StandardDocFileFactory.java:171) at com.sun.tools.doclets.formats.html.markup.HtmlWriter.<init>(HtmlWriter.java:183) at com.sun.tools.doclets.formats.html.markup.HtmlDocWriter.<init>(HtmlDocWriter.java:64) at com.sun.tools.doclets.formats.html.HtmlDocletWriter.<init>(HtmlDocletWriter.java:104) at com.sun.tools.doclets.formats.html.SubWriterHolderWriter.<init>(SubWriterHolderWriter.java:60) at com.sun.tools.doclets.formats.html.ClassWriterImpl.<init>(ClassWriterImpl.java:78) at com.sun.tools.doclets.formats.html.WriterFactoryImpl.getClassWriter(WriterFactoryImpl.java:93) at com.sun.tools.doclets.internal.toolkit.builders.BuilderFactory.getClassBuilder(BuilderFactory.java:143) at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:194) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:195) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:179) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:127) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:82) at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:80) at com.sun.tools.doclets.standard.Standard.start(Standard.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:491) at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310) at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189) at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366) at com.sun.tools.javadoc.Start.begin(Start.java:219) at com.sun.tools.javadoc.Start.begin(Start.java:205) at com.sun.tools.javadoc.Main.execute(Main.java:64) at com.sun.tools.javadoc.Main.main(Main.java:54) com.sun.tools.doclets.internal.toolkit.util.DocletAbortException at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:199) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:195) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:179) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:127) at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:82) at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:80) at com.sun.tools.doclets.standard.Standard.start(Standard.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:491) at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310) at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189) at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366) at com.sun.tools.javadoc.Start.begin(Start.java:219) at com.sun.tools.javadoc.Start.begin(Start.java:205) at com.sun.tools.javadoc.Main.execute(Main.java:64) at com.sun.tools.javadoc.Main.main(Main.java:54) I'm not sure of how exactly should the correct error message look like. Should we just report a problem and suppress the stack trace dump?
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/2c24a04ebfb4
          User: kizune
          Date: 2013-09-27 17:20:42 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/2c24a04ebfb4 User: kizune Date: 2013-09-27 17:20:42 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk8/jdk8/langtools/rev/2c24a04ebfb4
          User: lana
          Date: 2013-10-11 17:38:51 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/jdk8/langtools/rev/2c24a04ebfb4 User: lana Date: 2013-10-11 17:38:51 +0000

            People

            • Assignee:
              kizune Alexander Zuev
              Reporter:
              jjg Jonathan Gibbons
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: