Coder Social home page Coder Social logo

Comments (8)

mslosarz avatar mslosarz commented on July 24, 2024 2

you can build for just for now RC5 from the source https://github.com/mslosarz/nextrtc-signaling-server, I apologize for the inconvenience.

from nextrtc-example-videochat.

mslosarz avatar mslosarz commented on July 24, 2024

Hello, That's true I'm going to deploy latest RC5 version, but I need to describe changes, and how to migrate to latest version.

from nextrtc-example-videochat.

WilsonHu avatar WilsonHu commented on July 24, 2024

Hey, Mslasarz. Please don't say sorry about that, what you are doing is amazing.
I have packaged RC5's jar and added it as a library to the sample project. I meet another error about @Inject missing.
Maybe the javax.inject dependency is needed.

from nextrtc-example-videochat.

mslosarz avatar mslosarz commented on July 24, 2024

from nextrtc-example-videochat.

mslosarz avatar mslosarz commented on July 24, 2024

Please try rebuild it now. You shouldn't have any issue with @Inject because it's supported by Spring, but I've replaced this annotation with @Autowired.

from nextrtc-example-videochat.

WilsonHu avatar WilsonHu commented on July 24, 2024

Hey, Mslasarz. Thank you so much for the reply.
Currently, I build RC5 successfully and add it as a library for "nextrtc-example-videochat". When I try to run the demo via IntelliJ, I got an error as below:

2018-07-05 23:44:43.393 ERROR 4712 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nextRTCEventBus' defined in org.nextrtc.signalingserver.NextRTCConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nextrtc.signalingserver.api.NextRTCEventBus]: Factory method 'eventBus' threw exception; nested exception is java.lang.NoClassDefFoundError: com/google/common/eventbus/EventBus
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:776) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
at org.nextrtc.examples.videochat.SampleWebStaticApplication.main(SampleWebStaticApplication.java:16) [classes/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nextrtc.signalingserver.api.NextRTCEventBus]: Factory method 'eventBus' threw exception; nested exception is java.lang.NoClassDefFoundError: com/google/common/eventbus/EventBus
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
... 18 common frames omitted
Caused by: java.lang.NoClassDefFoundError: com/google/common/eventbus/EventBus
at org.nextrtc.signalingserver.api.NextRTCEventBus.(NextRTCEventBus.java:17) ~[nextrtc-signaling-server-1.0.0-RC5.jar:na]
at org.nextrtc.signalingserver.NextRTCConfig.eventBus(NextRTCConfig.java:24) ~[nextrtc-signaling-server-1.0.0-RC5.jar:na]
at org.nextrtc.signalingserver.NextRTCConfig$$EnhancerBySpringCGLIB$$cad56f6b.CGLIB$eventBus$1() ~[nextrtc-signaling-server-1.0.0-RC5.jar:na]
at org.nextrtc.signalingserver.NextRTCConfig$$EnhancerBySpringCGLIB$$cad56f6b$$FastClassBySpringCGLIB$$be2dca4f.invoke() ~[nextrtc-signaling-server-1.0.0-RC5.jar:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.nextrtc.signalingserver.NextRTCConfig$$EnhancerBySpringCGLIB$$cad56f6b.eventBus() ~[nextrtc-signaling-server-1.0.0-RC5.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_172]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_172]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_172]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_172]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
... 19 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.google.common.eventbus.EventBus
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_172]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_172]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_172]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_172]
... 31 common frames omitted

Process finished with exit code 1

And when I try to compile the demo project, got an error that cannot find package "org.nextrtc.signalingserver.api", I am afraid that maybe the JAR importing has a problem.

Jestem nowicjuszem, proszę, wybacz mi.

from nextrtc-example-videochat.

WilsonHu avatar WilsonHu commented on July 24, 2024

To demonstrate quickly, I switch the signaling library from RC5 to RC4 in pom.xml. It works for me.
Thank you!

from nextrtc-example-videochat.

mslosarz avatar mslosarz commented on July 24, 2024

I've released version RC5. So please remove your local build (remove directory with RC5 from {maven directory usually ~/.m2}/repository/org/nextrtc/signalingserver/nextrtc-signaling-server/). Please checkout latest version of example-videochat (there are changes, that breaks backward compatibility), and run command from Readme. This time it should build and run without any errors :)

from nextrtc-example-videochat.

Related Issues (20)

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.