Login  •  Register


FileSyncClient  Topic is solved

Questions regarding the use of the Java SDK for Server or Client development or integration into customer products ...

FileSyncClient

Postby kevinsaner » 18 Jun 2016, 13:13

Hi
I’m currently evaluating the usage of OPC UA Java SDK for a project. However, my client wishes to have synchronized folders, but I’m struggling to set them up. I guess my main problem is to get the NodeId of the Folder I wanna synchronize. Following is the error I get:
06/18/2016 10:32:04.852 WARN Failed to synchronize folder ns=5;s=C:/Users/Kevin/Desktop/Folder from server https://Notebook.home:52443/OPCUA/OPC_UA_Server
java.lang.NullPointerException
at com.prosysopc.ua.client.FileSyncClient.sync(Unknown Source)
at com.prosysopc.ua.client.FileSyncClient$1.run(Unknown Source)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
And this is what I’ve tried so far:
NodeId nodeId = new NodeId(5, “C:/Users/Kevin/Desktop/Folder”);
FileSyncClient FileSync = new FileSyncClient(client);
FileSync.addSyncedFolder(nodeId, “C:/Users/Kevin/Desktop/Client_Folder”, FileSyncClient.SyncFolderDirection.ReadWrite);
FileSync.setMonitorInterval(8);
This is what I get when I browse the address as the ID of my folder:
Current Node: Folder: FolderType (ID: ns=5;s=C:\Users\Kevin\Desktop\Folder)
kevinsaner
Jr. Member
Jr. Member
 
Posts: 2
Joined: 05 Jun 2016, 22:40

Re: FileSyncClient  Topic is solved

Postby kevinsaner » 20 Jun 2016, 14:55

kevinsaner
Jr. Member
Jr. Member
 
Posts: 2
Joined: 05 Jun 2016, 22:40


Return to JAVA based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 0 guests