This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Kawa fails in JavaEE
- From: Per Bothner <per at bothner dot com>
- To: kawa at sourceware dot org
- Date: Thu, 22 Jul 2010 21:17:29 -0700
- Subject: Re: Kawa fails in JavaEE
- References: <4C46DD3A.1080603@fastwebnet.it>
On 07/21/2010 04:42 AM, Daniele Benegiamo wrote:
I'm trying to use Kawa (v. 1.9.90) for scripting in a JavaEE project (in
both EJB and JSF layers).
...
Trying to parse a Scheme file using LispReader.readObject():
Caused by: java.lang.NullPointerException
at
gnu.mapping.InheritingEnvironment.lookupInherited(InheritingEnvironment.java:72)
at
gnu.mapping.InheritingEnvironment.getLocation(InheritingEnvironment.java:100)
It looks like CallContext.getEnvironment() is called before
gnu.expr.Language is initialized. That's not necessarily a threading
problem - it may be just you're initializing Kawa in a non-standard way.
It might be useful to see a stacktrace from when
CallContext.getEnvironment()
is called - add a new Error("xxx").printStackTrace() there.
You might want to check out the "auto servlet" mechanism:
http://www.gnu.org/software/kawa/server/auto-servlet.html
This has been recently improved in various ways - check out
the version of the Kawa manual in the source repository.
(On a GNU/Linux/Unix system you can do 'cd doc; make kawa.html',
and then browse doc/kawa.html/XML-tools.html .)
--
--Per Bothner
per@bothner.com http://per.bothner.com/