This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Servlet error with the latest code
I made the following changes (couldn't apply the patch so manually
made the changes) and it works fine. However, now I get the same error
the first time I access a krl file.
java.lang.NullPointerException
gnu.mapping.InheritingEnvironment.<init>(InheritingEnvironment.java:18)
gnu.mapping.Environment.make(Environment.java:345)
gnu.mapping.CallContext.getEnvironment(CallContext.java:28)
gnu.mapping.Environment.getCurrent(Environment.java:311)
gnu.mapping.ThreadLocation.getLocation(ThreadLocation.java:78)
gnu.mapping.ThreadLocation.set(ThreadLocation.java:117)
gnu.expr.Language.setDefaultLanguage(Language.java:34)
gnu.kawa.servlet.KawaPageServlet.getModule(KawaPageServlet.java:78)
gnu.kawa.servlet.KawaPageServlet.run(KawaPageServlet.java:48)
gnu.kawa.servlet.KawaServlet.doGet(KawaServlet.java:66)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
So, for now I changed the Language.setDefaultLanguage(lang); to
Language.setDefaults(lang); which sets the Global Environment as well.
On 4/20/05, Per Bothner <per@bothner.com> wrote:
> S D wrote:
> > So, the Language settings are done after the InPort creation and the
> > creation of InPort itself is expecting the Global Environment to be
> > present.
>
> The interaction between Languages and Environments is something I want
> to fix. But the dependency on systemInPort on a ThreadLocation seems
> wrong/pointless anyway, so please try the attached patch.
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
>
>
>