You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by cf...@bluedolphin.com on 2002/02/01 05:20:57 UTC

Problem with Python screens

We've been using Python screens with Turbine 2.1 for a few months now.
There are randomly occurring problems which cause a screen to be
unloadable.  When the interpreter fails to create the screen, the template
becomes unusable until the server is restarted.

The error I get is this:

   java.lang.NullPointerException
           at org.python.core.imp.load(imp.java:361)
   ...

This occurs when the PythonBaseFactory interprets the conf.py file.

First of all, does anyone know why there are sys.add_package() calls in the
sample conf.py file?  I don't see why they are necessary, and I wonder if
they have anything to do with my problem.

Secondly, I've looked at the Jython source, and there doesn't seem to be
any possible way a NullPointerException can be thrown there.  The Jython
runtime would have to be in a completely invalid state.  Has anyone
experienced this, or anything similar to this?

I'll try my luck  with the Jython folks, but I think this has something to
do with Turbine.


Chris Felaco
Sr. Software Developer
Blue Dolphin Group
(508) 358-6758



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>