Re: [abc-users] polyglot.util.InternalCompilerError

From: Pavel Avgustinov <pavel.avgustinov@magdalen.oxford.ac.uk>
Date: Mon Nov 15 2004 - 15:42:48 GMT

Just a gut feeling, could you try if the same problem occurs if you try
compiling from a directory that doesn't contain a space in its path?

Is there a small example that you can reproduce the problem with on your
machine? I mean, just a directory structure with an empty class
definition that causes it, or something similar. It would be useful to
see exactly what goes wrong.

Cheers,
Pavel

James Crowley wrote:

>All the files in "environment" have "package environment;" in them.
>
>~ James
>
>-----Original Message-----
>From: Majordomo list server [mailto:majordomo@comlab.ox.ac.uk] On Behalf Of
>Oege de Moor
>Sent: 15 November 2004 15:19
>To: abc-users@comlab.ox.ac.uk
>Subject: Re: [abc-users] polyglot.util.InternalCompilerError
>
>
>>From the "differences" page on aspectbench:
>
>abc does not support compiling the class foo.Bar from a file Bar.java; you
>must make sure Bar resides in a directory that matches the package name,
>so foo/Bar.java (or some deeper path such as a/foo/Bar.java).
>
>do the .java files in "environment" all have "package environment;" in
>them?
>
>On Mon, 15 Nov 2004, James Crowley wrote:
>
>
>
>>Hi,
>>
>>I’m currently having trouble getting abc to compile my java files when I
>>start using packages. I was wondering if anyone could help?
>>
>>abc *.java
>>
>>works fine. But as soon as I try
>>
>>abc environment\World.java
>>or
>>abc –sourceroots .
>>
>>I get the following:
>>
>>Exception in thread "main" polyglot.util.InternalCompilerError: unhandled
>>exception during compilation
>> at abc.main.Main.run(Main.java:666)
>> at abc.main.Main.main(Main.java:196)
>>Caused by: java.lang.NullPointerException
>> at polyglot.types.reflect.ClassFileLoader.loadFromFile(ClassFileLoader.j
>>ava:188)
>> at polyglot.types.reflect.ClassFileLoader.loadClass(ClassFileLoader.java
>>:106)
>> at polyglot.types.reflect.ClassPathLoader.loadClass(ClassPathLoader.java
>>:62)
>> at polyglot.types.LoadedClassResolver.loadFile(LoadedClassResolver.java:
>>70)
>> at polyglot.types.LoadedClassResolver.find(LoadedClassResolver.java:104)
>> at polyglot.types.CompoundResolver.find(CompoundResolver.java:44)
>> at polyglot.types.CachingResolver.find(CachingResolver.java:104)
>> at polyglot.ext.jl.types.TypeSystem_c.forName(TypeSystem_c.java:1278)
>> at polyglot.ext.jl.types.TypeSystem_c.typeForName(TypeSystem_c.java:1301
>><snip>
>>
>>If I try adding the package path to the class path, I get
>>
>>Exception in thread "main" polyglot.util.InternalCompilerError: unhandled
>>except
>>ion during compilation
>> at abc.main.Main.run(Main.java:666)
>> at abc.main.Main.main(Main.java:196)
>>Caused by: soot.CompilationDeathException: Couldn't resolve classpath
>>
>>
>entry
>
>
>>D:\Program Files\Development\eclipse\workspace\AntViewer\environment:
>>java.io.IOException: The filename, directory name, or volume label syntax
>>
>>
>is
>
>
>>incorrect
>> at soot.SourceLocator.explodeClassPath(SourceLocator.java:331)
>> at soot.SourceLocator.getClassSource(SourceLocator.java:37)
>> at soot.Scene.tryLoadClass(Scene.java:292)
>> at soot.Scene.loadBasicClasses(Scene.java:838)
>> at abc.main.Main.initSoot(Main.java:740)
>> at abc.main.Main.run(Main.java:581)
>>
>>I’ve got the abc runtime and “.” In my class path, and I’m running Windows
>>XP… Any ideas?
>>
>>Many thanks,
>>
>>~ James Crowley
>>---------------------------------------------------------------------
>>Developer Fusion – Programming tutorials & articles
>>Codezone UK – The new UK developer resource
>>---------------------------------------------------------------------
>>Developer Fusion Blogs – Want one too? Just let me know!
>>
>>
>>
Received on Mon Nov 15 15:42:47 2004

This archive was generated by hypermail 2.1.8 : Mon Nov 15 2004 - 16:00:03 GMT