JPython1.1 jpythonc2 applet problems

Douglas du Boulay ddb at
Thu Mar 22 04:57:59 CET 2001

I built a java applet using the jpythonc2 compiler and it 
runs perfectly well as a stand alone application. 

Unfortunately when I put it on a web server I get web browser 
security   member access violations as follows: security.member access
  at java.lang.Class.checkMemberAccess(
  at java.lang.Class.getDeclaredConstructors(
  at org.python.compiler.ProxyMaker.addConstructors(
  at org.python.core.MakeProxies.makeProxy(
  at org.python.core.PyClass.init(
  at org.python.core.Py.makeClass(
  at jstar.main$66(
  at jstar$_PyInner.call_function(

The original python code in question is:
# file:
from star import VStar  # where star is a java package and
			# VStar is a java class in the package
class JSParse(VStar):

and this is translated into  the following java:
903 private static PyObject main$66(PyFrame frame) {  
915     frame.setglobal("VStar",
916     frame.setglobal("JSParse", Py.makeClass("JSParse", new
PyObject[] {
                            frame.getglobal("VStar")}, c$47_JSParse,

The question: Is is possible that this is an artifact of the "star" java 
package being imported via the wrong route (sys.path and not python.path
or something?), and is  there a way that jpythonc2 can actually create
relevant proxy classes at compile time rather than at run time in the 
web browser which requires java reflection class introspection and its
associated security monitoring? 


More information about the Python-list mailing list