-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unable to Close 'broken' Connection" when extracting data from Rockwell PLC 1756-EN2T #667
Comments
Hi johanngil, That's awesome that you built the logix_develop branch :) It looks as though you are trying to use the opcua driver to communicate with it. The connection string will be something like "logix:tcp://143.21.40.239:44818?backplane=1&slot=1" I haven't spent a lot of time on the reading UDT's but the general format of the address will be PRIME_SSB_IO.STS_TRIGGERID:INT Ben |
Sorry, also just realized I gave you bad information, it is the eip_update branch that is more up to date. |
Is this issue still valid (A lot has been updated in the EIP driver) |
i use 0.10.0 version by java to connect s7-400, most time it works well ,but recently got the error , i think this error maybe have some relation to this issue:
|
Did you try with the version 0.11.0 that we released just yesterday? |
i have not try the 0.11.0 yet, i will try in some days later when i go to the factory, if i have some result, i will report. |
What's the status of this issue? |
Can this issue be closed? |
Business Use
Yes, please close.
Regards,
Dietmar Giljohann
|
Dear community,
With a recent (from Friday last week) build from PLC4X 0.11.0-SNAPSHOT (https://github.com/apache/plc4x/tree/logix_develop) we connected our Kafka environment through the PLC4X connector to our Rockwell PLC of type 1756-EN2T to extract data from the PLC. We used the following properties settings:
{
"connector.class": "org.apache.plc4x.kafka.Plc4xSourceConnector",
"tasks.max": "1",
"default.topic": "DefaultTopic",
"sources": "MHSLineTakeway",
"sources.MHSLineTakeway.connectionString": "opcua:tcp://143.21.40.239:44818",
"sources.MHSLineTakeway.pollReturnInterval": "5000",
"sources.MHSLineTakeway.bufferSize": "1000",
"sources.MHSLineTakeway.jobReferences": "data-acquisition",
"sources.MHSLineTakeway.jobReferences.data-acquisition.topic": "data-acquisition-topic",
"jobs": "data-acquisition",
"jobs.data-acquisition.interval": "100",
"jobs.data-acquisition.fields": "stsmessageid",
"jobs.data-acquisition.fields.stsmessageid": "PRIME_SSB_IO/STS_TRIGGERID",
"bootstrap.servers": "localhost:9092",
"jobs.data-acquisition.tags": "stsmessageid",
"jobs.data-acquisition.tags.stsmessageid": "PRIME_SSB_IO/STS_TRIGGERID:INT"
}
These resulted in the below error (attached the entire log file):
C[2022-11-23 08:21:50,517] DEBUG [mhs-linetakeway-source|task-0] Connection was detected as broken and is invalidated in Cached Manager (org.apache.plc4x.java.utils.connectionpool2.CachedDriverManager:127)
[2022-11-23 08:21:50,518] WARN [mhs-linetakeway-source|task-0] Broken Connection was returned, although it is not borrowed, currently. (org.apache.plc4x.java.utils.connectionpool2.CachedDriverManager:132)
[2022-11-23 08:21:50,518] DEBUG [mhs-linetakeway-source|task-0] Unable to Close 'broken' Connection (org.apache.plc4x.java.utils.connectionpool2.CachedDriverManager:138)
java.lang.NullPointerException
Do you know what the root cause of the problem is? Thank you for any assistance!
trace_connect_error.txt
The text was updated successfully, but these errors were encountered: