java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: org.python.core.PyBuiltinFunctionSet.<init>(Ljava/lang/String;IIIZLjava/lang/String;)V
06-24 11:30:13,003 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyException.fillInStackTrace(PyException.java:70)
06-24 11:30:13,003 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at java.lang.Throwable.<init>(Throwable.java:181)
06-24 11:30:13,003 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at java.lang.Exception.<init>(Exception.java:29)
06-24 11:30:13,003 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at java.lang.RuntimeException.<init>(RuntimeException.java:32)
06-24 11:30:13,003 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyException.<init>(PyException.java:46)
06-24 11:30:13,003 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyException.<init>(PyException.java:43)
06-24 11:30:13,003 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.Py.JavaError(Py.java:495)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.Py.JavaError(Py.java:488)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyJavaType.init(PyJavaType.java:541)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyType.createType(PyType.java:1264)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyType.addFromClass(PyType.java:1201)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyType.fromClass(PyType.java:1291)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.adapter.ClassicPyObjectAdapter$6.adapt(ClassicPyObjectAdapter.java:76)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.adapter.ExtensiblePyObjectAdapter.adapt(ExtensiblePyObjectAdapter.java:44)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.adapter.ClassicPyObjectAdapter.adapt(ClassicPyObjectAdapter.java:120)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.Py.java2py(Py.java:1563)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyJavaPackage.addClass(PyJavaPackage.java:89)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:138)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.PyObject.__findattr__(PyObject.java:863)
06-24 11:30:13,004 NOTICE [SubProcessStreamReader] [jerryWeb STDOUT] : at org.python.core.imp.importFromAs(imp.java:1015)
问题原因:一:jar包冲突,此次是因为在linux系统下部署,出现了
Hibernate Core Libraries 中的 cglib-2.2.jar 和 Spring AOP Librariest 中的 cglib-nodep-2.2.jar 版本不一致 发生冲突。
二:python连接数据库有问题。
解决方法:
一:删除Hibernate Core Libraries 中的 cglib-2.2.jar
二:把项目lib中的zxJDBC.jar移出来,移到和项目同级目录下的lib中和ojdbc14.jar放在一起。