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: Problems with calling Kawa from servlet


Ola Rinta-Koski wrote:
> What is the proper way of executing arbitrary Scheme expressions from Java 
> servlets? I keep getting
> 
> java.lang.ArrayIndexOutOfBoundsException
> 	at gnu.mapping.ValueStack.find(ValueStack.java:15)
> 	at gnu.lists.TreeList.writeObject(TreeList.java:426)
> 	at gnu.mapping.Values.writeValues(Values.java:192)
> 	at gnu.mapping.CallContext.writeValue(CallContext.java:302)
> 	at gnu.mapping.Procedure.apply(Procedure.java:129)
> 	at gnu.mapping.CallContext.runUntilDone(CallContext.java:239)
> 	at gnu.expr.ModuleExp.evalModule(ModuleExp.java:189)
> 	at kawa.lang.Eval.evalBody(Eval.java:84)
> 	at kawa.lang.Eval.evalBody(Eval.java:38)
> 	at kawa.standard.Scheme.eval(Scheme.java:756)
> 	at kawa.standard.Scheme.eval(Scheme.java:734)
> 	at kawa.standard.Scheme.eval(Scheme.java:739)
> 	at ...schemetest.doGet(schemetest.java:18)
> 
> after a few calls to eval(). The servlet is below, is there something 
> fundamentally wrong with it? (It runs fine the first few times and then dies.)

I suspect it's a bug in ValueStack or its superclass.  I'll see if I can
reproduce the problem.
-- 
	--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]