fix(components/plc4x): fix NPE when Camel can not establish connection#16160
Conversation
…n and allow to check if endpoint established connection
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🤖 CI automation will test this PR automatically. 🐫 Apache Camel Committers, please review the following items:
|
|
@oscerd I think the maven download failed during the JDK17 build. Can you please trigger the 2 builds again? |
|
/component-tests plc4x Result ✅ The tests passed successfully |
|
🤖 The Apache Camel test robot will run the tests for you 👍 |
Description
When Camel can not establish the connection to the S7 PLC, the component is throwing follow-up exceptions which are causing the application start up to fail and which hide the real connection issue.
Steps to reproduce:
Target
camel-3.x, whereas Camel 4 uses themainbranch)Tracking
Apache Camel coding standards and style
I checked that each commit in the pull request has a meaningful subject line and body.
I have run
mvn clean install -DskipTestslocally from root folder and I have committed all auto-generated changes.