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: Kawa fails in JavaEE


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/


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