Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This sample do not appear to work against TB 1.4.0, self-hosted or live demo #6

Open
aderusha opened this issue Mar 22, 2018 · 3 comments
Assignees

Comments

@aderusha
Copy link

Attempting to run this against demo.thingsboard.io or a fresh local install of TB 1.4.0 both yield the same results: dashboards are created, but rules and devices aren't. This has been tested under Windows 10 and Ubuntu 16.04 w/ Java 8.

Test command: java -jar facilities-monitoring.jar demo.thingsboard.io

Error output (example, it repeats the Rules and Device errors several times, presumably one for each rule and device):
Unable to upload rule! Cause: org.springframework.web.client.HttpClientErrorException: 400 null at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:380) at org.thingsboard.demo.loader.data.DemoData.lambda$uploadData$9(DemoData.java:380) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.thingsboard.demo.loader.data.DemoData.uploadData(DemoData.java:366) at org.thingsboard.demo.loader.DemoLoader.loadDemoFromClasspath(DemoLoader.java:77) at org.thingsboard.samples.facility.FacilitiesDemoMain.main(FacilitiesDemoMain.java:64) Unable to upload device! Cause: org.springframework.web.client.HttpClientErrorException: 400 null at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:380) at org.thingsboard.demo.loader.data.DemoData.lambda$uploadData$12(DemoData.java:451) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.thingsboard.demo.loader.data.DemoData.uploadData(DemoData.java:420) at org.thingsboard.demo.loader.DemoLoader.loadDemoFromClasspath(DemoLoader.java:77) at org.thingsboard.samples.facility.FacilitiesDemoMain.main(FacilitiesDemoMain.java:64)

@aderusha aderusha changed the title These sample do not appear to work again TB 1.4.0, self-hosted or live demo This sample do not appear to work again TB 1.4.0, self-hosted or live demo Mar 22, 2018
@aderusha aderusha changed the title This sample do not appear to work again TB 1.4.0, self-hosted or live demo This sample do not appear to work against TB 1.4.0, self-hosted or live demo Mar 22, 2018
@elgayyar
Copy link

elgayyar commented Apr 5, 2018

yes please, I have the same issue, any solution here?!

@antont
Copy link

antont commented Aug 15, 2018

I'm curious about whether it should work with version 2 server, maybe not. Is there anything like it for current version?

EDIT: well, i just went thru the current getting started guide, which has hands on examples etc, which served my purpose quite ok .. https://thingsboard.io/docs/getting-started-guides/helloworld/

@mp-loki mp-loki self-assigned this Aug 17, 2018
@MirkoUgoliniDev
Copy link

Hello All,

the compiled version that are available online reference ver 1.0.0 of things board so try to load

org.thingsboard.server.common.data.plugin.PluginMetaData
org.thingsboard.server.common.data.rule.RuleMetaData

that are no more present in the new version.

this is the new library

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants