Hi,

 

I am a newbie in the jython world.

I have created a java component that is using AXIS SOAP framework for doing web service request.

This java component works great in the java world.

Now I am trying to use it from jython and I get the following error:

 

java.lang.ClassCircularityError: org/apache/axis/message/SOAPBodyElement

        at java.lang.ClassLoader.resolveClass0(Native Method)

        at java.lang.ClassLoader.resolveClass(ClassLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClassFromBytes(SyspathJavaLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java(Compiled Code))

        at java.lang.ClassLoader.loadClass(ClassLoader.java:448)

        at java.lang.ClassLoader.resolveClass0(Native Method)

        at java.lang.ClassLoader.resolveClass(ClassLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClassFromBytes(SyspathJavaLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java(Compiled Code))

        at java.lang.ClassLoader.loadClass(ClassLoader.java:448)

        at java.lang.ClassLoader.defineClass0(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))

        at java.lang.ClassLoader.defineClass(ClassLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClassFromBytes(SyspathJavaLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java(Compiled Code))

        at java.lang.ClassLoader.loadClass(ClassLoader.java:448)

        at java.lang.ClassLoader.resolveClass0(Native Method)

        at java.lang.ClassLoader.resolveClass(ClassLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClassFromBytes(SyspathJavaLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java(Compiled Code))

        at java.lang.ClassLoader.loadClass(ClassLoader.java:448)

        at java.lang.ClassLoader.resolveClass0(Native Method)

        at java.lang.ClassLoader.resolveClass(ClassLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClassFromBytes(SyspathJavaLoader.java(Inlined Compiled Code))

        at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java(Compiled Code))

        at java.lang.ClassLoader.loadClass(ClassLoader.java:448)

        at java.lang.Class.getFields0(Native Method)

        at java.lang.Class.getFields(Class.java(Inlined Compiled Code))

        at org.python.core.PyJavaClass.getAccessibleFields(PyJavaClass.java(Compiled Code))

        at org.python.core.PyJavaClass.setFields(PyJavaClass.java(Compiled Code))

        at org.python.core.PyJavaClass.init__dict__(PyJavaClass.java(Inlined Compiled Code))

        at org.python.core.PyJavaClass.initialize(PyJavaClass.java(Compiled Code))

        at org.python.core.PyJavaClass.initConstructors(PyJavaClass.java)

        at org.python.core.PyJavaClass.__call__(PyJavaClass.java)

        at org.python.core.PyObject.__call__(PyObject.java)

        at org.python.pycode._pyx0.f$0(test.py:17)

        at org.python.pycode._pyx0.call_function(test.py)

        at org.python.core.PyTableCode.call(PyTableCode.java(Compiled Code))

        at org.python.core.PyCode.call(PyCode.java)

        at org.python.core.Py.runCode(Py.java)

        at org.python.core.__builtin__.execfile_flags(__builtin__.java)

        at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)

        at org.python.util.jython.main(jython.java)

 

java.lang.ClassCircularityError: java.lang.ClassCircularityError: org/apache/axis/message/SOAPBodyElement

 

Is it a bug from me or from jython interpreter ?

 

Thanks in advance for your help.

 

My java code is at this url : http://jeanguitou.jexiste.fr/tests/jython.zip

 

Regards

Jean-Guillaume LALANNE