From: Kevin B. <kb...@ca...> - 2001-06-22 20:55:31
|
Is the class & method you're trying to call public? Also, you can edit the "respectJavaAccessibility" property in the jython "registry" file to allow access to protected/private classes & methods. kb "W. Jarrett Campbell" wrote: > Thanks to all for the tips on how to pass an array of strings to get > my jython experiment working. But now I get an > IllegalAccessException. Any clues?I needed to pass an array of > strings to the ArrayBenchmark class. But now I get this exception:>>> > com.ydyn.dynamo.test.ArrayBenchmark.main(['10', '100']) > Traceback (innermost last): > File "<console>", line 1, in ? > java.lang.IllegalAccessException > at java.lang.reflect.Method.invoke(Native Method) > at > org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java > :158) > at > org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java > :166) > at org.python.core.PyObject.__call__(PyObject.java:272) > at org.python.core.PyObject.invoke(PyObject.java:2105) > at org.python.pycode._pyx2.f$0(<console>) > at org.python.pycode._pyx2.call_function(<console>) > at org.python.core.PyTableCode.call(PyTableCode.java:155) > at org.python.core.Py.runCode(Py.java:1055) > at org.python.core.Py.exec(Py.java:1076) > at > org.python.util.PythonInterpreter.exec(PythonInterpreter.java:145) > at > org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter > .java:87) > at > org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret > er.java:68) > at > org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret > er.java:42) > at > org.python.util.InteractiveConsole.push(InteractiveConsole.java:83) > at > org.python.util.InteractiveConsole.interact(InteractiveConsole.java:6 > 2) > at > org.python.util.jython.main(jython.java:178) java.lang.IllegalAccessException: > java.lang.IllegalAccessException > >>> > > [Image] W. Jarrett Campbell, Ph.D. 512.323.9149 Member of the office Technical Staff 512.257.9503 fax Yield Dynamics, 512.415.1078 Inc. mobile 5838 Balcones ja...@yd... Drive, Ste. 101 http://www.ydyn.com Austin, TX 78731 > |