Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

SerialPort.getCommPorts() crash in docker env #33

Open
feverwind opened this issue Aug 7, 2018 · 1 comment
Open

SerialPort.getCommPorts() crash in docker env #33

feverwind opened this issue Aug 7, 2018 · 1 comment

Comments

@feverwind
Copy link

When I configure a not exist serial port, then the service crash.
After check code, I found that com.fazecast.jSerialComm.SerialPort.getCommPorts() will crash in docker env.

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.fazecast.jSerialComm.SerialPort.getCommPorts()[Lcom/fazecast/jSerialComm/SerialPort;+0
j  com.ghgande.j2mod.modbus.net.SerialConnection.getCommPorts()Ljava/util/Set;+11
j  com.ghgande.j2mod.modbus.net.SerialConnection.open()V+221
j  org.edgexfoundry.modbus.ModbusConnection.createSerialConnection(Lorg/edgexfoundry/domain/meta/Addressable;)Ljava/lang/Object;+315
j  org.edgexfoundry.modbus.ModbusConnection.getModbusConnection(Lorg/edgexfoundry/domain/meta/Addressable;)Ljava/lang/Object;+99
j  org.edgexfoundry.modbus.ModbusDriver.processCommand(Ljava/lang/String;Lorg/edgexfoundry/domain/meta/Addressable;Lorg/edgexfoundry/domain/ModbusObject;Ljava/lang/String;)Ljava/lang/String;+71
j  org.edgexfoundry.modbus.ModbusDriver.process(Lorg/edgexfoundry/domain/meta/ResourceOperation;Lorg/edgexfoundry/domain/meta/Device;Lorg/edgexfoundry/domain/ModbusObject;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+12
j  org.edgexfoundry.handler.ModbusHandler.executeOperations(Lorg/edgexfoundry/domain/meta/Device;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;)Ljava/lang/String;+288
j  org.edgexfoundry.handler.ModbusHandler.executeGetCommand(Lorg/edgexfoundry/domain/meta/Device;Ljava/lang/String;)Ljava/util/Map;+42
j  org.edgexfoundry.scheduling.ScheduleEventHTTPExecutor.execute(Lorg/edgexfoundry/domain/meta/ScheduleEvent;)V+205
j  org.edgexfoundry.scheduling.ScheduleEventHTTPExecutor$$FastClassBySpringCGLIB$$c2b6161a.invoke(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+57
j  org.springframework.cglib.proxy.MethodProxy.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+19
j  org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint()Ljava/lang/Object;+19
j  org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava/lang/Object;+19
j  org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call()Ljava/lang/Object;+4
j  java.util.concurrent.FutureTask.run()V+42
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
@feverwind
Copy link
Author

feverwind commented Aug 8, 2018

Update:
Docker env: alpine OS
Host env: ubuntu OS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant