Giter VIP home page Giter VIP logo

Comments (7)

DanDayne avatar DanDayne commented on June 16, 2024

Problem is in the implementation of PSI_java - if multiple nodes try to start JVM on the same system, PBRcontrol will fail as it is not possible. Only one JVM can be running at a time.

from pbrcontrol.

DanDayne avatar DanDayne commented on June 16, 2024

This introduces many problems regarding use of multiple java-bound PBRs and restarting PBRs

from pbrcontrol.

mgeletka avatar mgeletka commented on June 16, 2024

created PULL request #15

from pbrcontrol.

DanDayne avatar DanDayne commented on June 16, 2024

Once JVM is started, it is never turned off as there is currently no way of knowing whether other devices/nodes are using it. This should not afffect functionality, nor performance. My temporarily limited resources prevent me from thorough testing. @xtrojak, could you look into this?

from pbrcontrol.

DanDayne avatar DanDayne commented on June 16, 2024

Initiation of Java device resulted in following error:

/home/pi/.local/lib/python3.5/site-packages/jpype/_core.py:210: UserWarning:
-------------------------------------------------------------------------------
Deprecated: convertStrings was not specified when starting the JVM. The default
behavior in JPype will be False starting in JPype 0.8. The recommended setting
for new code is convertStrings=False.  The legacy value of True was assumed for
this session. If you are a user of an application that reported this warning,
please file a ticket with the developer.
-------------------------------------------------------------------------------
  """)
Exception in thread 19PBRPBR19-checker:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/home/pi/PBRcontrol/DataManager/executioner.py", line 52, in run
    device = interpreter.DeviceManager(*arguments)  # initiate the physical device and its interpreter
  File "/home/pi/PBRcontrol/DataManager/interpreterPBR.py", line 48, in __init__
    super(DeviceManager, self).__init__(device_details, device_class, log)
  File "/home/pi/PBRcontrol/DataManager/base_interpreter.py", line 17, in __init__
    self.device = device_class(*args)
  File "/home/pi/PBRcontrol/HWdevices/PSI_java/PBR.py", line 7, in __init__
    super(PBR, self).__init__(ID, address, "/home/pi/PBRcontrol/HWdevices/PSI_java/lib/config/device_PBR.config")
  File "/home/pi/PBRcontrol/HWdevices/PSI_java/Device.py", line 16, in __init__
    self.device = self.connect(device_config)
  File "/home/pi/PBRcontrol/HWdevices/PSI_java/Device.py", line 19, in connect
    CommanderConnector = jpype.JClass("psi.bioreactor.commander.CommanderConnector")
  File "/home/pi/.local/lib/python3.5/site-packages/jpype/_jclass.py", line 130, in __new__
    return _JClassNew(args[0], **kwargs)
  File "/home/pi/.local/lib/python3.5/site-packages/jpype/_jclass.py", line 213, in _JClassNew
    javaClass = _jpype.PyJPClass(arg)
jpype._jclass.java.lang.NoClassDefFoundError: psi/bioreactor/commander/CommanderConnector

@mgeletka, do you have any idea what might be causing this issue?

from pbrcontrol.

xtrojak avatar xtrojak commented on June 16, 2024

Seems like problem in paths management.

from pbrcontrol.

xtrojak avatar xtrojak commented on June 16, 2024

Issue solved by manual addition of Java class path before the JVM is started (in Device.py file). It is not clear why this step is necessary, but it is working.

from pbrcontrol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.