From: <bc...@wo...> - 2001-03-23 09:58:46
|
[John E. Conlon] >Hi jython-users, > >While upgrading to Jython 2.0 from JPython 1.1, I have encountered a couple >of comparability problems with my old working code and 2.0. Enclosed is a >java file that demonstrates both problems. > >Problem #1. This code also throws a java.lang.NullPointerException > at >org.python.core.InternalTables.createInternalTables(InternalTables.java:44) > >If I uncomment the PySystemState.initialize(); line it will run. I don't >need this in 1.1. Why now? > >Problem #2. This code will also (When first problem is not encountered) >throw a >Traceback (innermost last): > File "<string>", line 7, in ? >java.lang.NoSuchMethodError > at org.python.core.MakeProxies.makeAdapter(MakeProxies.java:40)... > >If I remove the , 'actionPerformed=exit' from the JButton it will run. This >error is not thrown in 1.1. Not very helpfull I know, but your example works for me. Both with and without the initialize() call. The NoSuchMethodError exception could indicate that you somehow have both jpython.jar and jython.jar on your classpath. If you can't find the cause of the problems, please post the entire stacktraces for both siruations. Maybe that will give me a clue. regards, finn |