[ 
https://issues.apache.org/jira/browse/PLC4X-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Feinauer resolved PLC4X-223.
-----------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>
> 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)

Reply via email to