From: John E. C. <jc...@ve...> - 2001-03-23 15:50:48
|
Hi Finn, >Not very helpfull I know, but your example works for me. ...you somehow have both jpython.jar and jython.jar on your >classpath. Actually you were most helpful! While I did make sure I was not using both jars during my tests, after reading your email, I noticed that I had a branch of my development tree with jpython classes in it. After removing this old code, both problems no longer occurred. thanks very much, John At 09:56 AM 3/23/01 +0000, you wrote: >[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 > ************************************************************************ John E. Conlon jc...@ve... tel: (770) 886-5470 fax: (770) 888-6894 <http://www.verticon.com/>www.verticon.com ************************************************************************ |