rooterWzs opened a new issue, #1944:
URL: https://github.com/apache/plc4x/issues/1944

   ### What happened?
   
   String ip = "127.0.0.1";
           String port = "503";
           // 单元标识符:相当于设备的地址
           String unitIdentifier = "1";
           String timeout = "5000";
           String urlFormat = 
"modbus-tcp:tcp://{}:{}?unit-identifier={}&request-timeout={}";
           // try里面会自动关闭连接
           try (PlcConnection plcConnection = PlcDriverManager
                   .getDefault()
                   .getConnectionManager()
                   .getConnection(StringUtils.format(urlFormat, ip, port, 
unitIdentifier, timeout)))
   
   
   Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.commons.lang3.reflect.FieldUtils.getAllFields(Ljava/lang/Class;)[Ljava/lang/reflect/Field;
        at 
org.apache.plc4x.java.spi.configuration.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:85)
        at 
org.apache.plc4x.java.spi.configuration.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:62)
        at 
org.apache.plc4x.java.spi.connection.GeneratedDriverBase.getConnection(GeneratedDriverBase.java:324)
        at 
org.apache.plc4x.java.spi.connection.GeneratedDriverBase.getConnection(GeneratedDriverBase.java:293)
        at 
org.apache.plc4x.java.DefaultPlcDriverManager.getConnection(DefaultPlcDriverManager.java:79)
        at 
com.plc.lib.driver.plc.modbus.ModbusExample.main(ModbusExample.java:35)
   
   ### Version
   
   0.13.0-SNAPSHOT
   
   ### Programming Languages
   
   - [X] plc4j
   - [ ] plc4go
   - [ ] plc4c
   - [ ] plc4net
   
   ### Protocols
   
   - [ ] AB-Ethernet
   - [ ] ADS /AMS
   - [ ] BACnet/IP
   - [ ] CANopen
   - [ ] DeltaV
   - [ ] DF1
   - [ ] EtherNet/IP
   - [ ] Firmata
   - [ ] KNXnet/IP
   - [X] Modbus
   - [ ] OPC-UA
   - [ ] S7


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to