[
https://issues.apache.org/jira/browse/PLC4X-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410651#comment-17410651
]
Christofer Dutz commented on PLC4X-313:
---------------------------------------
That sounds as if you are connecting to many times ... you should consider
trying our connection pool and re-using the connection.
[http://plc4x.apache.org/users/tools/connection-cache.html]
> java.lang.ClassCastException: DefaultPlcSubscriptionField cannot be cast to
> class OpcuaField
> --------------------------------------------------------------------------------------------
>
> Key: PLC4X-313
> URL: https://issues.apache.org/jira/browse/PLC4X-313
> Project: Apache PLC4X
> Issue Type: Bug
> Components: Driver-OPC-UA
> Affects Versions: 0.8.0
> Reporter: karthik
> Priority: Major
>
> Hi team -
> i had followed the
> [https://github.com/apache/plc4x/tree/rel/0.8/plc4j/examples/hello-world-plc4x-subscription]
> and facing the below error .
> version : plc4j-driver-opcua-0.8.0
> java : 1.8
> Exception in thread "main" java.util.concurrent.ExecutionException:
> java.lang.ClassCastException:
> org.apache.plc4x.java.spi.model.DefaultPlcSubscriptionField cannot be cast to
> org.apache.plc4x.java.opcua.protocol.OpcuaField
>
> please kindly provide your suggestions.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)