You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by "Julian Feinauer (Jira)" <ji...@apache.org> on 2020/08/09 08:30:00 UTC

[jira] [Created] (PLC4X-223) PooledPlcDriverManager does not support parameter

Julian Feinauer created PLC4X-223:
-------------------------------------

             Summary: PooledPlcDriverManager does not support parameter
                 Key: PLC4X-223
                 URL: https://issues.apache.org/jira/browse/PLC4X-223
             Project: Apache PLC4X
          Issue Type: Bug
    Affects Versions: 0.7.0
            Reporter: Julian Feinauer
            Assignee: Julian Feinauer


For my application I need to specify the slave ID in the following format:
 
modbus://192.168.0.1:503?unit-identifier=50
 
This works for a single PlcConnection. However, parameters are not
supported in the PooledPlcDriverManager, I get this exception:
 
Caused by: org.apache.plc4x.java.api.exceptions.PlcConnectionException:
java.lang.IllegalArgumentException: modbus://
192.168.0.5:503?unit-identifier=50 doesn't match
^(?<poolablePart>modbus:(tcp://(?<host>[\w.]+)(:(?<port>\d*))?|serial://(?<serialDefinition>((?!/\d).)*)))/?(?<params>\?.*)?
at
org.apache.plc4x.java.utils.connectionpool.PooledPlcDriverManager.getConnection(PooledPlcDriverManager.java:117)
 
Is there a reason the pool does not like parameters for tcp (but does
accept them for serial modbus)?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)