Giter Club home page Giter Club logo

remote-integration-example's Introduction

remote-integration-example's People

Contributors

amarkevich avatar ashvayka avatar den1jkee avatar dmytro-landiak avatar ikulikov avatar shvaykad avatar volodymyr-babak avatar yevhenbondarenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

remote-integration-example's Issues

Runtime error: java.lang.ClassNotFoundException: org.thingsboard.server.coapserver.CoapServerService

Component

  • remote-integration-example

Environment

  • OS: Ubuntu 20.04 focal
  • ThingsBoard: thingsboard-3.3.2pe
  • Browser: Firefox 95.0 64bit

Description
Is there any new remote-integration-example version for PE? I compiled this project and configured it properly. But I got rumtime exception: java.lang.ClassNotFoundException: org.thingsboard.server.coapserver.CoapServerService. I found there is no coap-server-3.3.2PE.jar indeed. How can I edit pom file to import this library correctly? I tried to add, but failed with compiling errors(The following artifacts could not be resolved: org.thingsboard.common:queue:jar:3.3.2PE, org.thingsboard.common.transport:transport-api:jar:3.3.2PE: org.thingsboard.common:queue:jar:3.3.2PE was not found).

Exception logs:

`2022-01-24 21:29:26,883 [main] INFO o.t.i.ThingsboardRemoteIntegrationApplication - Starting ThingsboardRemoteIntegrationApplication v2.0.0 on ip-172-31-18-220 with PID 345726 (/usr/share/tb-remote-integration-example/bin/tb-remote-integration-example.jar started by thingsboard in /usr/share/tb-remote-integration-example/bin)
2022-01-24 21:29:26,890 [main] INFO o.t.i.ThingsboardRemoteIntegrationApplication - No active profile set, falling back to default profiles: default
2022-01-24 21:29:27,094 [background-preinit] WARN o.s.h.c.j.Jackson2ObjectMapperBuilder - For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
2022-01-24 21:29:28,598 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-24 21:29:28,605 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-24 21:29:28,676 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 42 ms. Found 0 Redis repository interfaces.
2022-01-24 21:29:29,347 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 16000 (http)
2022-01-24 21:29:29,364 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-16000"]
2022-01-24 21:29:29,366 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
2022-01-24 21:29:29,367 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.46]
2022-01-24 21:29:29,480 [main] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2022-01-24 21:29:29,480 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 2457 ms
2022-01-24 21:29:29,838 [main] INFO o.t.s.c.adaptor.JsonConverterConfig - JSON max string value length = 0
2022-01-24 21:29:29,841 [main] INFO o.t.s.c.adaptor.JsonConverterConfig - JSON type cast enabled = true
2022-01-24 21:29:29,866 [main] INFO o.t.i.storage.EventStorageReader - Initializing from state file: [/usr/share/tb-remote-integration-example/bin/./data_1643058363782.txt:0]
2022-01-24 21:29:29,883 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RemoteIntegrationManagerService': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.thingsboard.integration.service.RemoteIntegrationManagerService] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@5a2e4553]
2022-01-24 21:29:29,888 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
2022-01-24 21:29:29,911 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-01-24 21:29:29,938 [main] ERROR o.s.boot.SpringApplication - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RemoteIntegrationManagerService': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.thingsboard.integration.service.RemoteIntegrationManagerService] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@5a2e4553]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1290)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236)
at org.thingsboard.integration.ThingsboardRemoteIntegrationApplication.main(ThingsboardRemoteIntegrationApplication.java:34)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.thingsboard.integration.service.RemoteIntegrationManagerService] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@5a2e4553]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:481)
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:267)
... 27 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/thingsboard/server/coapserver/CoapServerService
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2309)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:463)
... 29 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.thingsboard.server.coapserver.CoapServerService
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 33 common frames omitted`

Build failure

I get the following gradle error when executing a maven build in intelliJ:

A problem occurred evaluating root project 'remote-integration-example'.
Could not find property 'projectBuildDir' on root project 'remote-integration-example'.

Full disclosure: I am by no means a Maven/Gradle expert

Method not found: integration.IntegrationTransport/handleMsgs

When the server starts, I get an exception:
io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: integration.IntegrationTransport/handleMsgs at io.grpc.Status.asRuntimeException(Status.java:533) at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:442) at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:700) at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:399) at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:507) at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:66) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:627) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$700(ClientCallImpl.java:515) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:686) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:675) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

Error on deploy

Executed command: mvn deploy -f "Custom Integration\remote-integration-example-master\pom.xml" -P !push-docker-image
Java Version: Java version: 11.0.19
Maven version: Apache Maven 3.9.2
Gradle 8.2.1

log.txt

BUILD FAIL

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.054 s
[INFO] Finished at: 2021-02-02T07:46:39Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project remote-integration-example: Could not resolve dependencies for project org.thingsboard:remote-integration-example:jar:1.0.0: Could not find artifact com.sun:tools:jar:1.4.2 at specified path /usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.