This is the mail archive of the kawa@sources.redhat.com 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: problem with telnet server



-----Original Message-----
From: Per Bothner [mailto:per@bothner.com]
Sent: donderdag 22 augustus 2002 20:54
To: Pinte_Stanislas@emc.com
Cc: kawa@sources.redhat.com
Subject: Re: problem with telnet server


Pinte_Stanislas@emc.com wrote:
> using the kawa telnet client, I think there is a bug somewhere...
> when you evaluate the following expressions in a telnet window, the kawa
> process crashes the JVM
> 
> (define (append-tab string)
>   (string-append string "\t"))
> 
> (define (get-line start values line end)
>   (if (empty? values)
>       (string-append (append-tab (string-append start line)) end)
>       (get-line (cdr values)
> 		     (string-append (append-tab line) (car values)))))

I now get:
<stdin>:7:8: call to 'get-line' has too few arguments (2; must be 4)

Right, but ....

The telnet server still crashes, in place of sending back the problem to the
TELNET client.

here is what I got on client-side:

bad call: too few args for get-line
<stdin>:6:2: warning - too few args for get-line
<stdin>:6:2: internal error while compiling - caught:
java.lang.NullPointerExcep
tion
java.lang.NullPointerException
        at gnu.bytecode.CodeAttr.emitLoad(CodeAttr.java:1019)
        at gnu.expr.LambdaExp.loadHeapFrame(LambdaExp.java:421)
        at gnu.expr.Declaration.loadOwningObject(Declaration.java:94)
        at gnu.expr.Declaration.load(Declaration.java:104)
        at gnu.expr.ReferenceExp.compile(ReferenceExp.java:113)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:370)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:104)
        at gnu.expr.Expression.compileNotePosition(Expression.java:82)
        at gnu.expr.Expression.compileWithPosition(Expression.java:69)
        at gnu.expr.IfExp.compile(IfExp.java:120)
        at gnu.expr.IfExp.compile(IfExp.java:51)
        at gnu.expr.Expression.compileNotePosition(Expression.java:82)
        at gnu.expr.Expression.compileWithPosition(Expression.java:69)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1336)
        at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1308)
        at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:520)
        at gnu.expr.SetExp.compile(SetExp.java:145)
        at gnu.expr.Expression.compileNotePosition(Expression.java:82)
        at gnu.expr.Expression.compileWithPosition(Expression.java:69)
        at gnu.expr.BeginExp.compile(BeginExp.java:80)
        at gnu.expr.Expression.compileWithPosition(Expression.java:72)
        at gnu.expr.LetExp.compile(LetExp.java:73)
        at gnu.expr.Expression.compileWithPosition(Expression.java:72)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1336)
        at gnu.expr.Compilation.addClass(Compilation.java:1303)
        at gnu.expr.Compilation.<init>(Compilation.java:742)
        at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:75)
        at gnu.expr.ModuleExp.eval(ModuleExp.java:43)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:185)
        at kawa.Shell.run(Shell.java:231)
        at kawa.Shell.run(Shell.java:180)
        at kawa.Shell.run(Shell.java:167)
        at kawa.SocketRepl.apply0(repl.java:616)
        at gnu.mapping.Future.run(Future.java:61)


-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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