Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Referring to below thread am trying to create thing from java SDK
Creating a Thing from a Virtual Thing Service (Java SDK)
I tried doing same thing creating thing from edge but am getting exception
"Exception in thread "main" java.lang.Exception: No open connections were available on endpoint 0"
Could you please help me out what i am missing?
i have replicated above code no changes at all.
How is your device connected? Are you able to ping the platform from the device?
This might indicate a poor connection. That being the case, consider increasing the timeout.
Hi Nisha Bhagtani,
I had the same issue when I directly invokeService or Create Things after Client is started without waiting some time.
You could also try if it works for you.
Try to add code:
//add this code rightly after client.start();
//you could consider to increase/decrease the waiting time(30000 ms in my example) per your test result
if (client.waitForConnection(30000)) {
// Create things, invoke services, etc. here
//......
}
Thanks,
Br,
Anna
Also, please share the complete logs for review.