This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: eval on Android


* Per Bothner [2012-01-06 20:07] writes:

>> I'm trying to start a REPL on a socket but I always get
>> NullPointerExceptions during eval.
>> ....
>> java.lang.NullPointerException
>>          at kawa.lang.Eval.evalBody(Eval.java:74)
>
> Hm.  This looks like language == null, assuming the same line
> numbers as I have.  I.e. Language.getDefaultLanguage()
> returned null.  I haven't looked at this code in a while,
> so I don't remember how it's supposed to work.

I added a call to kawa.standard.Scheme:registerEnvironment.  Now it goes
a bit further until defineClass fails:

gnu.text.SyntaxException: 
<unknown>: internal compile error - caught java.lang.UnsupportedOperationException: can't load this type of class file
    java.lang.VMClassLoader.defineClass(Native Method)
    java.lang.ClassLoader.defineClass(ClassLoader.java:319)
    java.lang.ClassLoader.defineClass(ClassLoader.java:283)
    gnu.bytecode.ArrayClassLoader.loadClass(ArrayClassLoader.java:134)
...

the android-defs module should probably call registerEnvironment
automatically.

Helmut


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]