[ 
https://issues.apache.org/jira/browse/PLC4X-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17295106#comment-17295106
 ] 

Stefano Bossi commented on PLC4X-285:
-------------------------------------

Hi,

nice to hear that maybe you have found your problem I would like just to give 
you a suggestion. 

As pointed out bu Julian a lot of bad things could happen talking with a PLC 
and these are reported to the user with errors coming from the request code. 

Here [Connection 
Cache|https://plc4x.apache.org/users/tools/connection-cache.html] is a little 
example, actually using the new Connected Pool driver, that could give you an 
idea about the errors you have to catch in your code. 
Maybe you already did, I can't actually see in the picture you posted. 
As a test you can easily perform by yourself, try to unplug the cable form the 
machine where your code is running, the code could handle the error and restart 
reading as soon as the connection is back again.

Hope to have given some hints.

Regards,
Stefano 

 

> [S7]  after hours will appear error
> -----------------------------------
>
>                 Key: PLC4X-285
>                 URL: https://issues.apache.org/jira/browse/PLC4X-285
>             Project: Apache PLC4X
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>         Environment:  java11.win10 
>            Reporter: liuqiang
>            Assignee: Christofer Dutz
>            Priority: Major
>         Attachments: image-2021-03-02-15-22-30-412.png, 
> warn-error.log.2021-03-02.0.gz, warn-error.log.2021-03-02.0.gz, 
> wiresharkfile.pcapng
>
>
> 2021-03-02 10:54:36.639  WARN 184336 --- [scrape-thread-5] 
> c.c.p.c.job.JobExecutionInfluxdb         : Unable to scrape from 
> s7://10.32.137.31?remote-rack=0&remote-slot=2 in job bp
> java.util.concurrent.TimeoutException: null
>       at 
> java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886)
>       at 
> java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021)
>       at 
> cn.cisdi.plc.communication.job.JobExecutionInfluxdb.run(JobExecutionInfluxdb.java:65)
>       at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>       at 
> java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
>       at 
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
>       at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>       at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>       at java.base/java.lang.Thread.run(Thread.java:834)



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

Reply via email to