#73 Jpype dies with CherryPy

open
5
2010-09-21
2010-09-21
Anonymous
No

Hi,

I'm using JPype 0.5.4 on a Mac running 10.6.4 and Python 2.6.4 (32-bit). My code runs fine from the interactive Python prompt and also when from little test routines calling the class containing the JPype stuff. However, when I try and use JPype from within CherryPy 3.1, it bombs out with:

jpype.startJVM(jpype.getDefaultJVMPath(), "-ea", "-Djava.class.path=%s" % CLASSPATH, "-Djava.awt.headless=true", "-Djava.library.path=%s" % FACTPP_LIB)
File "/Library/Frameworks/Python.framework/Versions/6.0.0/lib/python2.6/site-packages/jpype/_core.py", line 44, in startJVM
_jpype.startup(jvm, tuple(args), True)
RuntimeError: Unable to start JVM at src/native/common/jp_env.cpp:54
Invalid memory access of location 00000004 eip=026e3e69
Bus error

I've validated that the location of the JVM is correct and, as I said, the code works fine standalone. It's just from within CherryPy that the problem exists. And the JVM is definitely started as I can get a java.lang.System.out.println to work.

Any ideas?

Matthew

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks