On May 7, 2008, at 7:32 PM, Alex Villazon wrote:
>
>
>> Alternatively, could I suggest you try using abc's JastAdd-based  
>> frontend by
>> specifying "-ext abc.ja"? This has in the past proven to be more  
>> reliable
>> than the polyglot frontend in such matters.
>
>  I downloaded the JastAdd version, but I have a problem to run the  
> extension
>
>  abc -verbose -ext abc.ja -injars myrt.jar -debug  
> dontCheckExceptions  -sourceroots simpleabc/ -outjar abcrt.jar
> abc started on Wed May 07 18:11:51 GMT+01:00 2008
> Loading .java file: /home/villazon/Dummy.java in 535 ms
> Warning: Could not use /home/villazon/Documents/java/jdk1.5.0_15/jre/ 
> lib/i18n.jar as class path
> Warning: Could not use /home/villazon/Documents/java/jdk1.5.0_15/jre/ 
> lib/sunrsasign.jar as class path
> Warning: Could not use /home/villazon/Documents/java/jdk1.5.0_15/jre/ 
> classes as class path
> Loading .class file: java.util.BitSet from /home/villazon/Documents/ 
> java/jdk1.5.0_15/jre/lib/rt.jar in 54 ms
> Loading .class file: java.util.UnknownFormatConversionException  
> from /home/villazon/Documents/java/jdk1.5.0_15/jre/lib/rt.jar in 1 ms
> Loading .class file: java.util.Stack from /home/villazon/Documents/ 
> java/jdk1.5.0_15/jre/lib/rt.jar in 12 ms
> Loading .class file: java.util.zip.ZipFile$3 from /home/villazon/ 
> Documents/java/jdk1.5.0_15/jre/lib/rt.jar in 1 ms
> Exception in thread "main" polyglot.util.InternalCompilerError:  
> unhandled exception during compilation
>         at abc.main.CompileSequence.runSequence(CompileSequence.java: 
> 110)
>         at abc.main.Main.run(Main.java:406)
>         at abc.main.Main.main(Main.java:144)
> Caused by: java.lang.NullPointerException
>         at abc.ja.CompileSequence.compile(CompileSequence.java:147)
>         at abc.main.CompileSequence.runSequence(CompileSequence.java: 
> 100)
>         ... 2 more
>
>    I also tried the abc-ja-exts-complete.jar but I have the same  
> problem
Hi,
   I have yet problems to run the ja extension, even weaving any JDK  
class... I have here a trace when weaving the standard java2demo jar..
    Any idea what could it be? How can I enabling some debug traces to  
see where it fails?
    Isn't JastAdd replacing polyglot front-end? Why the exception  
happens in polyglot.util ?
Cheers,
Alex
java -cp /home/villazon/abc/lib/abc-ja-complete.jar abc.main.Main - 
verbose -ext abc.ja -injars demo/Java2D/Java2Demo.jar -sourceroots  
simpleabc/ -outjar abcaspect.jar
abc started on Thu May 08 09:43:47 GMT+01:00 2008
Loading .java file: /home/villazon/simpleabc/Dummy.java in 480 ms
Warning: Could not use /home/villazon/Documents/java/jdk1.5.0_15/jre/ 
lib/i18n.jar as class path
Warning: Could not use /home/villazon/Documents/java/jdk1.5.0_15/jre/ 
lib/sunrsasign.jar as class path
Warning: Could not use /home/villazon/Documents/java/jdk1.5.0_15/jre/ 
classes as class path
Loading .class file: java2d.AnimatingControlsSurface from demo/Java2D/ 
Java2Demo.jar in 36 ms
Loading .class file: java2d.AnimatingSurface from demo/Java2D/ 
Java2Demo.jar in 0 ms
Loading .class file: java2d.CloningFeature from demo/Java2D/ 
Java2Demo.jar in 1 ms
Loading .class file: java2d.ControlsSurface from demo/Java2D/ 
Java2Demo.jar in 0 ms
Loading .class file: java2d.CustomControls$1 from demo/Java2D/ 
Java2Demo.jar in 1 ms
Exception in thread "main" polyglot.util.InternalCompilerError:  
unhandled exception during compilation
         at abc.main.CompileSequence.runSequence(CompileSequence.java: 
110)
         at abc.main.Main.run(Main.java:406)
         at abc.main.Main.main(Main.java:144)
Caused by: java.lang.NullPointerException
         at abc.ja.CompileSequence.compile(CompileSequence.java:147)
         at abc.main.CompileSequence.runSequence(CompileSequence.java: 
100)
         ... 2 more
Received on Thu May 08 2008 - 09:53:38 BST
This archive was generated by hypermail 2.2.0 : Thu May 08 2008 - 11:10:11 BST