I ran into this with a class only holding static methods:
public class foo {
public static void bar() {
...
}
}
Adding a dummy constructor helped in my case. I guess this is because of pythons nature were classes are actually already objects (there is a long post about metaclasses giving some details about class understanding in python, its worthy a read eventhough it is a different topic), and jython trying to make the class an object before running the function eventhough it is static. I f this would be true that might be a bug report. (I am testing on jython2.5).
update: I don't consider my theroy for thecause to likely since I believe Java has some pure static classes as well. However the solution resolved the issue twice.
with dummy constructor:
public class foo {
public foo() {} //!This dummy constructor did the trick for me
public static void bar() {
...
}
}