You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ajcore.adoc 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. [[ajcore]]
  2. = AspectJ Core Files
  3. [[ajcore-introduction]]
  4. == Introduction
  5. When the compiler terminates abnormally, either because a particular
  6. kind of message was issued or an exception was thrown, an AspectJ core
  7. file will be produced. You will find it the working directory of the
  8. compiler and it will have a name that contains the date and time that
  9. the file was produced e.g. `ajcore.20060810.173655.626.txt`. The file
  10. contains details of the problem such as the exception thrown as well as
  11. information about the environment such as operating system and Java
  12. version. When submitting a bug, include this file whenever it is
  13. available.
  14. [[configuration]]
  15. === Configuring dump files
  16. By default AspectJ will only create an `ajcore` file when an unexpected
  17. exception is thrown by the weaver or an `abort` message is issued.
  18. However it is possible to disable this feature or enable files to be
  19. produced under different circumstances. The table below lists the System
  20. properties that can be used to configure `ajcore` files.
  21. [cols=",,",options="header",]
  22. |===
  23. |Property |Default |Description
  24. |`org.aspectj.weaver.Dump.exception` |`true` |Generate an `ajcore` files
  25. when an exception thrown.
  26. |`org.aspectj.weaver.Dump.condition` |`abort` |Message kind for which to
  27. generate `ajcore` e.g. `error`.
  28. |`org.aspectj.dump.directory` |`none` |The directory used for ajcore
  29. files.
  30. |===
  31. [[ajcore-examples]]
  32. === AJCore File Examples
  33. Below is an extract from an `ajcore` file. You will see details of the
  34. dump configuration as well as the exception (with stack trace) that is
  35. the source of the problem and any messages issued by the compiler. Most
  36. importantly the exact version of AspectJ is included.
  37. [source, text]
  38. ....
  39. ---- AspectJ Properties ---
  40. AspectJ Compiler DEVELOPMENT built on Tuesday Jul 25, 2006 at 13:00:09 GMT
  41. ---- Dump Properties ---
  42. Dump file: ajcore.20060810.173655.626.txt
  43. Dump reason: java.lang.NoClassDefFoundError
  44. Dump on exception: true
  45. Dump at exit condition: abort
  46. ---- Exception Information ---
  47. java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  48. at org.aspectj.weaver.tools.CommonsTraceFactory.<init>(CommonsTraceFactory.java:17)
  49. at java.lang.Class.newInstance0(Native Method)
  50. at java.lang.Class.newInstance(Class.java:232)
  51. at org.aspectj.weaver.tools.TraceFactory.<clinit>(TraceFactory.java:35)
  52. at org.aspectj.weaver.World.<clinit>(World.java:114)
  53. at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:679)
  54. at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:224)
  55. at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:164)
  56. at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
  57. at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
  58. at org.aspectj.tools.ajc.Main.run(Main.java:367)
  59. at org.aspectj.tools.ajc.Main.runMain(Main.java:246)
  60. at org.aspectj.tools.ajc.Main.main(Main.java:86)
  61. ---- System Properties ---
  62. java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
  63. sun.boot.library.path=C:\jdk1.3.1_16\jre\bin
  64. java.vm.version=1.3.1_16-b06
  65. java.vm.vendor=Sun Microsystems Inc.
  66. java.vendor.url=https://java.sun.com/
  67. path.separator=;
  68. java.vm.name=Java HotSpot(TM) Client VM
  69. file.encoding.pkg=sun.io
  70. java.vm.specification.name=Java Virtual Machine Specification
  71. user.dir=C:\workspaces\org.aspectj\org.aspectj.ant.tests
  72. java.runtime.version=1.3.1_16-b06
  73. java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
  74. os.arch=x86
  75. java.io.tmpdir=C:\DOCUME~1\IBM_user\LOCALS~1\Temp\
  76. line.separator=
  77. java.vm.specification.vendor=Sun Microsystems Inc.
  78. java.awt.fonts=
  79. os.name=Windows XP
  80. java.library.path=C:\jdk1.3.1_16\jre\bin;...
  81. java.specification.name=Java Platform API Specification
  82. java.class.version=47.0
  83. os.version=5.1
  84. user.home=C:\Documents and Settings\IBM_user
  85. user.timezone=Europe/London
  86. java.awt.printerjob=sun.awt.windows.WPrinterJob
  87. file.encoding=Cp1252
  88. java.specification.version=1.3
  89. java.class.path=C:\workspaces\org.aspectj\aj-build\dist\tools\lib\aspectjtools.jar
  90. user.name=IBM_user
  91. java.vm.specification.version=1.0
  92. java.home=C:\jdk1.3.1_16\jre
  93. user.language=en
  94. java.specification.vendor=Sun Microsystems Inc.
  95. awt.toolkit=sun.awt.windows.WToolkit
  96. java.vm.info=mixed mode
  97. java.version=1.3.1_16
  98. java.ext.dirs=C:\jdk1.3.1_16\jre\lib\ext
  99. sun.boot.class.path=C:\jdk1.3.1_16\jre\lib\rt.jar;...
  100. java.vendor=Sun Microsystems Inc.
  101. file.separator=\
  102. java.vendor.url.bug=https://java.sun.com/cgi-bin/bugreport.cgi
  103. sun.io.unicode.encoding=UnicodeLittle
  104. sun.cpu.endian=little
  105. user.region=GB
  106. sun.cpu.isalist=pentium i486 i386
  107. ---- Command Line ---
  108. -d
  109. C:\workspaces\org.aspectj\org.aspectj.ant.tests\IncrementalAjcTaskTest-temp
  110. -g:none
  111. -deprecation
  112. -noExit
  113. -warn:-unusedImport
  114. -nowarn
  115. -XterminateAfterCompilation
  116. -preserveAllLocals
  117. -proceedOnError
  118. -referenceInfo
  119. -source
  120. 1.3
  121. -target
  122. 1.1
  123. -time
  124. -verbose
  125. -classpath
  126. C:\workspaces\org.aspectj\org.aspectj.ant.tests\..\lib\test\aspectjrt.jar
  127. -argfile
  128. C:\workspaces\org.aspectj\taskdefs\testdata\default.lst
  129. -messageHolder
  130. org.aspectj.bridge.MessageHandler
  131. ---- Full Classpath ---
  132. Empty
  133. ---- Compiler Messages ---
  134. abort ABORT -- (NoClassDefFoundError) org/apache/commons/logging/LogFactory
  135. org/apache/commons/logging/LogFactory
  136. java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  137. at org.aspectj.weaver.tools.CommonsTraceFactory.<init>(CommonsTraceFactory.java:17)
  138. at java.lang.Class.newInstance0(Native Method)
  139. at java.lang.Class.newInstance(Class.java:232)
  140. at org.aspectj.weaver.tools.TraceFactory.<clinit>(TraceFactory.java:35)
  141. at org.aspectj.weaver.World.<clinit>(World.java:114)
  142. at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:679)
  143. at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:224)
  144. at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:164)
  145. at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
  146. at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
  147. at org.aspectj.tools.ajc.Main.run(Main.java:367)
  148. at org.aspectj.tools.ajc.Main.runMain(Main.java:246)
  149. at org.aspectj.tools.ajc.Main.main(Main.java:86)
  150. ....