other-errors.dita 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
  3. <!--This file is part of the DITA Open Toolkit project. See the accompanying LICENSE.md file for applicable licenses.-->
  4. <reference id="troubleshooting" xml:lang="en-US">
  5. <title>Other error messages</title>
  6. <shortdesc>In addition to error messages generated by the DITA Open Toolkit, you might also encounter error messages
  7. generated by Java or other tools.</shortdesc>
  8. <refbody>
  9. <!--<section id="section_rtj_4gj_wd">
  10. <title>Warning: XML resolver not found; external catalogs will be ignored</title>
  11. <p>Caused by <codeph>org.apache.tools.ant.types.resolver.ApacheCatalogResolver</codeph> class not being available
  12. in Ant claspath.</p>
  13. <ol>
  14. <li>Check that <codeph>ANT_HOME</codeph> system variable is correctly set. </li>
  15. <li>Check that <filepath>$ANT_HOME/lib/ant-apache-resolver.jar</filepath> exists.</li>
  16. </ol>
  17. </section>
  18. <section id="section_gpl_dhj_wd">
  19. <title>List file dita.xml.properties or dita.list not found</title>
  20. <p> Encountered during preprocessing.</p>
  21. <ol>
  22. <li>Check that classpath contains <filepath>$DITA_HOME/lib/dost.jar</filepath>.</li>
  23. </ol>
  24. </section>-->
  25. <section id="out-of-memory-error">
  26. <title>Out of Memory error</title>
  27. <p>In some cases, you might receive a message stating the build has failed due to an <msgph>Out of Memory</msgph>
  28. error. Try the following approaches to resolve the problem:</p>
  29. <ol>
  30. <li>Increase the memory available to Java.</li>
  31. <li>Reduce memory consumption by setting the <option>generate-debug-attributes</option> option to
  32. <codeph>false</codeph>. This option is set in the <filepath>lib/configuration.properties</filepath> file.
  33. This will disable debug attribute generation (used to trace DITA-OT error messages back to source files) and
  34. will reduce memory consumption.</li>
  35. <li>Set <codeph>dita.preprocess.reloadstylesheet</codeph> Ant property to <codeph>true</codeph>. This will allow
  36. the XSLT processor to release memory when converting multiple files.</li>
  37. <li>Run the transformation again.</li>
  38. </ol>
  39. </section>
  40. <section>
  41. <title>java.io.IOException: Can't store Document</title>
  42. <p>After running a JavaHelp transformation, you may receive a <msgph>java.io.IOException: Can't store
  43. Document</msgph> message. </p>
  44. <p>This problem occurs when HTML files unrelated to the current transformation are found in the output directory.
  45. Delete the content of the output directory and run the transformation again.</p>
  46. </section>
  47. <!--<section><title>Failed to load message file</title><p>In some situations, the toolkit may fail to load the message
  48. file <filepath>messages.xml</filepath> and begin to throw exceptions.</p><p>To fix this problem, you need to
  49. check if the files <filepath>resources/messages.xml</filepath> and <filepath>resources/messages.dtd</filepath>
  50. exist in the toolkit. If not, please copy them from the toolkit's root directory.</p></section>
  51. <section><title>Commas in file names</title><p>Commas in file names will cause trouble during the processing because
  52. Ant uses commas as a delimiter when processing batch files in a list. Please avoid using commas in the name of
  53. DITA files.</p></section>-->
  54. <section>
  55. <title>Stack Overflow error</title>
  56. <p>If you receive an error about a stack memory overflow, increase the memory available to Java and run the
  57. transformation again.</p>
  58. </section>
  59. </refbody>
  60. </reference>