Compiler internal error. Process terminated with exit code -1

Hello,

I just got this error with Intellij 10.5. I use Maven 3 to build my projet with AspectJ 1.6.11. The Maven build is ok. I got this error then I launch the Intellij command "Make project".

Inside intellij.log I have :
2011-06-24 23:29:57,751 [15877681]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2011-06-24 23:30:03,649 [15883579]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED; Errors: 1; warnings: 0 took 5898 ms: 0 min 5sec

Path to ajc compiler is set to "D:\aspectj1.6\lib\aspectjtools.jar". The command line is "-target 1.6". All the source code is 1.6.

I don't know what is wrong. Any idea?

Thanks for your help,

Nicolas

8 comments
Comment actions Permalink

Hi Nicolas,

are there any messages in IDEA's Messages tool window? Any difference if you do Build | Rebuild Project?

0
Comment actions Permalink

The message window contains :

Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Compiler internal error. Process terminated with exit code 1

Whatever I launched (make project, rebuild project)

0
Comment actions Permalink

Please stop IDEA and add the following text in the log.xml file (before <root> tag):

  <category name="#com.intellij.lang.aspectj.compiler.ajc.AjcCompiler">
    <level value="DEBUG"/>
    <appender-ref ref="FILE"/>
  </category>



Then run compiler and check idea.log again (or attach it here so I can see).
0
Comment actions Permalink

Thanks for this great tip.

The error comes from ICU4J. A ICU4J class contains invalids byte codes. To solve this issue I update from 2.6.3 to 2.8.0.

Now Ajc go OOM (even with Xmx 1024) and very slow build issues.

I will check this issues

0
Comment actions Permalink

Could you please post a piece of log with corresponding error message (plus some lines before and after)? May be I'll be able to make IDEA produce a more helpful message.

About speed and memory consumption - it may be the case if there are many dependencies (libraries) in a project.

0
Comment actions Permalink

Here is the log :

2011-06-30 20:45:35,885 [82604011]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc: abort ABORT -- (ClassFormatException) File: 'com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class': Invalid byte tag in constant pool: 60
2011-06-30 20:45:35,885 [82604011]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc: abort ABORT -- (ClassFormatException) File: 'com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class': Invalid byte tag in constant pool: 60
2011-06-30 20:45:35,885 [82604011]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc: File: 'com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class': Invalid byte tag in constant pool: 60
2011-06-30 20:45:35,885 [82604011]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc: File: 'com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class': Invalid byte tag in constant pool: 60
2011-06-30 20:45:35,885 [82604011]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc: org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class': Invalid byte tag in constant pool: 60
2011-06-30 20:45:35,885 [82604011]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc: org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class': Invalid byte tag in constant pool: 60
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.weaver.bcel.BcelWeaver.addAspectsFromJarFile(BcelWeaver.java:265)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.weaver.bcel.BcelWeaver.addAspectsFromJarFile(BcelWeaver.java:265)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.weaver.bcel.BcelWeaver.addLibraryJarFile(BcelWeaver.java:238)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.weaver.bcel.BcelWeaver.addLibraryJarFile(BcelWeaver.java:238)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:864)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:864)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:245)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:245)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:181)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:181)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc: Compiler took 2390ms
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.tools.ajc.Main.run(Main.java:371)
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc: Compiler took 2390ms
2011-06-30 20:45:35,886 [82604012]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.tools.ajc.Main.run(Main.java:371)
2011-06-30 20:45:35,887 [82604013]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      
2011-06-30 20:45:35,887 [82604013]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      
2011-06-30 20:45:35,887 [82604013]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.tools.ajc.Main.runMain(Main.java:248)
2011-06-30 20:45:35,887 [82604013]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.tools.ajc.Main.runMain(Main.java:248)
2011-06-30 20:45:35,887 [82604013]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.tools.ajc.Main.main(Main.java:84)
2011-06-30 20:45:35,887 [82604013]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:      at org.aspectj.tools.ajc.Main.main(Main.java:84)
2011-06-30 20:45:35,887 [82604013]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:  
2011-06-30 20:45:35,887 [82604013]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:  
2011-06-30 20:45:35,962 [82604088]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:  
2011-06-30 20:45:35,962 [82604088]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:  
2011-06-30 20:45:35,962 [82604088]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:  
2011-06-30 20:45:35,962 [82604088]  DEBUG - pectj.compiler.ajc.AjcCompiler - ajc:  
2011-06-30 20:45:36,164 [82604290]   INFO - lij.compiler.impl.CompilerUtil -      COMPILATION FINISHED; Errors: 1; warnings: 3 took 9511 ms: 0 min 9sec

0
Comment actions Permalink

Thank you.
I added a handler for this kind of messages so that IDEA won't just swallow them silently.

0
Comment actions Permalink

Hi,

i got the same error with exit code 4. I set the (intelliJ) java compiler to "Javac in-process (Java6+ only)" to fix it.

0

Please sign in to leave a comment.