Comments (7)
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.
This introduces many problems regarding use of multiple java-bound PBRs and restarting PBRs
from pbrcontrol.
created PULL request #15
from pbrcontrol.
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.
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.
Seems like problem in paths management.
from pbrcontrol.
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)
- Init time not working properly HOT 1
- Authentication HOT 2
- Missing PBR commands
- Problem with /end HOT 1
- Response 200 when node is not running HOT 3
- By restarting PBRcontrol we lose information HOT 2
- Ping on PBRcontrol API HOT 1
- Implement device_id generator
- /log retrieves incorrect data in the first time-unspecific request (under certain conditions)
- Get log - time stamp ignored for manual (external) records HOT 1
- ePBR pump usage HOT 5
- Remove SSL/TLS certification HOT 2
- Parameter for outlier tolerance change when is pump on
- inf and nan in measurement values HOT 1
- Power outage restoration
- set_pump_state might fail
- Multidevice support
- Protocol checker only works with NodeInitiation endpoint
- Ping not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pbrcontrol.