tenthe opened a new issue, #1579:
URL: https://github.com/apache/streampipes/issues/1579

   # Issue:
   The current implementation of OPC UA schema detection in our GitHub 
repository only supports numbers as Identifier Types. However, as discussed in 
issue #1567 and according to the OPC UA specification 
[Link](https://reference.opcfoundation.org/Core/Part6/v104/docs/5.2.2), the 
schema detection should be enhanced to support all Identifier Types defined by 
OPC UA.
   
   # Open question:
   We need to clarify whether the identification of Identifier Types can be 
inferred automatically or if users need to provide this information manually.
   
   # Proposed Solution:
   To optimize the current implementation, the following steps are suggested:
   
   1. Review the OPC UA specification 
[Link](https://reference.opcfoundation.org/Core/Part6/v104/docs/5.2.2) 
thoroughly to understand the complete list of Identifier Types defined.
   2. Update the schema detection logic to support all the identified 
Identifier Types.
   3. Consider implementing an automatic inference mechanism that detects the 
Identifier Type based on the data provided by the OPC UA server. This can 
include analyzing metadata, examining naming conventions, or utilizing specific 
OPC UA server features.
   4. If automatic inference is not feasible or reliable, provide clear 
instructions to users on how to manually provide the Identifier Types 
information for their OPC UA server. This can be in the form of user input 
during the connection process.
   
   By implementing these changes, we can enhance the OPC UA schema detection 
capabilities, making it more versatile and accommodating for a wider range of 
OPC UA servers and Identifier Types.
   
   
   # Discussed in https://github.com/apache/streampipes/discussions/1567
   
   <div type='discussions-op-text'>
   
   <sup>Originally posted by **curichan** May 11, 2023</sup>
   Hi there,
   after Streampipes has connected to an OPC UA server and a node has been 
selected, I get the error "Could not guess schema for opc node: class 
java.lang.String cannot be cast to class 
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger 
(java.lang.String is in module java.base of loader 'bootstrap'; 
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger is in unnamed 
module of loader org.springframework.boot.loader.LaunchedURLClassLoader" when 
progressing to the "Configure fields" dialogue. It's not clear to me why 
Streampipes is trying to cast a string to an integer at this stage. Can someone 
help or is this a bug?
   </div>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to