Skip to content

Instantly share code, notes, and snippets.

@paolodina
Last active August 29, 2015 14:01
Show Gist options
  • Save paolodina/2374900b94d841602339 to your computer and use it in GitHub Desktop.
Save paolodina/2374900b94d841602339 to your computer and use it in GitHub Desktop.
java native runtime - jython exception (trunk @d664624)
import: trying org.python.modules.posix.PosixModule as builtin modules in SysPathJavaLoader
import: 'posix' as org.python.modules.posix.PosixModule in builtin modules
Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
java.lang.NoClassDefFoundError: Could not initialize class jnr.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder
at jnr.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:123)
at jnr.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:34)
at jnr.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:20)
at jnr.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:81)
at jnr.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:42)
at jnr.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:33)
at jnr.posix.LazyPOSIX.posix(LazyPOSIX.java:29)
at jnr.posix.LazyPOSIX.isNative(LazyPOSIX.java:287)
at org.python.modules.posix.PosixModule.classDictInit(PosixModule.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.python.core.PyJavaType.init(PyJavaType.java:544)
at org.python.core.PyType.createType(PyType.java:1356)
at org.python.core.PyType.addFromClass(PyType.java:1293)
at org.python.core.PyType.fromClass(PyType.java:1383)
at org.python.core.imp.createFromClass(imp.java:412)
at org.python.core.imp.loadBuiltin(imp.java:508)
at org.python.core.imp.find_module(imp.java:459)
at org.python.core.imp.import_next(imp.java:737)
at org.python.core.imp.import_module_level(imp.java:856)
at org.python.core.imp.importName(imp.java:946)
at org.python.core.ImportFunction.__call__(__builtin__.java:1301)
at org.python.core.PyObject.__call__(PyObject.java:373)
at org.python.core.__builtin__.__import__(__builtin__.java:1254)
at org.python.core.imp.importAll(imp.java:1066)
at os$py.f$0(/home/paolo/jdevel/golap-workspace/jython-jython-06161ebf74ee/dist/Lib/os.py:705)
at os$py.call_function(/home/paolo/jdevel/golap-workspace/jython-jython-06161ebf74ee/dist/Lib/os.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:393)
at org.python.core.imp.createFromPyClass(imp.java:209)
at org.python.core.imp.loadFromSource(imp.java:574)
at org.python.core.imp.find_module(imp.java:480)
at org.python.core.imp.import_next(imp.java:737)
at org.python.core.imp.import_module_level(imp.java:856)
at org.python.core.imp.importName(imp.java:946)
at org.python.core.ImportFunction.__call__(__builtin__.java:1301)
at org.python.core.PyObject.__call__(PyObject.java:373)
at org.python.core.__builtin__.__import__(__builtin__.java:1254)
at org.python.core.imp.importOne(imp.java:965)
at site$py.f$0(/home/paolo/jdevel/golap-workspace/jython-jython-06161ebf74ee/dist/Lib/site.py:623)
at site$py.call_function(/home/paolo/jdevel/golap-workspace/jython-jython-06161ebf74ee/dist/Lib/site.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:393)
at org.python.core.imp.createFromPyClass(imp.java:209)
at org.python.core.imp.loadFromSource(imp.java:574)
at org.python.core.imp.find_module(imp.java:480)
at org.python.core.imp.import_next(imp.java:737)
at org.python.core.imp.import_first(imp.java:758)
at org.python.core.imp.load(imp.java:633)
at org.python.util.jython.run(jython.java:265)
at org.python.util.jython.main(jython.java:145)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment